f



cookies #2

hi,

I have following problem.

I have a form wich I post to another php file there i want to store the data
form the form in a cookie.
code:

<?

foreach ($HTTP_POST_VARS as $key => $value) {



if($value=='ON')


{


setcookie("TestCookie","$key",time()+3600);

}



But it doens'n work. I have the following Error Warning: Cannot modify
header information - headers already sent by (output started at C:\Program
Files\Apache Group\Apache2

I understand the error and i have search in de tutorial form php.net, but
How can I handle this problem?



Thanks,



Alain




0
1/11/2004 1:44:05 PM
comp.lang.php 32633 articles. 0 followers. Post Follow

1 Replies
259 Views

Similar Articles

[PageSpeed] 16

Alain Dhaene wrote:

> hi,
> 
> I have following problem.
> 
> I have a form wich I post to another php file there i want to store the data
> form the form in a cookie.
> code:
> 
> <?
> 
> foreach ($HTTP_POST_VARS as $key => $value) {
> 
> 
> 
> if($value=='ON')
> 
> 
> {
> 
> 
> setcookie("TestCookie","$key",time()+3600);
> 
> }
> 
> 
> 
> But it doens'n work. I have the following Error Warning: Cannot modify
> header information - headers already sent by (output started at C:\Program
> Files\Apache Group\Apache2
> 
> I understand the error and i have search in de tutorial form php.net, but
> How can I handle this problem?
> 
> 
> 
> Thanks,
> 
> 
> 
> Alain
> 
> 
> 
> 

You must set cookies before sending any other output to the browser... 
including spaces, line feeds, etc.

Move your code that does cookies to the top of your PHP file.  Maybe 
that'll help ya.

Regards,

- Dan
http://www.dantripp.com/
0
thisIsNot (92)
1/12/2004 12:36:00 AM
Reply:

Similar Artilces:

Cookies and PHP #2
I am looking to store a cookie on a client (machine) and then when the client revisits, to populate part of the form with data held on my server (ok this is for a my course). A I will need to get the initial data from the client. B Store it on my server with an account number. C Create a copy on the host or alternatively an account number. D When the user logs back on I will need to populate the form with the data they already entered. Any pointers or help appreciated. J James wrote: > I am looking to store a cookie on a client (machine) and then when the > client revisits, to populate part of the form with data held on my > server (ok this is for a my course). > > A I will need to get the initial data from the client. > B Store it on my server with an account number. > C Create a copy on the host or alternatively an account number. > D When the user logs back on I will need to populate the form with > the data they already entered. > > Any pointers or help appreciated. > > J Hi James, That is a real nice client/server assigment. :-) For details go to www.php.net Some pointers: Okay, so start by making a HTML page that contains a form. Let's say it contains two variables: name and age. (send.html) Make the action of the form some PHP-script on your server. (store.php) Code store.php so that it receives the form-data. Have a look at the $_POST["varnamehere"] or $_GET["varnamehere"] Use them ...

PHP and Cookies #2
I am having trouble retrieving cookie data using IE 7. I am using the following code to store the current date and user name into a cookie: <?php //($sec, $min, $hour, $mday, $mon, $year, $wday, $ydat, $isdst) = localtime(); $localtime = localtime(); $localtime[5] += 1900; $date = $localtime[4]+1 . "-" . $localtime[3] . "-" . $localtime[5]; // retrieve cookie $visit = $_COOKIE['lastdate']; if ($visit=="") $visit = "0-0-0"; $userlogin = $_COOKIE['user']; if ($userlogin=="") $userlogin = "Guest"; // set cookie SetCookie("lastdate", $date, time()+60*60*24*365, "/", ".assistacomp.com"); SetCookie("user", $userlogin, time()+60*60*24*365, "/", ".assistacomp.com"); ?> The code works perfectly in FireFox but IE7 does something strange. It functions perfectly until I reboot the computer. When the computer is rebooted, a new cookie is created with a [2] after the cookie name and the original cookie is completely ignored. Anybody have any idea of how to fix this? Jeff wrote: > I am having trouble retrieving cookie data using IE 7. > I am using the following code to store the current date and user name > into a cookie: > > <?php > //($sec, $min, $hour, $mday, $mon, $year, $wday, $ydat, $isdst) = > localtime(); > $localtime = localtime(); > $localtime[5] += 1900; > $date = $localtime[4]+1 . "-" . $loc...

PHP 4.2.2 and php://stdin
Hello, I am using php 4.2.2 in Red Hat 9.0 with apache 2.0.40 I try to build a php script that accepts POST requests that contain multimedia data and shoves them in a MySQL database. My problem is that it seems that I cannot read the POST data from stdin. I created the following php script to test it: <?php $in = fopen("php://stdin", "rb"); $line = fread($in, 10); echo "Content-type: text/plain\n\n"; echo "len=".strlen($line)." OK\n"; ?> and however I try to POST a file either with cURL (curl --data-binary @file http://....) or with netcat (nc host port, ...) what I get back is len=0 OK i.e. no data are read! Any ideas? Thanks! Stelios G. Sfakianakis wrote: > Hello, > I am using php 4.2.2 in Red Hat 9.0 with apache 2.0.40 I try to build a > php script that accepts POST requests that contain multimedia data and > shoves them in a MySQL database. My problem is that it seems that I > cannot read the POST data from stdin. > > I created the following php script to test it: > > <?php > > $in = fopen("php://stdin", "rb"); > $line = fread($in, 10); > echo "Content-type: text/plain\n\n"; > echo "len=".strlen($line)." OK\n"; > > ?> > > and however I try to POST a file either with cURL (curl --data-binary > @file http://....) or with netcat (nc host port, ...) what I get back is > > len=0 OK > &...

php degugger on php 5.2.2 (xampp 1.6.2) real brainer
Hi, I tried to get php dbg debugger working on my machine but it doesn't work at all. Ok, what i did: copied php_dbg-5.2.x.dll (for PHP 5.2.x version) into my xampp/php/ext directory next, modified /xampp/apache/bin/php.ini file appending: [debugger] extension=php_dbg-5.2.x.dll debugger.enabled=on debugger.profiler_enabled=on debugger.hosts_allow=localhost 127.0.0.1 ;debugger.hosts_deny=ALL debugger.ports=7869, 10000/16 debugger.JIT_host = clienthost debugger.JIT_port = 7869 Now, when i restard my server and try to get http://localhost my apache crashes and windows gives me a window telling me that this application will be closed !@!! what is wrong ? im running windows xp sp2 thanks in advance Piotr Nowak pisze: > Hi, > > I tried to get php dbg debugger working on my machine but it doesn't > work at all. > > Ok, what i did: > > copied php_dbg-5.2.x.dll (for PHP 5.2.x version) into my xampp/php/ext > directory > next, modified /xampp/apache/bin/php.ini file appending: > > [debugger] > extension=php_dbg-5.2.x.dll > debugger.enabled=on > debugger.profiler_enabled=on > debugger.hosts_allow=localhost 127.0.0.1 > ;debugger.hosts_deny=ALL > debugger.ports=7869, 10000/16 > debugger.JIT_host = clienthost > debugger.JIT_port = 7869 > > > Now, when i restard my server and try to get http://localhost my apache > crashes and windows gives me a window telling me that this application >...

php-mcrypt module for php-4.2.2 ?
Hi I am looking for the above as my php version (Redhat) is that. Call me lazy, but I do not wish to compile php unless it becomes absolutely necessary, as it has been working fine so far. I have searched google for it, but to no avail so far. Does anyone know a source for it ? Upgrading to 4.2.3 is an option, but it will require upgrading large chunks of my installation that I do not have a problem with. Thanks, MS ...

CSWS 2 (apache) / PHP 1.2 (php 4.2.3) / Oracle 9i OCI8 connectivity under OpenVMS
I'm currently trying to interface CSWS 2.0 (apache) / PHP v1.2 (PHP 4.3.2) with an Oracle 9.2 database under OpenVMS 7.3.2 The database connection works fine, but i've a problem with OCIexecute when i'm trying to select varchar value. My script works fine with int value, but give no resultt (error page) when there's a varchar colum in the select statement Someone Have exeprienced such problem ? Who can help me with APACHE/PHP/Oracle9I/OpenVMS configuration ? Environnement problem ? NLS problem ? Thanks in advance for all Best regards ...

PHP & Cookies #2
Hi, I'm having a problem with cookies in php. I set a cookie on one page, then when i try and read the cookie on another page, i have to refresh the browser to get the latest informaiton from the cookie. If i don't refresh the browser, the cookie returns old information. If I set the cookie, then close the browser, then try and read it, it works fine. Gareth Gareth Evans wrote: > Hi, I'm having a problem with cookies in php. I set a cookie on one page, > then when i try and read the cookie on another page, i have to refresh the > browser to get the latest informaiton from the cookie. If i don't refresh > the browser, the cookie returns old information. If I set the cookie, then > close the browser, then try and read it, it works fine. > > Gareth show some code. ...

PHP pre 4.2 VS. PHP post 4.2
My local PHP install (for development/learning) is 4.3, but my hosting service uses 4.0.6. Without turning on registered globals, is there a common way these two versions can handle form data? 4.0.6 doesn't have import_request_variable(), $_POST, or $_REQUEST, and 4.3 chokes on $HTTP_POST_VARS[]. Thanks Chris 4.3 shouldn't choke on HTTP_POST_VARS - one thing you have to watch out for, however, is that HTTP_POST_VARS is not superglobal, so if you use it in a function, you still have to say global $HTTP_POST_VARS; etc... perhaps this is the reason it 'chokes'? Chris wrote: > My local PHP install (for development/learning) is 4.3, but my hosting > service uses 4.0.6. Without turning on registered globals, is there a > common way these two versions can handle form data? 4.0.6 doesn't have > import_request_variable(), $_POST, or $_REQUEST, and 4.3 chokes on > $HTTP_POST_VARS[]. > > Thanks > > Chris ...

Apache 2.2 and PHP
I have upgraded to Apache 2.2 and php5.0.4 (both from SUNFREEWARE) and am now getting errors: httpd: Syntax error on line 110 of /usr/local/apache2/conf/httpd.conf: API module structure `php5_module' in file /usr/local/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO? This has been reported at various places but there has been NO answer... Any EXPERT know how to resolve? Yes,the libphp5.so exists with the same rights as all the others in the MODULES directory. Thanks Carl On Mon, 13 Feb 2006, Carl Hilton wrote: > I have upgraded to Apache 2.2 and ...

Is Php built in function ' imagecreate()' compatible in Php version 5.2.2 ?
Hi All, I have the php version 5.2.2 . When I am using " $im = imagecreate(......); " I am getting the following message "Fatal error: Call to undefined function imagecreate() in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\server.php on line 32" I want to know whether "imagecreate()" is compatible in PHP version 5.2.2.? saikiran.iitkgp@gmail.com wrote: > Hi All, > > I have the php version 5.2.2 . When I am using > > > " $im = imagecreate(......); " I am getting the following message > > > "Fatal error: Call to undefined function imagecreate() in C:\Program > Files\Apache Software Foundation\Apache2.2\htdocs\server.php on line > 32" > > > I want to know whether "imagecreate()" is compatible in PHP version > 5.2.2.? > It looks like you're missing the gd extension. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== edit php.ini ;extension=php_gd2.dll to extension=php_gd2.dll ...

Apache 2.2.2 and PHP 5.1.4 on Win2k crashing
I just installed Apache 2.2.2 on my Windows 2000 (SP4) machine to test the new version. Everything works except PHP (version 5.1.4): when starting Apache, it pops out a message saying that it is unable to locate the module (even set on the correct path!), stops the execution and exits. On the other side, PHP works fine with Apache 2.0.55, so It's not a problem of a broken build. Got ideas? Thanks. -- Massimo Lombardo unwiredbrain@gmail.com wrote: > I just installed Apache 2.2.2 on my Windows 2000 (SP4) machine to test > the new version. > Everything works except PHP (version 5.1.4): when starting Apache, it > pops out a message saying that it is unable to locate the module (even > set on the correct path!), stops the execution and exits. On the other > side, PHP works fine with Apache 2.0.55, so It's not a problem of a > broken build. > > Got ideas? > > > Thanks. > -- > Massimo Lombardo The binary interface of Apache 2.2 is different from that of Apache 2.0. You can't use the same DLL. If you really want to use Apache 2.2, then you have to recompile the SAPI module yourself. Chung Leong wrote: > The binary interface of Apache 2.2 is different from that of Apache > 2.0. You can't use the same DLL. If you really want to use Apache 2.2, > then you have to recompile the SAPI module yourself. Or wait for the new build from php.net, right? unwiredbrain@gmail.com wrote: > Chung Leong wrote: > > ...

Session Cookie Glitch with mod_perl 2.03 and Apache 2.2.6
I have an application originally written for the combination of Apache 1.3.31, mod_perl 1.39, and MySQL 4.0.16 that I'm moving to new servers so I wanted to take the opportunity to migrate these components to the latest versions: Perl v5.8.8 built for i586-linux-thread-multi Apache 2.2.6 mod_perl 2.0.3 OpenSSL 0.9.8g libapreq 2-2.08 MySQL 5.0.45 The APIs for mod_perl changed substantially between 1.0 and 2.0 so I've gone through the code that involves the old 1.0 vintage Apache::xxxxxx modules and updated them to 2.0 equivalents in the Apache2::xxxxxx or ModPerl::xxxxxxx modules. Th...

linspace(2,2,2) returns [2 2] ??
May be the help for linspace should change? It says: "LINSPACE(X1, X2, N) generates N points between X1 and X2." Notice, it says BETWEEN. But when I ask for 2 points, between 2 and 2: ---------------- EDU>> linspace(2,2,2) ans = 2 2 --------------- May be mathematically this is ok? i.e. there are infinite points between the point and itself? (on the real line), but from programming point of view, it is confusing. no? --Nasser Maybe it should say "generates N points between X1 and X2, inclusive." What did you expect to get back as an answer from issuing linspace(2,2,2)? I didn't understand your statement "there are infinite points between the point and itself?" How do you have an infinite number of points between 2 and 2? I can see an infinite number of points between 2 and something that's not itself, like 2.00000000000000001, but if they are absolutely perfectly identical how are you getting an infinite number of points? On 10/10/2010 11:16 AM, Image Analyst wrote: > Maybe it should say "generates N points between X1 and X2, inclusive." > > What did you expect to get back as an answer from issuing linspace(2,2,2)? > I was just not expecting it to "work". may be an error message. That is not the point. The point is that it did work. > I didn't understand your statement "there are infinite points between the point and it...

2 * 2 * 2 * 2 or pow(2, 4)?
Hi , I hope this isn't too trivial to ask, but I'm evaluating a polynomial that involve lots of terms like x^2y^2z^3, and although I can use the power function pow(a, b), I wonder if just writing x*x*y*y*z*z*z for example wouldn't be more efficient than pow(x, 2)*pow(y, 2)*pow(z,3). Or is it all the same? Thanks, - Olumide Olumide wrote: > I hope this isn't too trivial to ask, but I'm evaluating a polynomial > that involve lots of terms like x^2y^2z^3, and although I can use the > power function pow(a, b), I wonder if just writing x*x*y*y*z*z*z for > exam...

Problems compiling Sablotron into PHP 4.3.2 on RedHat 7.2 #2
Hi, I'm trying to install Sablotron on Red Hat Linux release 7.2 (Enigma). I've got Sablotron to compile. I now get the following error when running ./configure on PHP: checking for Sablotron libraries in the default path... found in /usr/local checking for sablot-config... found checking for Sablotron version... configure: error: Sablotron version 0.96 or greater required. [root@redhat1 php-4.3.2]# In config.log: configure:75340: checking for sablot-config configure:75358: checking for Sablotron version configure:75383: gcc -o conftest -g -O2 -I/usr/local/include -Wl,-rpath,/usr/\local/lib -L/usr/local/lib conftest.c -lcrypt -lcurl -lm -lcurl -ldl -lcrypt 1\>&5 configure: failed program was: #line 75365 "configure" #include "confdefs.h" #include <stdlib.h> #include <sablot.h> int main () { double version; version = atof(SAB_VERSION); if (version >= 0.96) { exit(0); } exit(255); --1-:---F1 config.log (Fundamental)--L973--99%-------------------------- I have found the following URL: http://archive.gingerall.cz/archives/public/sab-php/msg00263.html which talks about problems coming from having some libraries compiled using g++ version 3. If this might be the problem how can I go about finding which libraries have been compiled in such a way? If this isn't the problem, anyone got any suggestions? Thanks, Steve. ...

Apache 2.2.4 ignores PHP 5.2.4 scripts on Win2K3
Hi all PHP newbie here, 1) I disabled IIS. 2) Loaded Apache 2.2.4 on Win2K3. 3) Loaded PHP 5.2.4 pretty much bare bones, but included MySQL, SMTP, SOAP and ZIP extensions. Installers: apache_2.2.4-win32-x86-openssl-0.9.8d.msi php-5.2.4-win32-installer.msi Installer changed the httpd.conf file and added the following: PHPIniDir "C:/Program Files/PHP/" LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" AddType application/x-httpd-php .php Error log shows that PHP was configured: .... [Fri Sep 14 16:07:49 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.4 configured -- resuming normal operations [Fri Sep 14 16:07:49 2007] [notice] Server built: Jan 9 2007 23:17:20 .... If I add any PHP code to the index.html file it is ignored: <?php print "My Test"; ?> or <?php phpinfo(); ?> Any ideas? -- thanks, bill "AlterEgo" <someone@dslextreme.com> wrote in message news:13em57122h92h15@corp.supernews.com... > Hi all PHP newbie here, > > 1) I disabled IIS. > 2) Loaded Apache 2.2.4 on Win2K3. > 3) Loaded PHP 5.2.4 pretty much bare bones, but included MySQL, SMTP, SOAP > and ZIP extensions. > > Installers: > apache_2.2.4-win32-x86-openssl-0.9.8d.msi > php-5.2.4-win32-installer.msi > > Installer changed the httpd.conf file and added the following: > PHPIniDir "C:/Program Files/PHP/" > LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" &g...

PHP with Indian PHP Developers #2
Dear all, If you want to make a PHP web application, or need to Hire PHP Developer contact a leading PHP Web Development Compnay http://www.virtueinfo.com/ php-developers/php-web-development.htm ...

[PHP 5.2.8] Retrieve cookies from remote host and pass them back to client.
I have a PHP 5.2.8 web application that needs to retrieve a resource from a remote URL. However, the remote host also sends a cookie back (in a Set-Cookie header), and I need to grab that cookie and pass it on to the client (so that it's stored by the client browser). I do know the name of the cookie beforehand. What is the best way to do this? Passing a cookie from PHP back to the client is easy, it's grabbing the cookie from the remote URL that is the problem. There is no support for cookies in file_get_contents(), so that won't work. I can use curl to retrieve the remote URL with headers, but curl does not seem to provide an easy way to get the value of the cookie beyond retrieving the HTTP headers and parsing them manually. I could use and parse curl's cookie file (another hack) but the cookie contains a value that is randomly generated, and the cookies in curl's cookie jar are global to all PHP requests (so if multiple users made the same request, their cookie value could be shared). How can I retrieve the contents of a remote resource as well as the value of a cookie sent with that resource? Thanks, Jason P.S.: Also, as a minor side question; how, if at all, would the method for doing this be different in PHP 4.4.9? On Feb 13, 12:48=A0pm, JC <jason.cipri...@gmail.com> wrote: > I have a PHP 5.2.8 web application that needs to retrieve a resource > from a remote URL. However, the remote host also sends a cookie back > (in a Set-Coo...

<?= does not work on Windows XP Apache 2.2.x and PHP 5.2.4
When i do <?php echo "This works fine"; ?> Everything works fine. But when i do <?= "Some text"?> nothing works. Any ideas? Best Regards, Nicos On Fri, 28 Sep 2007 10:06:26 +0200, Nicos <nicoskk@gmail.com> wrote: > When i do > <?php > echo "This works fine"; > ?> > Everything works fine. But when i do > <?=3D "Some text"?> nothing works. Any ideas? It relies on short_open_tags, which have been disabled by default for a = = very long time now. Don't rely on them, only keep the setting on for = legacy code that still uses it for which you have no time to rewrite it,= = and use full tags in new code. -- = Rik Wasmus ...

Trying to build PHP 4.3.0 with Apache 2.2.2 on SUSE 9.1
What a mix! Whilst I grep around for the first set of problems, I thought I'd ask any generous members of this PHP community for clues... I've started by trying out the instructions at: http://dan.drydog.com/apache2php.html Got this out of the make: ----------------------------------------------------------------------------------------------- /bin/sh libtool --silent --mode=compile gcc -Isapi/apache2filter/ -I/root/downloads/php-4.3.0/sapi/apache2filter/ -DPHP_ATOM_INC -I/root/downloads/php-4.3.0/include -I/root/downloads/php-4.3.0/main -I/root/downloads/php-4.3.0 -I/usr/local/Apache2/include -I/root/downloads/php-4.3.0/Zend -I/usr/local/include -I/root/downloads/php-4.3.0/ext/xml/expat -I/root/downloads/php-4.3.0/TSRM -g -O2 -prefer-pic -c /root/downloads/php-4.3.0/sapi/apache2filter/sapi_apache2.c -o sapi/apache2filter/sapi_apache2.lo In file included from /usr/local/Apache2/include/apr_strings.h:48, from /root/downloads/php-4.3.0/sapi/apache2filter/sapi_apache2.c:34: /usr/local/Apache2/include/apr.h:270: error: parse error before "apr_off_t" /usr/local/Apache2/include/apr.h:270: warning: data definition has no type or storage class In file included from /root/downloads/php-4.3.0/sapi/apache2filter/sapi_apache2.c:34: /usr/local/Apache2/include/apr_strings.h:297: error: parse error before "apr_off_t" /usr/local/Apache2/include/apr_strings.h:313: error: parse error before '*' token /usr/local/Apache2/include/apr_stri...

[5.2.2/cURL] Not getting cookies?
Hello So I'm trying to use cURL to write a PHP5 script that is effectively a proxy, since the browser will call this index.php which will fetch pages from a remote server, and pass them on to the browser, including cookies. For some reason, cURL fails creating the file that holds cookies ("CookieJar not created!"), although I copy/pasted this code from cURL's web site (http://curl.haxx.se/libcurl/php/examples/cookiejar.html): ========= <?php //Using one script for different steps $status = ($_POST['status']? $_POST['status'] : $_GET['status']); switch($status) { //Show login page default: //Form in text file $page = file_get_contents("login.tpl"); echo $page; break; case "login": //POST params to remote web server $login = $_POST['Login']; $password = $_POST['Password']; $cookiefile = $login . ".txt"; if (isset($login) and file_exists($cookiefile)) { unlink($cookiefile); } $ch = curl_init(); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookiefile); curl_setopt($ch, CURLOPT_URL,"http://www.acme.com/connect.php"); curl_setopt($ch, CURLOPT_POST, 1); $data = sprintf("Login=%s&Password=%s",$login,$password); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); ob_start(); // prevent any output $buffer = curl_exec ($ch); // execute the curl command ob_end_clean(); // stop preventing output ...

Unable to load dynamic link library php_mysql.dll
Hello, I am attempting to perform a PHP installation on an Apache 2.2.6 web server instance that is loaded on a Windows 2003 server operating system (R2 SP2). I have a third party application that will reside within the Apache instance that requires PHP 5.2.6 loaded with MySql support. The installation of PHP succedded without incident (it was done manually) and I can run phpinfo() to get information about the installation. However, when attempting to load the php_mysql.dll extension I recieve the following error message: ------------- PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\php\\ext\\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 ------------- I have verified the following: 1. That I have set up the php.ini file (which resides in C:\php. Specifically, I have set up the following as it regards to loading the php_mysql.dll extension - Set up the extension_dir variable: extension_dir = "C:\php\ext\" - Uncommented the line that relates to the php_mysql.dll file" extension=php_mysql.dll 2. That I have set up the http.conf file for Apache: - The following lines were added: LoadModule php5_module "C:/php/php5apache2_2.dll" PHPIniDir "C:/php" AddType application/x-httpd-php .php .php3 .htm .html AddType application/x-httpd-php-source .phps Is there anything else that I need to do? Thanks for yo...

apache 2.2.15 service won't start w/ PHP 5.3.2, Windows XP
On a localhost development configuration under Windows XP Pro (SP3), I cannot get Apache2.2.15 http service to start after I enable PHP 5.3.2 as a module. Without PHP, Apache starts and works just fine; PHP itself works (from a command prompt). I had had Apache 2.2.14 and an older PHP 5.2.x working happily together, supporting MySQL, phpMyAdmin, etc. I uninstalled all that and instead: (1) Installed Apache 2.2.15 from httpd-2.2.15-win32-x86-no_ssl.msi (also tried the openssl version when the former + PHP didn't work). It's installed as a service for all users on port 80. And I'm running as Administrator. That worked just fine. (2) Installed PHP 5.3.2 from php-5.3.2-Win32-VC6-x86.msi (thread safe version). As php.net says, with apache.org binaries, I used the VC6 version, not VC9. Now the apache http service will not start. So of course I never got so far as to try a .php script in the browser. When that failed, I uninstalled PHP and instead tried to use php-5.3.2- Win32-VC6-x86.zip and configure manually, starting with php.ini- development copied to php.ini and edited as below. Of course I put the correct entries in Windows system environment variables PATH (starts with D:\Server\PHP\ext;D:\Server\PHP) and PHPRC (D:\Server\PHP). File httpd.conf is what the Apache installer set up plus my edits in appropriate spots: [CODE]ServerName localhost:80 DocumentRoot "E:/htdocs" <Directory "E:/htdocs"> LoadModule php5_module "D:/Serv...

rebuild php-4.2.2-17.2 with "--with-xml --enable-xslt --with xslt-sablot" on RedHat 9.0
Hi, I have RedHat 9.0 and installed by default Apache+PHP. By default XSLT Sablotron support is not enabled, so how can I rebuild PHP with xslt support? I know that I can rebuild it from sources as described on http://www.protonicdesign.com/tutorial/sablot_and_php.php, but I want to do it without uninstalling and breaking present configuration. I just need append support for XSLT Sablotron. Sincerely, Rustam Bogubaev Hi Rustam! On 14 Sep 2003 14:23:19 -0700, rbogubaev@bookinturkey.com (Rustam Bogubaev) wrote: >Hi, > >I have RedHat 9.0 and installed by default Apache+PHP. By default XSLT >Sablotron support is not enabled, so how can I rebuild PHP with xslt >support? > >I know that I can rebuild it from sources as described on >http://www.protonicdesign.com/tutorial/sablot_and_php.php, but I want >to do it without uninstalling and breaking present configuration. I >just need append support for XSLT Sablotron. Recompile it and build the module (assuming you are using the Apache Module (which Apache actually)). Test on a different machine. then: apachectl stop copyscript: mv old version, cp new module apachectl start takes about 1,5 seconds. HTH, Jochen -- Jochen Daum - CANS Ltd. PHP DB Edit Toolkit -- PHP scripts for building database editing interfaces. http://sourceforge.net/projects/phpdbedittk/ Ok, thanks for suggestion. Also I wanted to know how can I do it with Redhat's rpm (Apache+PHP installed from RedHat's rpm's). ...

PHP 5.2.1: cli does load php_mysql.dll while the same script executed by apache 2.2 fails Call to undefined function mysql_connect()
Hi there! After I overcame some short_open_tag (thanks, Rik!) I encounter another strange php-behaviour. The script I just got to work on the windows-commandline obviously does as php.ini tells php to do and loads php_mysql.dll: E:\ersDHCP>php ./extractLog.php .... some mysql-stuff, some output, OK The same script invoked by the webserver apache 2.2 entails an error: http://localhost/extractLog.php PHP Fatal error: Call to undefined function mysql_connect() My configuration php.ini does contain the line extension=php_mysql.dll and seems to be OK while I use the script from commandline. Is there anybody who can give me a hint where to cope with this error? Take care, Christian ...

Web resources about - cookies #2 - comp.lang.php

Fortune cookie - Wikipedia, the free encyclopedia
A fortune cookie is a crisp cookie usually made from flour , sugar , vanilla , and sesame seed oil with a "fortune" wrapped inside. A "fortune" ...

With Facebook Exchange, Company Changes Stance On Cookies
... for as the company tries to boost revenue. While you’re probably growing used to that, it represents a change in Facebook’s stance toward cookies ...

Tastemade - Cookie the News: David Bowie - Facebook
"I don't know where I'm going from here, but I promise it won't be boring." - David Bowie, 1947-2016

Slideshow: Facebook’s top games of 2014 — Cookie Jam, Kim Kardashian and more
Facebook on Tuesday announced the games of the year , with SGN’s Cookie Jam taking the top honor. Kim Kardashian’s game , as well as titles featuring ...


Crumblin' Cookie (@Crumblin_Cookie) on Twitter
Sign in Sign up To bring you Twitter, we and our partners use cookies on our and other websites. Cookies help personalize Twitter content, tailor ...

Cookie Monster Stars in New iPhone Commercial
True story (you can ask my mom): my first spoken word was “cookie”, such a fan of Cookie Monster was I. I’ve never been one for moderation. ...

We did a blind taste-test to see how knockoff Girl Scout cookies compare to the real thing
VIDEO: We did a blind taste-test of Girl Scout cookies and the Walgreens' Nice! brand counterparts to see if we could tell the difference.

Apple debuts new iPhone 6s ad featuring hands-free Siri with the Cookie Monster
Apple has launched yet another iPhone 6s advert, this time featuring a special celebrity guest: the Cookie Monster. In the ad, named Timer, the ...

Sisters sell hundreds of Girl Scout cookies to police in New Jersey after woman curses them out - abc7ny.com ...
Two young sisters in New Jersey are experiencing a windfall of Girl Scout cookie orders after word spread about a nasty encounter they had with ...

Resources last updated: 3/24/2016 5:30:19 AM