say you have a php script (x.php), the script can be called either from the command line, or from a web request. how can the script determine which called it?
simple and elegang solution needed.
Posted on 06 June 2010.
say you have a php script (x.php), the script can be called either from the command line, or from a web request. how can the script determine which called it?
simple and elegang solution needed.
Posted in PHPComments (2)
Posted on 06 June 2010.
Ok i have a problem here to solve.. I am doin a report system on my database management system.
For example.. a user login n add new data to database.. so how to show, how much amount a day that user have add new data in database. do u have any idea… how to write the php script.
Posted in PHPComments (1)
Posted on 01 June 2010.
For example,
If the user inputs a list of tags such as:
tag,tagone,tag,tagtwo
I want php to parse out the individual words and send them back to the server using regular expressions (preg_match). How do I do that? I have never used regular expressions before.
Keep in mind that the number of words will be unknown.
Posted in PHPComments (2)
Posted on 31 May 2010.
as i am staying in us ,i am willing to buy orignal script , not pirated so that i am not offended in copyright laws.
Suggest me a good php casino script please?
Posted in PHPComments (3)
Posted on 24 May 2010.
I have “table1″ with 100 record, I want to display 10 records in each page, and the pages links (1,2,3…) must be at the bottom of each page and it must be created AUTOMATICALLY after adding new record in the “table1″.”some thing like guest book”
Posted in ASPComments (1)
Posted on 17 May 2010.
OK, so I’m knew to php. But the only way to learn it is to try, right? So i’m trying to make a simple 5 page web site. I want to use one layout and I want to be able to switch content of the page by clicking a link and using php. If you know how to do this simple script please show me in detail. Thank you.
Yes, its only 1 Template.
ANd…
this answer (you can also do this with redirects in .htaccess and build onlyone actual page). this sounds like what I”m looking for. Using only one page that redirects info. how do you do this?
Posted in PHPComments (1)
Posted on 16 May 2010.
I have a php script that counts the number of files on a directory and i need it to input the results it get into a javascript that will then run based on the results
Posted in PHPComments (2)
Posted on 13 May 2010.
How would I make this code:
$sql = ‘ SELECT *’
. ‘ FROM `users`’
. ‘ LIMIT 0 , 30 ‘;
Into a PHP script where it would display the output of the MySQL query? Or, how would I be able to see all entries in the database from a PHP script? Thanks!
Posted in PHPComments (2)
Posted on 12 May 2010.
Hi i am developing a mobile site and wants to keep away desktop browser from it. So, i need a PHP browser sniffer script which only allows the mobile browser to access the page and redirect any desktop browser to other website.
Posted in PHPComments (1)
Posted on 07 May 2010.
I am running a php script and you can choose free and paid where you pay by paypal. I want to add an option for cheaque where the visitor will be directed to a page with instruction on where to send the cheaque i.e our address and phone numbers. How do I do this.
Where can i find instructions on doing this?
Posted in PHPComments (1)