[PHP] Sablotron broken in 4.2.1 ?

2002-06-03 Thread William S.
Is Sablotron broken in 4.2.1 because none of the transformations have worked that I have tried. I am using: php 4.2.1 apache_1.3.24 expat-1.95.2 my files are: 'wget http://213.84.71.105/news.xml' 'wget http://213.84.71.105/news.xsl' 'wget http://213.84.71.105/news.php'

Re: [PHP] still running the old version after recompiling??

2002-06-03 Thread Evan Nemerson
In that case, you can look at your autoexec.bat. There is a variable (I think called path). Just make sure it's right. On Sunday 02 June 2002 21:31 pm, you wrote: I forgot to write I run on a win98, so no shell :) So what? Makis -Original Message- From: Evan Nemerson

Re: [PHP] Overriding Class functions and variables

2002-06-03 Thread Analysis Solutions
Jared: On Mon, Jun 03, 2002 at 04:33:45PM -0400, Jared Boelens wrote: In my case i am trying to override a variable. I have a property Username for both the parent and the child. I am wondering if there is a way to differenciate between parent-Username and child-Username. Are you talking

[PHP] Download Script - Newbie Alert

2002-06-03 Thread Philip Hess
Hello, I would like to allow visitors to my site to download documents created with MS office and .PDF files as well. In order to prevent linking from other sites I'd like to make or modify a script that hides the actual location of the files. A pointer in the right direction would be most

Re: [PHP] stupid error, please kick me (and send me a solution)

2002-06-03 Thread Sqlcoders.com Programming Dept
Hiya, You're using single quotes around all your strings, for variables to be replaced with their values, you must use double quotes. Try replacing every ' with . HTH, Dw Sqlcoders.com Dynamic data driven web solutions - Original Message - From: Jule Slootbeek [EMAIL PROTECTED] To:

[PHP] stupid error, please kick me (and send me a solution)

2002-06-03 Thread Jule Slootbeek
Hey guys, i'm getting this error with the following sql script using php: --error-- Warning: Supplied argument is not a valid MySQL-Link resource in /var/www/phpquiz/register_user.php on line 12 --error-- --script-- $link_glob = mysql_connect('$host_glob', '$un_glob', '$pw_glob'); $query =

[PHP] Cyber Cafe software

2002-06-03 Thread Steve Buehler
Does anybody know of any software all ready written or what would have to be done, to allow us to run a cyber cafe style setup. What we need the software to do is to allow someone to come in and plug in their computer to our network (actually a customers network). They want the following: 1.

[PHP] Re: stupid error, please kick me (and send me a solution)

2002-06-03 Thread Jason Soza
If this is truly the code you're using, you're missing the closing curly-brace after the else statement. I.e. this: } else { echo font size=+1Your Information has successfully been entered into the database!/fontbr; Should be this: } else { echo font size=+1Your Information has

Re: [PHP] Re: stupid error, please kick me (and send me a solution)

2002-06-03 Thread leco
Do not use double kotes here. $link_glob = \mysql_connect(\'$host_glob\', \'$un_glob\', \'$pw_glob\')\; mysql_connect is a function. Regards, Laercio Fortes Citando Jason Soza [EMAIL PROTECTED]: If this is truly the code you\'re using, you\'re missing the closing curly-brace after the

Fw: [PHP] keep alive refresh

2002-06-03 Thread Kevin Stone
It would help to know exactly what information you are gathering and for what reason are you storing it. -Kevin - Original Message - From: Mauro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 03, 2002 2:35 PM Subject: [PHP] keep alive refresh Hello, I looked for some old

RE: [PHP] Previous Next Navigation

2002-06-03 Thread David Freeman
The memory footprint of the 3k - 5k of records, even if the total memory needed for each record is 1k (which it is not), is 30k - 50k RAM, less than the size of most web pages. The LIMIT query, running on a slow server to simulate dial-up connections, takes anywhere from 1.3 to 2.2

Re: [PHP] Re: stupid error, please kick me (and send me a solution)

2002-06-03 Thread Jule Slootbeek
[EMAIL PROTECTED] wrote: Do not use double kotes here. $link_glob = \mysql_connect(\'$host_glob\', \'$un_glob\', \'$pw_glob\')\; mysql_connect is a function. Regards, Laercio Fortes Citando Jason Soza [EMAIL PROTECTED]: If this is truly the code you\'re using, you\'re

[PHP] Re: stupid error, please kick me (and send me a solution)

2002-06-03 Thread Jule Slootbeek
G r e g L a w r i e wrote: It would also appear you are missing a closing ) at the end of the '$query=...' line. You have two opening backets and only one closing. Greg -Original Message- From: Bruce Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 4 June 2002 7:50 To: [EMAIL

[PHP] RE: stupid error, please kick me (and send me a solution)

2002-06-03 Thread G r e g L a w r i e
It would also appear you are missing a closing ) at the end of the '$query=...' line. You have two opening backets and only one closing. Greg -Original Message- From: Bruce Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 4 June 2002 7:50 To: [EMAIL PROTECTED]; mysql; php-general

[PHP] Re: stupid error, please kick me (and send me a solution)

2002-06-03 Thread Jule Slootbeek
Jule Slootbeek wrote: G r e g L a w r i e wrote: It would also appear you are missing a closing ) at the end of the '$query=...' line. You have two opening backets and only one closing. Greg -Original Message- From: Bruce Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 4 June

Re: [PHP] Probs with MIME multipart/alternative generated with PEAR mime.php

2002-06-03 Thread Henry
mike, you could check out my example. it's a form in flash that sends multipart/alternative email. you should get a html formatted reply, plain text for those guys and a zip attachment with the source file. goto: http://www.bigjolt.com/mime/ i had a lot of trouble getting it to work. those

RE: [PHP] keep alive refresh

2002-06-03 Thread John Holmes
Raise the max execution time for your script. Either do it in PHP.ini or I think there is a function for it you can use in your script... ---John Holmes... -Original Message- From: Mauro [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 4:35 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Download Script - Newbie Alert

2002-06-03 Thread John Holmes
Store the files above your web root and use a PHP script to control access. Use header to set the appropriate header for the file, header(Content-Type: application/vnd.ms-excel; name='excel'); header(Content-Disposition: attachment; filename= . $filename . .xls); then use passthru() to send

[PHP] Re: stupid error, please kick me (and send me a solution)

2002-06-03 Thread Paul DuBois
At 18:09 -0400 6/3/02, Jule Slootbeek wrote: Hey guys, i'm getting this error with the following sql script using php: --error-- Warning: Supplied argument is not a valid MySQL-Link resource in /var/www/phpquiz/register_user.php on line 12 --error-- --script-- $link_glob =

Re: [PHP] Re: stupid error, please kick me (and send me a solution)

2002-06-03 Thread Philip Olson
Are you sure this is the correct file? This is full of syntax errors, you should be getting parse errors. A few tips: a) Don't post to multiple lists. This is a PHP issue, not MySQL. Hopefully this will end the mysql list thread. b) Don't use mysql_db_query() as it is

Re: [PHP] stupid error, please kick me (and send me a solution)

2002-06-03 Thread Lejanson C. Go
try this jule.. $link_glob = mysql_connect('$host_glob', '$un_glob', '$pw_glob'); $temp= PASSWORD($password); $query = INSERT INTO user values('0', '$fname', '$lname', '$email', '$username', '$temp');; i think this will work..=) i hope ive done something. - Original Message -

Re: [PHP] Download Script - Newbie Alert

2002-06-03 Thread Clay Loveless
Something else along these lines -- I really, really wish that more sites that use this method would test across multiple browsers and platforms. I agree with everything John is saying regarding testing access/permissions -- I've used this technique many times myself. However, if a user with

[PHP] HUGE ERROR (was: [PHP] stupid error, please kick me (and send mea solution))

2002-06-03 Thread Jule Slootbeek
ok, i think i fixed up everything everybody told me (although some answers did contradict) and here is the entire script... Jule --script (globals.inc.php)-- ?php $host_glob = localhost; $db_glob = phpquiz; $un_glob = phpquiz; $pw_glob = phpquiz;

[PHP] HUGE ERROR (was: [PHP] stupid error, please kick me (and sendme a solution))

2002-06-03 Thread Jule Slootbeek
ps: it was still not working.. -- Jule Slootbeek [EMAIL PROTECTED] http://blindtheory.cjb.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HUGE ERROR (was: [PHP] stupid error, please kick me (andsend me a solution))

2002-06-03 Thread Philip Olson
Please post: a) the error b) if the error is line #5, just post related lines line 4-6. I did see this: $result = mysql_query('$query', '$link_glob'); Which should be: $result = mysql_query($query, $link_glob); -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] HUGE ERROR (was: [PHP] stupid error, please kick me (andsend me a solution))

2002-06-03 Thread Jule Slootbeek
Philip Olson wrote: Please post: a) the error b) if the error is line #5, just post related lines line 4-6. I did see this: $result = mysql_query('$query', '$link_glob'); Which should be: $result = mysql_query($query, $link_glob); OK that did fix the problem...:)

Re: [PHP] Sablotron broken in 4.2.1 ?

2002-06-03 Thread Tom Rogers
hi I am using 4.2.1 and it works fine, I can't see your source code as web servers don't show it by design :) But from the error message it can't find your class file. I used the code below to test it. Tom $xsltproc = xslt_create(); $html = xslt_process($xsltproc, 'news.xml', 'news.xsl');

Re: [PHP] Previous Next Navigation

2002-06-03 Thread Justin French
Only querying the database once would result in you having to set a massive session, cookie, or something to hold the whole result in. Doesn't sound right to me... for starters, 3000 records / 30 per page = 100 pages... it seems unlikely that every user will make it through the 100 pages, so

RE: [PHP] Previous Next Navigation

2002-06-03 Thread Martin Towell
If you don't want to query the database again, you could always write the results to a file. There's a matter of cleaning up old cache files though, but that's not what was asked... ;D -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 11:40 AM

[PHP] MacOSX / php.ini newbie question

2002-06-03 Thread Verdon Vaillancourt
Hi Apologies in advance if this question is simple. I haven't been able to find an answer... Is there no php.ini file in a php 4.1.2 install on MacOSX 10.1.4 (client not server) ? My php info/test page says that the path to the configuration file (php.ini) file is '/usr/lib', but it is not there

Re: [PHP] MacOSX / php.ini newbie question

2002-06-03 Thread Clay Loveless
Verdon, I'm a fellow PHP'er on Mac OS X (Server) 10.1.4. : ) You need to download the full distribution from php.net/downloads ... In there you will find a php.ini-dist file and php.ini-recommended file. Pick one that you like, edit as needed with BBEdit Lite (NOT TextEdit!), rename to php.ini

RE: [PHP] MacOSX / php.ini newbie question

2002-06-03 Thread Peter
have you tried doing a general search for that file? ie search all of ur hdd ... -Original Message- From: Verdon Vaillancourt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 4 June 2002 11:15 AM To: [EMAIL PROTECTED] Subject: [PHP] MacOSX / php.ini newbie question Hi Apologies in advance if

Re: [PHP] mysql_select_db problem

2002-06-03 Thread Peter Goggin
I use the following code for connection and selecting databases: $link = mysql_pconnect(localhost,$_SESSION['dbauser'],$_SESSION['dbapassword']) or die(Could not connect); print Connected successfullyP; mysql_select_db(stamps) or die(Could not select database); This works.

Re: [PHP] mysql_select_db problem

2002-06-03 Thread Philip Olson
The following code always returns the Couldn't select database error. ? $db_name=mydb; $table_name=my_table; $connection = mysql_connect(localhost, user, password) or die (Couldn't connect.); $db = mysql_select_db($db_name) or die (Couldn't select database); ? Add some useful

Re: [PHP] mysql_select_db problem

2002-06-03 Thread Philip Olson
oops, i forgot a for mysql_connect() but oh well, you get the point :) Regards, Philip Olson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP-Windows2000 Server-Apache/Tomcat

2002-06-03 Thread Analysis Solutions
On Mon, Jun 03, 2002 at 02:04:47PM -0700, Rick Kalifa wrote: I'm having trouble getting the PHP module installed on the Apache/Tomcat installation. I've set it up as a service. The documentation mentions editing the httpd.conf file but I cannot find that file with this installation. The only

[PHP] ftp functions

2002-06-03 Thread Andrew Hood
Hi, I was just wondering given that only the standard FTP functions are supported by PHP, is there anyway to actually resume a download? The only thing that seems even capable of issuing any versatile commands is ftp_site, and that only issues site commands. I haven't had much luck with

[PHP] Cronjob security

2002-06-03 Thread Edgard Berendsen
I'm using the following cronjob in my remote server: MAILTO=[EMAIL PROTECTED] 0 0 * * * wget -Ofile.log -q -T10 http://www.domain.com/script.php /dev/null the script.php is a normal php script. This is the only way I can run a cronjob successfully but I've read it is un-secure. Is this true?

Re: [PHP] Cronjob security

2002-06-03 Thread Analysis Solutions
Sire: On Mon, Jun 03, 2002 at 11:47:50PM -0400, Edgard Berendsen wrote: I'm using the following cronjob in my remote server: MAILTO=[EMAIL PROTECTED] 0 0 * * * wget -Ofile.log -q -T10 http://www.domain.com/script.php /dev/null This is the only way I can run a cronjob successfully... If

Re: [PHP] stupid error, please kick me (and send me a solution)

2002-06-03 Thread Brad McCrorey
Please note that this only neccesarily applies to MySQL. I've run into a lot of problems by assuming double-quote syntax with postgres and mssql. A better solution is to stop writing your own queries and use an abstraction library. Cheers, Brad Sqlcoders.com Programming Dept wrote: Hiya,

[PHP] email attachments and PHP

2002-06-03 Thread Brad Wright
Hi all, I was wondering if there is a way to attach files to emails sent via a PHP script. I just checked the 'mail functions' chapter of the php manual, but it doesn't seem to mention attachments. The attached files will come from the same server that php is running on BTW. Thanks in advance.

[PHP] PHP can access the access database ??

2002-06-03 Thread RoyD
php can access the microsoft access database ? what command the connection ? Roy Daniel , ST IT Developer System - PT BERCA COMPUTEL My E-mail : [EMAIL PROTECTED] and : [EMAIL PROTECTED] / [EMAIL PROTECTED] My ICQNumber : # 103507581 My Phone Cell : 0816-1192832 My Web site:

[PHP] Re: email attachments and PHP

2002-06-03 Thread Jason Morehouse
Check out: http://www.phpguru.org/mime.mail.html Works well... some good examples included. -J On Tue, 04 Jun 2002 17:09:12 +1200, Brad Wright wrote: Hi all, I was wondering if there is a way to attach files to emails sent via a PHP script. I just checked the 'mail functions' chapter of

Re: [PHP] PHP can access the access database ??

2002-06-03 Thread Analysis Solutions
On Tue, Jun 04, 2002 at 12:00:49PM +0700, [EMAIL PROTECTED] wrote: php can access the microsoft access database ? what command the connection Look at the ODBC functions in the manual. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution

RE: [PHP] Re: email attachments and PHP

2002-06-03 Thread Martin Towell
Or, if you're into doing it yourself, have a look at RFC2045 and RFC2046 http://rfc.sunsite.dk/rfc/rfc2045.html http://rfc.sunsite.dk/rfc/rfc2046.html -Original Message- From: Jason Morehouse [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 3:16 PM To: [EMAIL PROTECTED] Subject:

Re: [PHP] Re: email attachments and PHP

2002-06-03 Thread Clay Loveless
Another really good one: http://phpmailer.sourceforge.net/ -Clay From: Jason Morehouse [EMAIL PROTECTED] Organization: Netconcepts LTD Date: Tue, 04 Jun 2002 17:15:58 +1200 To: [EMAIL PROTECTED] Subject: [PHP] Re: email attachments and PHP Check out:

[PHP] How can I call C or FORTRAN functions from PHP?

2002-06-03 Thread Cui Chenzhou
I have many useful functions written in C language. But now, I want to do some work on through Web browser. Can I call these C functions from PHP? -- Í·ÉÏÓÐÐÇ, ½ÅÏÂÓз ¡ï¡î¡î¡î¡î¡ï¡î¡î¡î¡î¡ï -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] How can I call C or FORTRAN functions from PHP?

2002-06-03 Thread Martin Towell
yep - I can see two ways of doing it - either using exec()/system() or compile the c/fortran code into a library file (.dll or .so depending on server type) and, in php, use dl() -Original Message- From: Cui Chenzhou [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 04, 2002 3:56 PM To:

<    1   2