PHP why is not "strtotime is not defined"
// why does this not work PHP in XAMMP stack // error: "strtotime is not defined" $date2 = strtotime('2010-10-01'); ...
// why does this not work PHP in XAMMP stack // error: "strtotime is not defined" $date2 = strtotime('2010-10-01'); ...
Is it possible for the function? ...
Timezone problem in error_log? If I explicitly set the error_log directive to a file in php, and then use the error_log statement with a timezone, then why does it not respect my timezone? See below: [[email protected] ~]$ cat errlog.php <?php date_default_timezone_set('America/Los_Angeles'); ini_set('error_log', '/tmp/blah'); ini_set(...
I'm working on a framework that has a function invokeView() in the controller. As of now, this basically calls include on a $target php class which in turn displays a smarty template. I'd like the $target class to have access to a $response object which is created inside of the controller (the same place that calls the $target page). I...
My friend is echoing the date using date(G:i:s) but the result getting displayed is neither the current system time nor the xampp server time (as he is using xampp). so what is the possible reason for this problem and the solution to this problem. Thanks in advance ...
I've spent the whole day trying to set up development environment using: PHP Version 5.3.3 apache 2.2 mySQL Server 5.1 Windows 7 The localhost renders the php fine, and I can work with mySQL via the command line client, but whenever I try to interact with mySQL through PHP I get a 30 second "waiting for localhost" and then a blank w...
How do I use preg_replace to insert a given string after each opening tag in a string containing HTML? For example, if I have the string: $str = 'sds<some_tag>ttt</some_tag>dfg<some_tag>vvv</some_tag>sdf'; and I want to insert <b>, the result should be: $str = 'sds<some_tag><b>ttt</some_tag>dfg<some_tag><b>vvv</some_tag>sdf'; ...
Is there a good tutorial on creating a selected navigation menu using PHP? ...
I've got a map (Mercator), and the coordinates of the 4 corners of the map. I need to come up with something so I can convert given coordinates to corresponding points on the map. I can't use google or anything of the sort, which is why I'm needing to do this in the first place. The languages I can use are either going to be PHP or ...
I have a date field in mysql that contains numbers like 2455419. Any idea what format this is and how to convert to php/human eadable form? ...
Hi I am developing a php web site. I need Php code for authorize.net When i submit form credit card information should store in authorize.net. ...
I want to create a contact importer application.How to Import facebook contact using php and curl(prefer screenscraping).Please anybody can help me.... ...
Gday All, I have a baffling problem whilst trying to insert some chinese characters into my MySQL database from PHP using mysqlnd. I have a form that accepts some details, eg Internal Name, External Name, Shot Name, etc... I enter "语言测试" (Language Testing) into all three fields in the form. I am submitting my information using an inn...
I'm trying to return data as an array to my .ajax function on success so I can do do multiple things, but I can't get to work for anything except a single value. Like return $foo. But when I return $array, the page never loads up. ...
Hi i am developing a website in that i would like to use intersystems CACHE for database , i use DSN to connect with CACHE , but it shows the error as follows Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLCon...
Hi, php newbie here..I need some PHP help ideas/examples on how to import data from a delimited text file and map them into html tables. The data should populate and be mapped under its proper header. There are instances also where each record doesn't have all the values and if no data, then we can leave it null (See sample records). I w...
Hi i have the following code snippet, in an appliation working with Zend Framework. I know what Zend Date does.. thats not the problem. But the coder simply calls "$date" , and i dont know if this does something? $date = new Zend_Date(time()); $date->addDay(1); $date; // save date, or do something ...
Hi, I am developing a facebook iframe application with the New Graph API php sdk. I am using the basic code to just display my name. But it does not return any value. Some one please help me with this. <?php include_once 'facebook.php'; include_once 'config.php'; $facebook = new Facebook(array('appId' => FACEBOOK_APP_ID,...
Hello All, i have created below function in a file info.php to debug variable & data during page load class Info { static function watch($what,$msg='',$more=FALSE) { echo "<hr/>"; echo "<br/>".$msg.":"; if( is_array($what) || is_object($what) ) { echo "<pre>"; print_r($wha...
Well I have a index.html where i wud like to submit some coordinates that can be passed upon to separate php file ; where it cud perform a a query. I am new to this and so any suggestions wud be really helpful html: Xmax<input type="text" name="Xmax" size="15"> Ymax<input type="text" name="Ymax" size="15"> <input type=S...