[PHP] PHP and XML parser (expat)

2002-12-29 Thread Lasse Tarp
Hello PHP. I'm running Linux Mandrake 9.0 with Apache 1.3.26 and PHP 4.2.3 and I'm trying to get the XML parser "expat" to work. I get this error: Call to undefined function: xml_parser_create() I have installed expat from the Mandrake Control center, but I dont think PHP found that out :-) I che

Re: [PHP] Clear file or write to file erasing all old content

2002-12-29 Thread Noodle Snacks
Thanks, Its just one of those things I miss sometimes... "Jason Perkins" <[EMAIL PROTECTED]> wrote in message news:r01050400-1023-A17E17A81BC511D7B4D4000393D5F61C@[192.168.1.3]... > on 12/30/02 at 6:02 PM, Noodle Snacks <[EMAIL PROTECTED]> wrote: > > > > I can't seem to figure out how to write to

Re: [PHP] Clear file or write to file erasing all old content

2002-12-29 Thread jason perkins
on 12/30/02 at 6:02 PM, Noodle Snacks <[EMAIL PROTECTED]> wrote: > I can't seem to figure out how to write to a file deleting the old content. > Sorry I can't find which function/functions to RTFM It's specified with the mode parameter in the fopen function:

[PHP] Clear file or write to file erasing all old content

2002-12-29 Thread Noodle Snacks
I can't seem to figure out how to write to a file deleting the old content. Sorry I can't find which function/functions to RTFM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Problem with REQUIRE in PHP 4.3.0

2002-12-29 Thread Bc. Radek Krejca
Hello, no, I didn't try it. But I compile all versions before and no problem. And I have computer with very similar configuration - work. On machine with OpenBSD 3.0 PHP 4.3.0 works, on machines with BSD 3.1 not but I don't know why. What I may check? g> You could try adding the path of t

Re: [PHP] PHP 4.3 unable to load php_domxml.dll in WinXP Apache 2.0.43

2002-12-29 Thread Davy Obdam
Hi Rui, I have Windows XP, Apache 2.0.43 and PHP 4.3.0 also. My php_domxml.dll extension works just fine. Did u copy all files from c:\php\dlls to your c:\WINDOWS\system32 directory? Also is your extensions path is set to c:\php\extensions in your php.ini file? I hope that works. Best regards,

Re: [PHP] imap_set_quota function

2002-12-29 Thread Michael Sims
On Sun, 29 Dec 2002 18:26:01 -0800 (PST), you wrote: >"This function requires the imap_stream to have been opened as the mail >administrator account. It will not work if opened as any other user. [...] >my question is, where do i set this admin called 'mailadmin' with password >'password'. do i se

RE: [PHP] Dropping Tables

2002-12-29 Thread Steve Buehler
Thank You so much John and Michael. SHOW TABLES LIKE 'a%' worked like a charm and was exactly what I was looking for. I guess my searches were using the wrong keywords. Kind of figures. Some of my searches were turning up 1000's of results. How do you know whether it's an "active" a* table

php-general Digest 30 Dec 2002 03:21:26 -0000 Issue 1792

2002-12-29 Thread php-general-digest-help
php-general Digest 30 Dec 2002 03:21:26 - Issue 1792 Topics (messages 129580 through 129622): Re: Warning: 1 is not a valid File-Handle resource - HELP! 129580 by: Rick Emery 129605 by: gamin Re: Form duplicate post problem 129581 by: Pag 129585 by: John W. H

RE: [PHP] Dropping Tables

2002-12-29 Thread John W. Holmes
> Basically just do a a php script the sends the sql "show tables"; > > Then do a strchr() to see if "a" is the first letter in the resuts and if > so do a delete table. > > Just yo play safe do a dump of your db first. Or even better, use SHOW TABLES LIKE 'a%' to just get the a* tables and dr

[PHP] imap_set_quota function

2002-12-29 Thread Roger Thomas
an excerpt from php man pages says that: "This function requires the imap_stream to have been opened as the mail administrator account. It will not work if opened as any other user. ... ... $mbox = imap_open ("{your.imap.host:143}", "mailadmin", "password"); " my question is, where do i set this

Re: [PHP] Dropping Tables

2002-12-29 Thread Michael J. Pawlowsky
Basically just do a a php script the sends the sql "show tables"; Then do a strchr() to see if "a" is the first letter in the resuts and if so do a delete table. Just yo play safe do a dump of your db first. Cheers, Mike *** REPLY SEPARATOR *** On 29/12/2002 at 7:57

[PHP] Dropping Tables

2002-12-29 Thread Steve Buehler
I have researched this and can't find an answer. Maybe I am just looking in the wrong places or not putting the correct keywords into the search engines. So any help would be greatly appreciated. I am using MySQL with PHP. I have some PHP scripts that create tables in a database that are mea

Re: [PHP] Rookie mail() q's .. can't find answer after RTFM...

2002-12-29 Thread Michael J. Pawlowsky
You will need to edit it for your server, remove some stuff etc... But this should get you going... RC Online Canada - Feedback Form Contact RC Online Canada Create("rconline_ca"); // Lets get some info on who we have $sql->QueryRow("SELECT contact_fname, contac

Re: [PHP] Rookie mail() q's .. can't find answer after RTFM...

2002-12-29 Thread Sean Burlington
-<[ Rene Brehmer ]>- wrote: Q 1: Well, building the form and making the page preview the message is the easy part. But how do I make the page retain the message so that I can 1. actually send the thing after the second submit, and 2. make it fill out the form when user wish to alter message (or

[PHP] Rookie mail() q's .. can't find answer after RTFM...

2002-12-29 Thread -<[ Rene Brehmer ]>-
Hi y'all I'm probably trying to do something ridicolously trivial, but here goes: I'm building a form for sending mail of my website. The idea is simply that people plop in their address, the message, and pick a subject line, and then click send. It will then show how the message will look, and

Re: [PHP] using mail() with .info emails?

2002-12-29 Thread Johannes Schlueter
On Sunday 29 December 2002 23:45, Joe Popovich wrote: > Im trying to send email using mail() to a .info email address and get an > error message. I assume the function parses the email address and doesnt > accept anything that isnt the customary .net, .com, etc. addresses. How can > I get around th

Re: [PHP] Load Data Infile

2002-12-29 Thread Anthony Ritter
"Marco Tabini" <[EMAIL PROTECTED]> wrote in message: > I'm not sure how MySQL works under Windows, but you should either use > double backslashes (\\) instead of single backslashes or use forward > slashes (/) instead. MySQL is trying to escape your string. > > Cheers, > Marco

[PHP] using mail() with .info emails?

2002-12-29 Thread Joe Popovich
Im trying to send email using mail() to a .info email address and get an error message. I assume the function parses the email address and doesnt accept anything that isnt the customary .net, .com, etc. addresses. How can I get around this? Thanks joe Popovich

Re: [PHP] Load Data Infile

2002-12-29 Thread Marco Tabini
I'm not sure how MySQL works under Windows, but you should either use double backslashes (\\) instead of single backslashes or use forward slashes (/) instead. MySQL is trying to escape your string. Cheers, Marco -- php|architect - The Magazine for PHP Professionals The monthly mag

[PHP] Load Data Infile

2002-12-29 Thread Anthony Ritter
Off topic but I hope somebody can help. Using MS Win98 / mySQL. I'm trying to use LOAD DATA INFILE and coming up empty. My text file is named: test.txt .. and is stored in C:\TextFiles on the command line I type: .. mysql> LOAD

Re: [PHP] Embedding image a PHP file

2002-12-29 Thread justin gruenberg
yy.php should contain header("Content-type: image/jpeg"); /* or gif or whatever... you can also take a look at getimagesize() to get the type of the image automatically */ readfile(THE FILE); ?> it's extremely important that there is no whitespace before the tag. empty wrote: Hi Anybody kn

[PHP] Re: PHP 4.3 unable to load php_domxml.dll in WinXP Apache 2.0.43

2002-12-29 Thread Dirk Schiefke
Same applies here using XP pro SP1, apache 1.3.27 no dll will load even if the extensions path is set to the correct dir in this case J:\php-4.3.0\extensions - where they reside dirk On Sun, 29 Dec 2002 14:38:51 -, [EMAIL PROTECTED] (Rui Costa) wrote: > hi, > > Windows XP, Apache 2.0.43(W

[PHP] Embedding image a PHP file

2002-12-29 Thread empty
Hi Anybody knows how to embed a image file to a php file, not as html; for example; embedding a image file in yy.php file. Thanks everybody -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php.ini ignored! Re: [PHP] PHP 4.3.0 released

2002-12-29 Thread Michael Mauch
In php.dev Omer K <[EMAIL PROTECTED]> wrote: > redhat, apache2.0.43 (as dso). compiles and runs without a problem > > php4.3.0release fails to utilize php.ini settings. ignores changes to the > ini file. > > ./configure --with-config-file-path=/usr/local/apache2/conf/php.ini --with-a > pxs2=/usr

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Pag
Got it to work. I removed everything except the PHP script. Works like a charm, no problem on the browser back button. Great help from you guys. Thanks a lot! Pag -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Warning: 1 is not a valid File-Handle resource - HELP!

2002-12-29 Thread gamin
"Phil Powell" <[EMAIL PROTECTED]> wrote in message 021801c2af19$e05909d0$2aaf6244@scandinawa1bo6">news:021801c2af19$e05909d0$2aaf6244@scandinawa1bo6... Ok, I am a bad coder. :( I can't figure this out at all: $fileID = fopen("nicknames.txt", 'r'); $stuff = fread($fileID, filesize("nicknam

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Jason Sheets
You can also enable output buffering on your middle page, this will allow you to output data and set cookies, send headers, etc at any point in your script. You can enable output buffering globally with php.ini, with an .htaccess for specific directories or use the output buffering functions to en

[PHP] Re: Problem with REQUIRE in PHP 4.3.0

2002-12-29 Thread gamin
"Bi®‰øáÎ ë‰ërÏ èÊ" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I try to compile PHP 4.3.0 on OpenBSD 3.1. Compilation is OK, PHP > runs, but not work REQUIRE and INCLUDE > > Fatal error: main() [function.main]: Failed opening required './lib

RE: [PHP] Form duplicate post problem

2002-12-29 Thread John W. Holmes
> >Yeah, you should be using a header() redirect, not a javascript or META > >REFRESH redirect... > > Well, i tried, but i get an error saying that all the headers > were > already sent to the browser. :-P > I used: > > header('Location: http://www.blahblah.com etc'); >

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Michael J. Pawlowsky
2 ways around that.. make sure you send that before any other ouput... Even empty lines etc In other words nothing before Not ever a carriage return. or start of with ob_start() and end with ob_end_flush(); *** REPLY SEPARATOR *** On 29/12/2002 at 7:12 PM Pag wrote: >

Re: [PHP] IIS Quit Working

2002-12-29 Thread Michael J. Pawlowsky
Wherever you want them... C:\windows\temp if you have that. win??? does not have a /tmp directory link *nix boxes do, so just give it a valid directory to write to where you don;t mind having a bunch of session files. > >session.save_path = /tmp > >What should it be for Windows XP Pro? > > >--

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Pag
Yeah, you should be using a header() redirect, not a javascript or META REFRESH redirect... Well, i tried, but i get an error saying that all the headers were already sent to the browser. :-P I used: header('Location: http://www.blahblah.com etc'); I placed

Re: [PHP] IIS Quit Working

2002-12-29 Thread Stephen
I found on the official site that C:\WINDOWS\Temp works well too... - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Stephen'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, December 29, 2002 2:05 PM Subject: RE: [PHP] IIS Quit Working : > Ok, I reinstalled

RE: [PHP] IIS Quit Working

2002-12-29 Thread John W. Holmes
> Ok, I reinstalled IIS 5 and PHP 4.3 and it's working but the sessions > aren't. I get this error: > > > Warning: session_start() [function.session-start]: > open(/tmp\sess_b400575a818f9bb0361b06dad912410c, O_RDWR) failed: No such > file or directory (2) in c:\inetpub\wwwroot\pcu\index.php on l

Re: [PHP] IIS Quit Working

2002-12-29 Thread Stephen
Ok, I reinstalled IIS 5 and PHP 4.3 and it's working but the sessions aren't. I get this error: Warning: session_start() [function.session-start]: open(/tmp\sess_b400575a818f9bb0361b06dad912410c, O_RDWR) failed: No such file or directory (2) in c:\inetpub\wwwroot\pcu\index.php on line 1 I haven

RE: [PHP] Formatting text

2002-12-29 Thread Maciek Ruckgaber Bielecki
have alook at this one, i have one prob, dont know how your 'Results' field does look like so i used ' '(or space) separator hope it helps :-) \n"; print " \n"; } $content = ""; while($row=mysql_fetch_array($result)) { $content .= "Identity : ".$row['GGID']."\n" .= "

RE: [PHP] Form duplicate post problem

2002-12-29 Thread John W. Holmes
> > One thing that popup would prevent would be the browser > history, i > > mean, if that popup method worked, if the user clicked on the "back" > > browser button, it would take him to where he came from. If i use that > > redirect method, the back button takes him to the redirect. Still

RE: [PHP] Formatting text

2002-12-29 Thread John W. Holmes
> Please note that the following is my code : > Quote : > > if ($result=mysql_query($sql)) { >$numofrows=mysql_num_rows($result); > Print "Greengrass database has found the following result that > matches > your search"; > print " \n"; > print " \n"; > while($

Re: [PHP] Form duplicate post problem

2002-12-29 Thread Jason Wong
On Monday 30 December 2002 01:40, Pag wrote: > One thing that popup would prevent would be the browser history, i > mean, if that popup method worked, if the user clicked on the "back" > browser button, it would take him to where he came from. If i use that > redirect method, the back but

[PHP] lstdc++ problem

2002-12-29 Thread Dmitry Demczuk
Hi there, I'm trying to get PHP 4.3.0 compiled on a SuSE Linux 8.0 box. ./configure goes well but when I try the make command, I get the following error message: php /usr/i486-suse-linux/bin/ld: cannot find -lstdc++, and the installation fails. The lstdc++ is in the library libstdc, which is un

Re: [PHP] Form duplicate post problem

2002-12-29 Thread Pag
Maybe I'm missing something here but I'm not sure why you consider it more user friendly to pop-up a window (and have it disappear automatically). If I was a user I would be thinking "what the hell was that?". And if their connection was fast enough that they don't even notice the window pop-up

Re: [PHP] Form duplicate post problem

2002-12-29 Thread Jason Wong
On Sunday 29 December 2002 23:24, Pag wrote: > This post is merely for reference and, hopefully, to help out some > other person that runs into the same problem. > > I solved my duplicate form post problem using that middle-man > technique you guys mentioned, but i did it in a li

Re: [PHP] Formatting text

2002-12-29 Thread Michael J. Pawlowsky
> if ($result=mysql_query($sql)) { > $numofrows=mysql_num_rows($result); > Print "Greengrass database has found the following result that matches >your search"; > print " \n"; > print " \n"; Add this line here ---> print "\n"; No longer need the BRs below

Re: [PHP] Formatting text

2002-12-29 Thread Denis L. Menezes
Thanks John and Michael. Please note that the following is my code : Quote : if ($result=mysql_query($sql)) { $numofrows=mysql_num_rows($result); Print "Greengrass database has found the following result that matches your search"; print " \n"; print " \n"; whi

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Pag
Also for reference, but I would recommend to everyone that they not rely on Javascript and simply do all of this in the main window. With Pop-Up Blockers and different browser versions, Javascript should be avoided if possible unless you really know what your audience will be using (or don't car

RE: [PHP] Form duplicate post problem

2002-12-29 Thread John W. Holmes
> >You can still use one page and use a "middle-man" technique. The part > >that processes the form input would redirect back to itself after the > >data is inserted into the database, thus getting rid of the post data. > >So subsequent refreshes of the page will refresh without attempting to > >re

RE: [PHP] Formatting text

2002-12-29 Thread John W. Holmes
> I have to put results of various departments in our school website. All > results will go in the Mysql database. The problem is formatting the > output. I have output something like this where the numbers shown are > student marks : > > Quote > > Passed with Grade A : > Adm nos : 8177 9822 1

Re: [PHP] Formatting text

2002-12-29 Thread Michael J. Pawlowsky
Two ways to do this... One just use echo ""; for($i=0; $i < sql->rows; i++){ echo $values['grade']; echo $values['admno']; } echo "; or create a table for($i=0; $i < sql->rows; i++){ $value['grade']$value['grade2']$value['grade3']$value['grade4'] }

[PHP] Formatting text

2002-12-29 Thread Denis L. Menezes
Hello friends, I have to put results of various departments in our school website. All results will go in the Mysql database. The problem is formatting the output. I have output something like this where the numbers shown are student marks : Quote Passed with Grade A : Adm nos : 8177 9822 1

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Pag
You can still use one page and use a "middle-man" technique. The part that processes the form input would redirect back to itself after the data is inserted into the database, thus getting rid of the post data. So subsequent refreshes of the page will refresh without attempting to repost the dat

Re: [PHP] Warning: 1 is not a valid File-Handle resource - HELP!

2002-12-29 Thread Rick Emery
The last line cannot be producing the warning; it does not refer to a file. Please show us the EXACT error message. Are you certain the file was opened? Did you try to print $stuff after reading it? Did it have the info you thought it should? - Original Message - From: "Phil Powell" <[

php-general Digest 29 Dec 2002 14:53:59 -0000 Issue 1791

2002-12-29 Thread php-general-digest-help
php-general Digest 29 Dec 2002 14:53:59 - Issue 1791 Topics (messages 129556 through 129579): unpack() - how to handle bitfields?? 129556 by: Tim Molendijk Form duplicate post problem 129557 by: Pag 129558 by: Timothy Hitchens (HiTCHO) 129559 by: Pag

[PHP] PHP 4.3 unable to load php_domxml.dll in WinXP Apache 2.0.43

2002-12-29 Thread Rui Costa
hi, Windows XP, Apache 2.0.43(Win32) with PHP 4.3 can't load DLL 'php_domxml.dll'. it pops-up: Unknown(): unable to load dll'C:\php\extensions\php_domxml.dll' if I use the old 'php_domxml.dll' from PHP 4.2.4, it works fine. I'm using libxml2-2.4.30, expat 1.95.4. by the way, 'libxml2.dll' is not

[PHP] European "daylight saving" summer-time.

2002-12-29 Thread Martin Thoma
Hello! I just want to get the actual date and time which works fine with date(). The problem is that php doesn't give the european daylight-saving-time in summer, so the time shown is offset by 1 hour in summer. It seems that my internet service provider doesn't adjust the clock of the server to t

[PHP] Warning: 1 is not a valid File-Handle resource - HELP!

2002-12-29 Thread Phil Powell
Ok, I am a bad coder. :( I can't figure this out at all: $fileID = fopen("nicknames.txt", 'r'); $stuff = fread($fileID, filesize("nicknames.txt")); fclose($fileID); if (strlen($stuff) > 0) $priorNickNewLine = "\n"; $nicks = explode("\n", $stuff); The last line produces the Warnin

Re: [PHP] IIS Quit Working

2002-12-29 Thread Jason Wong
On Sunday 29 December 2002 09:14, Stephen wrote: > Since I like new things and all, I decided to download and install PHP 4.3. > Before, I had the latest (4.2.3) and IIS worked fine. But then, after > uninstalling PHP and installing the new one, it just quit working. I go to > http://localhost/ and