Tag Archive | "script"

How to determine if a php script is ran from the command line, or as a web request?


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)

How to do data count for specific user in php script?


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)

How can I write a script in php to parse out comma separated words (like in a social web site)?


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)

where i can buy a good php casino script?


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)

How can I display MS-Access table records over multiple web pages using ASP and VB Script?


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)

How do you make a simple content change with php script?


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)

How do i get a php script to input its results into a javascript?


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)

How would I make this into a PHP script where it displays the output?


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)

What is the PHP script for to redirect a desktop browser.?


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)

How do I add offline payment to a php script. It only allows paypal for now and I want to add cheaque?


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)

Categories