Hi, I have a MySql table called today_stats. It has got Id, date and clicks. I'm trying to create a script to get the values and try to predict the next 7 days clicks. How I can predict it in PHP?
I simple want to rar a folder with the help of php, so there's 2 ways to do this one is via shell_exec or exec, which isnt working for me but shell_exec and exec is enabled on server and working for other commands
other method is via .sh file, but i dont know how to use it properly :(
i need some code which works properly for this
hai everyone........
I am trying to generate dynamic menu according to the user permission given with ACL component in cake php..
ie., if a user logins, i need to check which all actions are permitted for that specific user and according that list of actions i need to generate menu
can any one help me to get all the permitted actions from the acos,aros,acos_aros tables
thanks in advance
(don't know if this better belongs to SU/SF, feel free to move if so)
Hi, I've got a directory with 1000+ subfolders full with hi-res images. I'm looking for php software that would allow me to explore it server-side: browse folders - preview images - download hi-res. NB: support for print formats (tiff, eps) is a must!
hi all,
we have developed e-learning web site for one of our customer.
recently he asked he need SCORM feed.
i dornt know whether my system is compatible with scrom.
do any body know any opensource php tool or lib to generate scrom from existing data.
thanks
Hey guys,
How can I, in PHP, get a summary of any URL? By summary, I mean something similar to the URL descriptions in Google web search results.
Is this possible? Is there already some kind of tool I can plug in to so I don't have to generate my own summaries?
I don't want to use metadata descriptions if possible.
-Dylan
I'm new to PHP and i was trying to learn mod rewrite to rewrite my URLs i use godaddy as my hosting company and they say to add the desired code to the body of your .htaccess file how do I mod rewrite my URLs and add it to my .htaccess file?
Can some one give me an example of how to do this as well as point me to a good tutorial and or book on how to mod rewrite my URLs?
Trying to wrap my head around the new PayPal Adaptive Payments API - specifically the ConvertCurrency functionality. Has anyone had any luck with this in PHP?
Documentation: https://www.x.com/docs/DOC-1400
Just a quick question: is the following PHP code secure? Also is there anything you think I could or should add?
$post = $_GET['post'];
if(is_numeric($post))
{
$post = mysql_real_escape_string($post);
}
else
{
die("NAUGHTY NAUGHTY");
}
mysql_select_db("****", $*****);
$content = mysql_query("SELECT * FROM tbl_***** WHERE Id='" . $post . "'");
hi,
I want to extract particular part of HTML using tidy in php.
the html page has table in it and i just want to fetch that table from html page.
please help and post the solution....
Thanks
I have a PHP redirect page to track clicks on links. Basically it does:
- get url from $_GET
- connect to database
- create row for url, or update with 1 hit if it exists
- redirect browser to url using Location: header
I was wondering if it's possible to send the redirect to the client first, so it can get on with it's job, and then log the click. Would simply switching things around work?
in server ,
i have some.php , when i try to read the content using file_get_content and fread both these not reading my content..
if i try some other url like yahoo.com , these function reading content , any idea, WHY this prob
This is a general question. What are some techniques you employ to prevent the links in your PHP code from breaking every time you move a file or switch a directory?
Whats the best way to send data to the server and have it run through a php script. Bearing in mind I do not want to have the user redirected to a different page and no response needs to be sent back from the server.
I coudn't find the solution for Php deployment to remote server using FTP from SVN after each commit.
How can I upload to server by FTP the only added or edited files and delete the deleted files from SVN
I think about write post-commit script...
I have a local network in the company with a mail server, how can i make php application built locally on the server to send and email to a local email address?
thanks in advance
Hi everybody!
Can you please help me for this problem:
It shows me this error in WAMP:
Notice: Undefined index: searchstring in C:\wamp\www\Reece Calendar 0.9\includes\search.php on line 180
AND THE LINE IS:
<input type=\"text\" name=\"searchstring\" size='70' value='".htmlspecialchars($_POST['searchstring'])."'/>
How can I modify it?Please help me!Thnx in advance=)
Hello,
I am trying to send something to serial port (r232) with PHP.
I am using this class: http://www.phpclasses.org/browse/package/3679.html
The problem is that I am allowed to send only 1 byte.
But if I send something like "1", I am actually sending 49 (ASCII for 1).
Instead of send("1"), I tried with send(1) but it is no good, because this is integer which has 2 bytes.
So is there a way to send a "real" char, not ASCII equivalent?
Hi!
Is there a straightforward way of determining the number of decimal places in a(n) integer/double value in PHP? (that is, without using explode)
Thanks,
Erwin
Here are the objects:
courses
{ "name" : "Biology", "_id" : ObjectId("4b0552b0f0da7d1eb6f126a1") }
students
{
"name" : "Joe",
"classes" : [
{
"$ref" : "courses",
"$id" : ObjectId("4b0552b0f0da7d1eb6f126a1")
}
],
"_id" : ObjectId("4b0552e4f0da7d1eb6f126a2")
}
Using the PHP Mongo Class, how do I get all the students that has a biology course?
Thanks
Say i have an xml file of this nature
some data
I wan to replace attributes of each later using one function in php:
example say:
replaceAttribute("collections","somecollection,"newcollection");
I have a build a web portal based on the Cricket concept,
I have build a Custom based CMS where I can upload the News for the site
Once I upload the news, the URL Will be like this
http://cricandcric.com/news/news.php?id=841&An-emotional-moment:-Dhoni.html
But I am trying to have the above Url as follows (some thing like this)
http://cricandcric.com/news/An-emotional-moment:-Dhoni.html
Or similar to Stackoverflow.com,
Can any one please help me how can i build that?
Do I need to rewrite the URL ?
The FILTER_VALIDATE_URL filter seems to have some trouble validating non-ASCII URLs:
var_dump(filter_var('http://pt.wikipedia.org/wiki/', FILTER_VALIDATE_URL)); // http://pt.wikipedia.org/wiki/
var_dump(filter_var('http://pt.wikipedia.org/wiki/Guimarães', FILTER_VALIDATE_URL)); // false
Why isn't the last URL correctly validated? And what are the possible workarounds? Running PHP 5.3.0.
I'd also like to know where I can find the source code of the FILTER_VALIDATE_URL validation filter.
Hi, I'm looking for an alternave to the parse_ini_file() function in php. I want a simple way to store config settings, but want the flexibility to store unlimited levels of multiple arrays, special characters, etc. Any ideas?