All In One Script
MENU

Execute PHP files periodicaly

by 4:26:00 AM
undefined
Execute PHP files Periodicaly The question is very easy, I want to execute several php files every "N" minutes. For example: every N minutes { execute(script1.php) execute(script2.php) execute(script3.php) } I know about crontab but i was trying to find another solution. Any suggestions? Thanks in advance. Solution: Using a Cron job is the usual solution. Can you explain why you don't want to use CRON? I've also seen libraries that add cron-like features to your system. For example in the Java/Groovy/Grails world there's

Yeoman and PHP files?

by 4:24:00 AM
undefined
Yeoman and PHP files? Is there any way to configure Yeoman (latest version: v0.9.6) to serve php files? I found this http://fgnass.github.com/2012/08/30/yeoman.html but couldn't get it working. Installed https://github.com/fgnass/gateway, https://github.com/fgnass/tamper and made the required updates to Yeoman as shown here: https://github.com/fgnass/yeoman/commit/39faa07375ee49d56bd50d334dcfd6b5a4e96292. All i got is the browser downloading each php file instead of rendering it. Any help is greatly appreciated! EDIT: Yeoman 1.0 has been launched. I haven't tried using php with it yet but would still like to know if it is possible. Solution: I just wrote a

Include External PHP files

by 4:21:00 AM
undefined
Include External PHP files I am using some php code like database connection which is common for all the pages, so I created a php file which contains the php code and then I am including this file in my HTML code, So I want to know the better way to include php file, better alternative for include function. my example code is here <?php include "check_timeout.php"; include "connect_to_db.php"; ?> <html> <head> <title>Example</title> </head> <body> <?php mysql_close($con); ?> </body> </html> Thank you in

Combing include PHP files

by 4:19:00 AM
undefined
Combing include PHP files I have separate php files. I have a master file that I use by include these files like /include '1.php'; /include '2.php'; / include '3.php'; Now I want to combine this 3 file to one php file.How can I use them because in my master code there are 3 conditions,like condition 1 uses file 1.php condition 2 uses file 2.php and so on thanx Answer: Hi you can write your code this way <?php if(condition1) include('file1.php'); else if(condition2) include('file2.php');

Is there a static code analyzer [like Lint] for PHP files?

by 4:08:00 AM
undefined
Is there a static code analyzer [like Lint] for PHP files? Is there a static code analyzer for PHP files? The binary itself can check for syntax errors, but I'm looking for something that does more, like unused variable assignments, arrays that are assigned into without being initialized first, and possibly code style warnings. Open-source programs would be preferred, but we might convince the company to pay for something if it's highly recommended. Answer: Run php in lint-mode from the command line to

Instagram