View Full Version : php


maslan
hi
:)
how can i test php scripts without uploading it on net to execute it on the server i need to emulate it or just test it or run it.
thanks;)

redhat_Linux
run apache in uir machine and test it on it i will give u details later but i should go now sorry

habdin
Salamo 3alaikom,

Why don't you test them on a local web server on ur linux box?

Salam.

OneOfOne
well....you dont actually have to run apache....
but your $_SERVER/$_COOKIES/$_POST/$_GET will be gone...

personally most of my commonly used scripts are in php and they don't relay on apache (although i have apache2 + mod_php installed).
[01:54:39][Fri Sep 26][OneOfOne]
[~] -> php -v
PHP 4.3.3 (cli) (built: Sep 13 2003 15:13:04)
Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
with Turck MMCache v2.3.23, Copyright (c) 2002-2003 TurckSoft, St. Petersburg, by Dmitry Stogov
[01:54:45][Fri Sep 26][OneOfOne]
[~] -> emerge -p apache mod_php php

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild U ] net-www/apache-2.0.47-r1 [2.0.47] +berkdb -gdbm -ldap
[ebuild R ] dev-php/mod_php-4.3.3 +apache2 +X +crypt +curl -firebird +flash -freetds +gd +gd-external -gdbm -imap -informix -ipv6 -java +jpeg -ldap -mcal -memlimit +mysql -nls -oci8 -odbc +pam +pdflib +png -postgres +qt -snmp +spell +ssl +tiff +truetype +xml2
[ebuild R ] dev-php/php-4.3.3-r1 +X +crypt +curl -firebird +flash -freetds +gd +gd-external -gdbm -imap -informix -ipv6 -java +jpeg -ldap -mcal -memlimit +mysql -nls -oci8 -odbc +pam +pdflib +png -postgres +qt -snmp +spell +ssl +tiff +truetype +xml2 +readline

[01:54:54][Fri Sep 26][OneOfOne]
[~] ->

peace

maslan
ok i think i should install apache :)

angoranimi
no you shouldn't.

I think OneOfOne's post wasn't too user-friendly; what he was saying was you can execute php scripts from command line just like you do bash.


#!/usr/local/bin/php
<?
phpinfo();
?>


and then dot-slashing them.

maslan
:)
thanks
i will try

salam ;)