PHP command line: max_execution_time and memory_limit
Quick question. If I run a php script from the command-line (through a cron job, "php ./somwthing-sync.php"), am I still bounded to the php max_execution_time and memory_limit? Thanks Nathan ...
Quick question. If I run a php script from the command-line (through a cron job, "php ./somwthing-sync.php"), am I still bounded to the php max_execution_time and memory_limit? Thanks Nathan ...
Suppose you have access to a script which will print or echo an ID string, given a name string, i.e., something like: http://www.example.com/script.php?name=aNameString outputing an ID string. I want to create a script which will allow me to retrieve anIDString, given that I already have a variable holding aNameString, i.e., something...
i have develop a eblast application The program is use to send a email to some recipients the recipients email will be grab from a xls file and the program has set it to send 10 email each time and sleep 30 seconds and use ob_flush(); and flush(); to out put the steam of the process and display in frontend yesterday my client test i...
how do I catch my custom soap fault ProductoInexistente when requesting a soap web service operation? my code is the following, but it's not working: $_WSDL_URI = 'http://joaquinlrobles.redirectme.net:8080/Pelopincho/PelopinchoService?WSDL'; $ws = new Zend_Soap_Client($_WSDL_URI, array('soap_version' => SOAP_1_1)); try { $resultado = $...
Hello, How do I get the base URL in Kohana 3? Is there a solution in raw PHP? Thanks. ...
how to replace 'abc' to 'a\0\0c' the following code is fail and give output 'ac' <?php $input = 'abc'; $pattern = '/b/i'; $replace = "\\0\\0"; $output = preg_replace($pattern, $replace, $input); echo $output; ?> ...
If you're not familiar with what I mean by tournament bracket, see here: http://baseballguru.com/bracket1.gif That said, I have built the dataset and figured out the number of rounds (ceil(log($numPlayers,2))) and I am comfortable finding the number of players in each round, etc. What I need to do now is move my array of matches for ea...
Perplexed here.... This code: $qry = sprintf("INSERT INTO news_sites_homepage_grab VALUES ('', %d, '%s', NOW(), NOW())", $site_id, mysql_real_escape_string($html)); ...is executed in a loop where $html changes every time. This code executes once but the next time, the script simply dies. No ...
How would I preg_match the following piece of "shortcode" so that video and align are array keys and their values are what is with in the quotes? [video="123456" align="left"/] ...
HI, I have a problem parsing a date in php using strptime() as my system is running windows. I've also try to parse the date using strtotime() but not luck either because I'm using euro date format. This is the date format I'm using 30/11/2009 11:00 am and I need to get the timestamp from it. Any ideas how can I achieve this ?? ...
Hi there, I need help with what I thought would be a simple form submit problem with Jquery, but am running into issues. I have a form, #listing_step_1, in which the user first selects a category from a dropdown. When a category has been selected, if the user clicks "next", the subcategory dropdown is revealed. When both a category a...
Hello! I wanted to know if there is something like a content place holder in php..like the one we use in asp..I have my index.php and I want only a part if the page to be updated, I am using css.I was thinking about making a copy of the index.php then rename it to, for example, register.php. then change the css tags where needed. Is it h...
I am facing the below error in my website in which SourceGuardian 7.0 - ixed.5.3.lin. The code was encrypted in php5. Fatal error: SourceGuardian Loader - This protected script does not support version 5.3.1 of PHP. Please contact the script author about this problem. Error code [07] Do I need to do anything to work? ...
How to use plugin facility to add a new field on squirrelmail.what files need to change to add a field using plugin in php. is somebody thewre for guidence and having step by step procedure to do this .i need to add a openid field(textbox) using plugin on squirrelmail user interface.there are the files like function.php,setup.php etc. ...
I build a website application using Yii Framework. I want to use model with query like this: SELECT u.id, u.username, u.score, (SELECT COUNT(ownerId) FROM post p WHERE p.ownerId = u.id) AS totalPost FROM users u ORDER BY u.score DESC, totalPost DESC LIMIT 10 Please help me to convert the query into models in Yii Framework ... ...
I have first all install the Visual studio 2008 on my computer and after that wamp server. I was try to start wamp server but it can start it shows error. please help me what can i do? ...
I'm trying to make a php cURL script that should act like a bridge/proxy (like "man in the middle" but nothing hacking ), make a POST to a url (example.com) and redirect the client to that link after it gets the response . I'm not sure if it's possible so please advise. Basically the client will pass 2 values through our site (e.g exam...
Please explain what is the meaning of foreach ($toplist['children'] as $subkey => $subname) and where the children come from. I'm confused. ...
if i write the comet push with php but use this code on a java server via quercus, will that solve the one process per request problem that apache had and scale well with lot of users using my chat? ...
So I have a list of CSVs in one table. (EG: 1,3,19 ) I want to search out all of the usernames from the other table where the ids match any of those. I feel like I should be able to do something like: <? $query = "SELECT player_ids FROM cast_list WHERE game='".$gameid."' "; $result = mysql_query($query) or die(mysql_error()); $player...