php-windows Digest 13 Jul 2001 09:55:44 -0000 Issue 650
Topics (messages 8288 through 8306):
No extensions work!
8288 by: G Schneider
Apache and PHP
8289 by: Randall Barber
8292 by: Fritz Mesedilla
problem with stripslashes(nl2br($body)) - help please!
8290 by: Brett Taylor
8291 by: Brett Taylor
8302 by: Brett Taylor
Any one know how to get the Apache's server root?
8293 by: thrack
Re: HEEEEEEELLLPPP
8294 by: Kiera
TTF font files
8295 by: Kiera
Extension not loading
8296 by: Kiera
8297 by: Alain Samoun
Re: How to get a php_gd.dll with TTF support
8298 by: Kiera
TTF Issue SOLVED
8299 by: Kiera
dll separately
8300 by: as
8301 by: Alain Samoun
Make a CD with Apache & PHP
8303 by: Rafa Borges
8304 by: Alain Samoun
Interbase problem
8305 by: Sichta Daniel
new to PHP: add variable to session...?
8306 by: Andrew.Martin
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
Hi,
could *someone* please try to help me?
I've been using PHP for a while now on my Win98 machine with no problems.
But I just upgraded to PHP4.06 and when installing it, I accidentally got
the new install to overwrite my php.ini file.
So, I had to go back into the php.ini file to add the extensions directory
and enable GD extension (because I use it a lot).
But, whenever I have the GD extension enabled, no PHP pages will load in. At
all. No matter which server I use, it won't work. Thru Xitami won't work.
Thru IIS. Thru Apache. Nothing. As soon as I disable GD, however, it all
works perfectly. Except for the fact that I now don't have GD to play with.
Why doesn't it work?!?! I even tried removing PHP 4.06 and reinstalling my
old version 4.04! Nothing. Still when the GD extension (and any other
extension) is enabled - PHP refuses to give.
This has happened before to me, but it seemed to correct itself and I don't
know why.
Please help! Thanks!
Jefferrs
I've downloaded PHP 4.0.6 and followed there two line instructions concerning rigging
Apache for PHP interpreting:
LoadModule php4_module c:/php406/sapi/php4apache.dll
AddType application/x-httpd-php .php
I stuck this in httpd.conf right after the commented out modules that they warn you
should never enable without "professional" supervision.
I get the following error:
Cannot load c:/php406/sapi/php4apache.dll into server: (127) The specified procedure
could not be found:
I have permissions set on the directories, the dlls and the exe for IUSR_...
I'm new to Apache (but I do realize it is supperior). Will someone point me to a good
link with information about PHP and Apache setup?
Thanks
RDB
i had that problem too. but there is a small line in the install.txt file
that i also overlooked.
it says:
If you would like to use PHP as a module in Apache,
you should move
php4ts.dll
to the windows/system (for Windows 9x/Me)
or winnt/system32 (for Windows NT/2000) directory, overwriting any
older file. Then you should add the following two lines to your Apache
conf file:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
i hope that helps! good luck!!!
Fritz Mesedilla
Systems Administrator
Summit Interactive, Inc.
FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping
femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph
Palm Pilot Software: TVSked - Download from the link below
----------------------------------------------------------------------------
http://mesedilla.tripod.com +Basta Ikaw Lord
> -----Original Message-----
> From: Randall Barber [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 13, 2001 4:13 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Apache and PHP
>
>
> I've downloaded PHP 4.0.6 and followed there two line instructions
> concerning rigging Apache for PHP interpreting:
>
> LoadModule php4_module c:/php406/sapi/php4apache.dll
> AddType application/x-httpd-php .php
>
> I stuck this in httpd.conf right after the commented out modules that
> they warn you should never enable without "professional" supervision.
>
> I get the following error:
>
> Cannot load c:/php406/sapi/php4apache.dll into server: (127) The
> specified procedure could not be found:
>
> I have permissions set on the directories, the dlls and the exe for
> IUSR_...
>
> I'm new to Apache (but I do realize it is supperior). Will someone
> point me to a good link with information about PHP and Apache setup?
>
> Thanks
> RDB
>
Hi, i'm a PHP newbie and i'm working on a CSV powered
news/blog system for practice. I'm trying to take form
input and convert it into html using nl2br() and stripslashes().
Here's the script:
$news_array = fopen($news_file, "r"); // read in news
$output = fopen($output_file, "w"); // write amended file
// problem area begins here
$body = nl2br($body);
$line = $heading.'|'.$userno.'|'.time().'|'.$body;
$line = $line."\n" ;
// end problem area
fwrite($output,$line);
$count=$start;
while ($csvdata = fgetcsv($news_array, 1000 , "|")) {
fwrite($output,implode("|",$csvdata)."\n"); // output amended
line
} //end while
fclose($output);
fclose($news_array);
unlink($news_file);
rename($output_file,$news_file);
$body is being taken from a multiline editbox using virtual wrap.
it should write to a file like this:
Bacon, Lettuce and Tamarillo|0|994680000|news<br />on<br />multiplelines
Winamp Skins and Re-design|0|994334400|news<br />on<br />multiplelines
PHP is the shiznat!|0|994075200|news<br />on<br />multiplelines
but it's outputting:
freaking errors|0|994975909|i\'m not liking the error
<br />
<br />at all...freaking errors|0|994975848|i\'m not liking the errorBacon,
Lettuce and Tamarillo|0|994680000|rest of file is on this line
I'm running PHP 4.0.6 on win98 from OmniHTTPd 2.08
Thanks in advance for helping a newbie out :)
Brett Taylor
oops, forgot this line
> // problem area begins here
> $body = nl2br($body);
> $line = $heading.'|'.$userno.'|'.time().'|'.$body;
$line = stripslashes($line);
> $line = $line."\n" ;
> // end problem area
for anyone who cares, someone else told me:
$body = str_replace("\r","",str_replace("\n","",nl2br($body)));
$line =
stripslashes($heading."|".$userno."|".time()."|".$body)."\n";
fwrite($output,$line);
cheers to GuruBob for helping me with this one :)
"Brett Taylor" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> oops, forgot this line
>
> > // problem area begins here
> > $body = nl2br($body);
> > $line = $heading.'|'.$userno.'|'.time().'|'.$body;
> $line = stripslashes($line);
> > $line = $line."\n" ;
> > // end problem area
>
>
>
Hi,everyone:
Is there a constant that show the Apache's server root in PHP?
Thanks.
These instructions worked perfectly for me.
http://www.umesd.k12.or.us/php/win32install.html
I installed PHP on a Win2k machine using IIS and another using Apache.
Good luck!
Kiera
"Martin" <[EMAIL PROTECTED]> wrote in message
9h1dt4$shp$[EMAIL PROTECTED]">news:9h1dt4$shp$[EMAIL PROTECTED]...
> Salvador Ascencio wrote:
>
> > Please help me i'm desperated, i have to build a page using php and
mysql,
> > no problem i downloaded an excellent article written by kevin yank, well
> > the problem is that i have windows me and i got the installer of php, i
> > already installed it but it just does not work i'm thinking right now
that
> > perhaps i have to reset the pc, hope it works, anyway if you have some
> > clue or tip i'll appreciate if you share it with me. Thank
>
> Not being an answer but rather another question.
>
> Where is that article to be found?
> Coming to think of it - any good article on setting up apache/php/mysql on
> Win2000?
>
> M.
I get an error when I try to use the ttf image functions saying that php
cannot open/find the font file ("arial.ttf"). I have tried putting the font
file in the same directory (and calling "./arial.ttf"), using an absolute
path ("c:\winnt\fonts\arial.ttf"), and everything else I can think of, but I
still get the same error. Any suggestions?
Thanks,
Kiera
I uncommented the php_gd.dll line in the php.ini file and set the
extension_dir correctly, but when I look at the phpinfo(), gd does not show
up.
Any suggestions as to how to enable gd are very appreciated.
Kiera
You probably did'nt set the extension directory correctly in the php.ini
file...
Check it and let us know.
Alain
On Thu, Jul 12, 2001 at 08:26:36PM -0500, Kiera wrote:
> I uncommented the php_gd.dll line in the php.ini file and set the
> extension_dir correctly, but when I look at the phpinfo(), gd does not show
> up.
> Any suggestions as to how to enable gd are very appreciated.
>
> Kiera
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
I finally figured this one out. The php_gd.dll distributed with v 4.0.6 is
defective as far as TTF stuff goes, but the one distributed with 4.0.5 works
perfectly. I will upload this file for people who need it..
http://www.sunflower.com/~kiera/php_gd.dll
Yay, I'm so happy. :)
"Steen Rabol" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi
>
> For some reasson, the php_gd.dll in PHP v 4.0.6, is with freetype, which
> have the effect that imagettfbbox() don't work on NT/Apache, where can I
> find a php_gd.dll with TTF support ?
>
> Even better, how can I find information on compiling PHP on win32 ?
>
> Thanks in advance
>
> Steen
>
>
>
If you have been having a problem with TTF and have PHP v 4.0.6, I have
discovered that the php_gd.dll file distributed with 4.0.6 is to blame, as
when I replaced the file with the one from v 4.0.5, the functions work
correctly.
I uploaded the .dll here:
http://www.sunflower.com/~kiera/php_gd.dll
Good luck,
Kiera
is there any site from where i can download dll
separately...
which are available from php.net in big zip form
Let me see... if you unzip that file, don't you get the dll extensions
separately???
Alain
On Thu, Jul 12, 2001 at 05:12:02PM +0530, as wrote:
> is there any site from where i can download dll
> separately...
> which are available from php.net in big zip form
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello. I have done a web using PHP and now I want to store it on a CD with
all the funcionality (read from a file and use a data base odbc or mysql).
How can I do this ? Can Apache and PHP work on a CD without he tipical
instalation for Windows ?
Yes, you can make an exec file, you won't need Apache. If that what you
want?
Alain
On Fri, Jul 13, 2001 at 08:33:25AM +0200, Rafa Borges wrote:
> Hello. I have done a web using PHP and now I want to store it on a CD with
> all the funcionality (read from a file and use a data base odbc or mysql).
> How can I do this ? Can Apache and PHP work on a CD without he tipical
> instalation for Windows ?
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi everybody !!
My cfg: w2k, Apache 1.3.x, IB6., php4.07
When I run phpinfo() I can see that interbase dll is loaded but when I try
to do ibase_connect() with parameters
host = my IP:path to gdb
user: SYSDBA
password: masterkey
I get this error : "php.exe has generated errors and will be closed by
Windows. You will need to restart the program"
and here what I get in error log "[Fri Jul 13 09:02:47 2001] [error] [client
IP] Premature end of script headers: c:/php/php.exe
BTW I'm log on as a administrator !!
Thank you !!!
Ing. Daniel Šichta
SWH s.r.o.
Bytčická 2
010 01 Žilina
tel.: +421 41 505 5855
fax: +421 41 500 1376
mailto:[EMAIL PROTECTED]
http://www.swh.sk
Hi I have an include file which submits generic forms
The first line of the include is
$url=$sess->url(sprintf("$PHP_SELF"));
so the page reloads before the submit process takes place.
I want to keep a variable value in this reloaded page but it is always being
lost. I don't want to modify the $url as this would effect other forms being
submitted using the same include.
I have tried using global variables but can't seem to get it working
properly
Any ideas?