[PHP] Strange error on mysql_fetch_array

2001-06-27 Thread tjacobs-php
The following code fragment works properly, in that I get the output I'm expecting. However, if I don't disable error messages with @, I get an error message from PHP saying: Warning: Supplied argument is not a valid MySQL result resource in /var/www/htdocs/cgcm/test2.php on line 9. How can the

Re: [PHP] Linux Guru's

2001-06-27 Thread Henrik Hansen
ReDucTor [EMAIL PROTECTED] wrote: 1. ( ) text/plain (*) text/html Hey Dudes, little off the PHP Subject, but Linux I have RedHat 7.1 CD Here, and i want to dual boot it with my WinXP i don't want to repartition my HDD, i would prefer to have a File on my hdd that

Re: [PHP] irc bot?

2001-06-27 Thread Henrik Hansen
Michael Roark [EMAIL PROTECTED] wrote: Does anyone know of the existance of an irc bot written in php or otherwise, which will talk to a mysql database? have seen something called php-egg, which you can look at here: http://kill-9.dk/php_egg/ -- Henrik Hansen -- PHP General Mailing

Re: [PHP] FW: Setup Question

2001-06-27 Thread Rasmus Lerdorf
bash-2.04# gdb /usr/local/apache/bin/httpd (gdb) run -X Starting program: /usr/local/apache/bin/httpd -X warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. Program received signal

RE: [PHP] search for a better php source code viewer

2001-06-27 Thread Jason Lotito
You mean something like this: http://www.newbienetwork.net/phpcodems.php?as=viewcodeid=14 Jason Lotito www.NewbieNetwork.net PHP Newsletter: http://www.newbienetwork.net/ciao.php PHP, MySQL, PostgreSQL Tutorials, Code Snippets, and so much more -Original Message- From: Tyler Longren

[PHP] --with-zlib/--with-zlib-dir and --enable-xslt

2001-06-27 Thread Rouvas Stathis
Hi, Been trying to compile PHP.4.0.6 with --with-zlib directive and failing. Using --with-zlib-dir, however succeeds. Does anyone knows the difference between the two ? Also, in a related problem, if I try with --enable-xslt I get the following results: checking for XML support... yes

[PHP] POST method invocation of C CGI

2001-06-27 Thread Meles Meles
I have a compiled C CGI that accepts POST method calls, reading information off of stdin, and returning its results to stdout. I need to be able to invoke this from a PHP module, with the PHP module loading the POST data for the CGI to fetch, and be able to collect the output that the CGI

Re: [PHP] search for a better php source code viewer

2001-06-27 Thread Patrick Calkins
You should try EditPlus !!! I love it! http://www.editplus.com/ It runs on Win95/98/2000/NT and will create a Unix/Mac/PC file. Has custom syntax highlighting, spell checker, integrated web browser, etc, etc. It handles PHP, ASP, Perl, C++, and more... scott [gts] [EMAIL PROTECTED] wrote in

Re: [PHP] PHP Uptime error

2001-06-27 Thread billt
On Tue, Jun 26, 2001 at 05:40:07PM +1000, Peter Phillips wrote: Thanks for your help, this is what I get when I try a uptime while logged in as nobody. host:/# su nobody host:/$ uptime Error: /proc must be mounted To

Re: [PHP] Problem with returning value from function

2001-06-27 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Richard Kurth) wrote: I am having problem getting the info back after I send it to a function. snip if ($line1){ //This is what is in Line1 Dear ##fullname## $line=$line1; proce($line); $line1=$line; } Function proce($line){

Re: [PHP] problems with round ..

2001-06-27 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Chad Day) wrote: $BLAH = round($BLAH, 2); Spits out a wrong parameter error. I've tried quotes around the variable, the parameter, and any combinations, but it still pukes on me. Why can't I specify a precision? According to the manual,

Re: [PHP] strange behavior on manipulating the array of class object

2001-06-27 Thread Moriyoshi Koizumi
Hello, Thanks for your great advice, and also the tutorial http://www.aditus.nu/jpgraph/jpg_phpoo.php helps so much. I guess I was confusing a copy of object and a reference of object. btw that's too confusing! Gyozo Papp [EMAIL PROTECTED] wrote: Hello, I've not tried your code yet, but

[PHP] HOW TO: Reload a frame with a different URL?

2001-06-27 Thread CertifiChecks
Hello everyone, Sorry for the simple question but I'm trying to learn a little more about PHP and just need a little help. I'm currently running PHP3 if that helps. I just need to reload the main frame on my site with a new page once the user has logged in. All the navigation and login are

[PHP] $REMOTE_ADDR error

2001-06-27 Thread Christian Dechery
why do $REMOTE_ADDR always returns 127.0.0.1 no matter the user's IP who is seeing the page? this doesn't look 'remote' to me... . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List

RE: [PHP] search for a better php source code viewer

2001-06-27 Thread Peter Houchin - SunRentals Australia
try http://astro.phpwebhosting.com/~ttm/ or home site for windows .. however I do think, though am not sure, visual Php is available on linex windows (I'm using windows) -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 3:42 AM To:

[PHP] Session over SSL

2001-06-27 Thread Bass¨Ð¦õªv
Will Session have problem when people browse from a http page to a https page and go out again? -- PHP General 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

RE: [PHP] RE: Events Listings

2001-06-27 Thread Jason Lustig
If you don't have access to a database, why not put all the data in arrays and then use the array sorting functions? --Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

RE: [PHP] RE: Events Listings

2001-06-27 Thread Peter Houchin - SunRentals Australia
Rick, just an idea wouldn't the use of a database make this alot easier for you ?? then you can just sort your db results by date -Original Message- From: Rick Proctor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 4:04 AM To: [EMAIL PROTECTED] Subject: [PHP] RE:

Re: [PHP] HOW TO: Reload a frame with a different URL? [LONG]

2001-06-27 Thread Richard Lynch
Sorry for the simple question but I'm trying to learn a little more about PHP and just need a little help. I'm currently running PHP3 if that helps. I just need to reload the main frame on my site with a new page once the user has logged in. All the navigation and login are handled from a

Re: [PHP] Problem with returning value from function

2001-06-27 Thread CC Zona
You're returning a value to nowhere. Changeproce($line) to $returnedvalue=proce($line). Or if you want to keep your code as is just define proc() as: function proce($line) { } Or use global $line; or add $line to the $GLOBALS array, so that the function's local changes to $line

Re: [PHP] Strange error on mysql_fetch_array

2001-06-27 Thread CC Zona
In article 046401c0fee3$a6c789e0$6401a8c0@Lynchux100, [EMAIL PROTECTED] (Richard Lynch) wrote: $result_id = @mysql_query(DESC $table_name $field_name); I don't think DESC $table_name $field_name is valid SQL, is it?... DESC is DESCENDING in an ORDER BY clause... Perhaps if you

[PHP] mssql and uniqueidentifier's

2001-06-27 Thread Thomas Häger
Hi NG, my problem is following: I made a query on a table on a MS SQL Server 2000. The table have a key-column from type uniqueidentifier. Ever i made a query on this column, the result is not right. It comes back some crypt. For example: Value Database: 496467D1-7646-4094-8016-087083EA9432

Re: [PHP] PHP crashing IIS 5 on Wnidows 2K

2001-06-27 Thread Phil Driscoll
On Tuesday 26 June 2001 21:35, Jason Lustig wrote: I have PHP 4.04pl1 set up on a IIS 5 server on Windows 2k. However, it keeps on crashing the server -- not all the time, but sometimes it does, sometimes it doesn't. And I have no idea whatsoever what is causing it. I *think* that it has to

Re: [PHP] search for a better php source code viewer

2001-06-27 Thread José León Serna
Hello: try http://astro.phpwebhosting.com/~ttm/ You can access using this address, or http://www.visualphpstudio.com or http://www.qadram.com however I do think, though am not sure, visual Php is available on linex windows (I'm using windows) QaDRAM it's not still available on Linux,

RE: [PHP] Linux Guru's

2001-06-27 Thread Fabian Ferreyra
Hey Dudes, little off the PHP Subject, but Linux I have RedHat 7.1 CD Here, and i want to dual boot it with my WinXP i don't want to repartition my HDD, i would prefer to have a File on my hdd that has Linux on it, my WinXP install is on a FAT32 Partition.. Now how can i do this? :) The

SV: [PHP] [PHP-WIN] Problems running php from samba network shares...

2001-06-27 Thread Mattias Segerdahl
Ofcourse not! I'm accessing the files from the webbserver, not a network share. Which if I was would display the source. Mattias -Ursprungligt meddelande- Från: Jason Murray [mailto:[EMAIL PROTECTED]] Skickat: den 26 juni 2001 08:35 Till: 'Mattias Segerdahl'; php general Ämne: RE:

Re: [PHP] Enter to BR

2001-06-27 Thread Richard Lynch
Some comments on these answers :-) nl2br is the correct answer. preg is like shooting a fly with a cannon, and str_replace would be right, if nl2br wasn't right, which it is. And every TEXTAREA tag on the planet should have WRAP=VIRTUAL in it. In fact, if *I* were in charge of HTML, there

Re: [PHP] Strange error on mysql_fetch_array

2001-06-27 Thread elias
dunno but my it's just failing at the mysql_connect() shouldn't you specify the password too? [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The following code fragment works properly, in that I get the output I'm expecting. However, if I don't disable

Re: [PHP] passing variables from - to frames

2001-06-27 Thread Richard Lynch
framea and frameb don't know about each other, but their document and their window should know both of them. So, you can use document.framea... and document.frameb... to access each other's variables. Also, if these variables are coming from PHP, and if you are using FRAMEs mostly for looks,

Re: [PHP] Operation must use an updateable query?? help.!

2001-06-27 Thread Richard Lynch
Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query., SQL state S1000 in SQLExecDirect Disclaimer: I only vaguely recall this stuff from suppressed memories of fighting with Microsoft software... That might be a Microsoft-ism for You don't

Re: [PHP] search for a better php source code viewer

2001-06-27 Thread ReDucTor
EditPlus is the best program EVER I use it for every thing... :) :) - Original Message - From: Patrick Calkins [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 9:45 AM Subject: Re: [PHP] search for a better php source code viewer You should try EditPlus !!! I

Re: [PHP] How to get PHP to do a POST??

2001-06-27 Thread CC Zona
In article 046101c0fee3$a5d4ec80$6401a8c0@Lynchux100, [EMAIL PROTECTED] (Richard Lynch) wrote: tried it on my own server and found that php assigns the values 'name_x' and Those are really name.x and name.y in HTTP, but since . is not allowed in a PHP variable name, you get _ instead.

RE: [PHP] Creating a PDF document from an HTML Page

2001-06-27 Thread Alok K. Dhir
Your best bet is probably to generate a pdf version of the receipt using pdflib instead of trying to tape together some HTML-PDF solution... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]. net] On Behalf Of Boaz Yahav Sent: Tuesday, June 26, 2001 10:26 AM

Re: [PHP] passing variables from - to frames

2001-06-27 Thread elias
Hey sorry 'M' about my last post... I was giving you ideas mixed with how to access an IFRAME ;) anyway to access frames you have to do like: window.parent.framea.window.document.forma.texta.value = window.parent.frameb.window.document.formb.textb.value M [EMAIL PROTECTED] wrote in message

RE: [PHP] passing variables from - to frames

2001-06-27 Thread Taylor, Stewart
The correct javascript syntax is. parent.frames[1].document.formb.varb.value = parent.frames[0].document.forma.vara.value; -Stewart -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED]] Sent: 26 June 2001 16:18 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP]

Re: [PHP] MIME type

2001-06-27 Thread Richard Lynch
is there a function to get the mime of a given file? if so what? Probably not... For starters, PHP doesn't really know much about mime-types, because they are defined by Apache*, not PHP. Secondly, mime-types *can* change on the fly in different directories based on .htaccess files, if your

Re: [PHP] Problem with returning value from function

2001-06-27 Thread elias
Or if you want to keep your code as is just define proc() as: function proce($line) { } CC Zona [EMAIL PROTECTED] wrote in message 9hb78a$5a7$[EMAIL PROTECTED]">news:9hb78a$5a7$[EMAIL PROTECTED]... In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Richard Kurth) wrote: I am having

Re: [PHP] PHP Uptime error

2001-06-27 Thread Peter Phillips
Thanks for everyone's help, it was the permissions on /proc that were causing the problems. I changed it to 755 and everything is working perfectly. Thanks again. -- Keyboard not detected, press F1 to continue... Peter Phillips [EMAIL PROTECTED] wrote in message 9h9e9k$dti$[EMAIL

Re: [PHP] Strange error on mysql_fetch_array

2001-06-27 Thread David Robley
On Wed, 27 Jun 2001 06:31, [EMAIL PROTECTED] wrote: The following code fragment works properly, in that I get the output I'm expecting. However, if I don't disable error messages with @, I get an error message from PHP saying: Warning: Supplied argument is not a valid MySQL result resource in

Re: [PHP] LDAP

2001-06-27 Thread Nick Talbott
Hello, Derek [snip] However I decided to include another objectclass (uidObject) and now it returns with: error - Object class violation error number - 65 [snip] $ds=ldap_connect(localhost); if ($ds) { $r=ldap_bind($ds, cn=admin,dc=domain,dc=com,mypassword); $rdn =

[PHP] error in running apache while --with-apxs is a config option

2001-06-27 Thread Yamin Prabudy
i got this error Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: Undefined symbol alloc_globals can anybody help me fix it i used php4.05 with apache 1.3.20 with ./configure

Re: [PHP] Oracle and PHP

2001-06-27 Thread Richard Lynch
// Define Oracle_Home and Oracle_Sid putenv(ORACLE_HOME=/opt/ORACLE/product); putenv(ORACLE_SID=MYDATA); IIRC, Thies posted once that the Environment variables *must* be defined in the environment, before PHP starts, for things to really work properly. That's all he said (IIRC), so I don't

Re: [PHP] Expand/parse variables in file

2001-06-27 Thread Richard Lynch
$b = 'abc $a def'; $a = 'whatever'; Actually, what I think you'll end up with needing is more like: eval($c = \$b\); You can't just eval($b) because that would be like typing: ?php abc $a def ? You need something roughly equivalent to: ?php $c = abc $a def; ? http://php.net/eval --

Re: [PHP] RE: Events Listings

2001-06-27 Thread Richard Lynch
A.) Do it for me :-) Okay, but you have to go listen to http://ellenrosner.com/ Not as whiny as Alanis, but you might like it :-) ?php # Create an array to hold all the shows: $shows = array(); if ($max_days == ){ $max_days = 365; } $current_day = date( z); echo table border=\0\

Re: [PHP] [OT-ish] Optional Extras.

2001-06-27 Thread Richard Lynch
How about solving both problems at once? :-) Yes, go with the N:N (the technical term for that car_option table) relation, *AND* give yourself a weighted search engine to boot! create table car (car_id auto_increment...); create table option (option_id auto_increment...); create table

Re: [PHP] --with-zlib/--with-zlib-dir and --enable-xslt

2001-06-27 Thread Richard Lynch
Been trying to compile PHP.4.0.6 with --with-zlib directive and failing. Using --with-zlib-dir, however succeeds. Does anyone knows the difference between the two ? --with-zlib-dir works and --with-zlib doesn't? :-) :-) :-) If you got it to work, leave it alone :-) Also, in a related

Re: [PHP] a standalone PHP script to update MySql server

2001-06-27 Thread Richard Lynch
It's pretty easy to use PHP to update MySql server through the web sever. Is there an easy way to use PHP scripts to update the MySql sever in a standalone mode (without the web sever)? Any sample scripts? You use the same scripts, but a different PHP. If you are on Windows, you can do:

Re: [PHP] Associated arrays

2001-06-27 Thread Richard Lynch
Can someone help me out by explaining how I can programatically rename the key of an associated array? EG Cat01,Cat02 in the example below. $cats = array( Cat01 = array(lv1 = 1, lv2 = 1, lv3 = 1, lv4 = 1, lv5 = 1 ), Cat10 = array(lv1 = 1, lv2 = 1, lv3 = 1, lv4 = 1, lv5 = 1 )); How do I

Re: [PHP] [PHP-WIN] Problems running php from samba network shares...

2001-06-27 Thread Richard Lynch
accisable for the user webbert. Which full access, both group and user, and Here I supplied the samba server share and the correct user, webbert. But when I try to access a php file, I get the following error message... So, is PHP running as user webbert?... I never can follow all the damn

Re: [PHP] POST method invocation of C CGI

2001-06-27 Thread Richard Lynch
I have a compiled C CGI that accepts POST method calls, reading information off of stdin, and returning its results to stdout. I need to be able to invoke this from a PHP module, with the PHP module loading the POST data for the CGI to fetch, and be able to collect the output that the CGI

Re: [PHP] Problem with returning value from function

2001-06-27 Thread Richard Lynch
if ($line1){ file://This is what is in Line1 Dear ##fullname## $line=$line1; proce($line); $line1=$line; } I think you just want: if ($line1){ $line1 = proce($line1); } And, since proce won't do much with an empty $line1 anyway, you can probably get rid of the if() parts. --

Re: [PHP] $REMOTE_ADDR error

2001-06-27 Thread Richard Lynch
why do $REMOTE_ADDR always returns 127.0.0.1 no matter the user's IP who is seeing the page? this doesn't look 'remote' to me... Maybe your web-server is not configured to give you REMOTE_ADDR. PHP pretty much just passes on whatever the web-server hands it. If you don't like what you are

Re: [PHP] $REMOTE_ADDR error

2001-06-27 Thread Brave Cobra
Have a look in phpinfo. You'll find the desired value there. The reason is indeed proxying. or try something like this : if ($HTTP_SERVER_VARS[HTTP_X_FORWARDED_FOR] != ) $ip = $HTTP_SERVER_VARS[HTTP_X_FORWARDED_FOR]; $proxy = $HTTP_SERVER_VARS[REMOTE_ADDR]; $host =

Re: [PHP] MIME type

2001-06-27 Thread teo
Hi Jon! On Sat, 26 May 2001, Jon Yaggie wrote: is there a function to get the mime of a given file? if so what? unless you upload it, nope you may try : using `magic' -- really, that one installed by Apache for mod_mime_magic.c parsing 'file' output -- teodor -- PHP General

RE: [PHP] Auction PHP Solution?

2001-06-27 Thread Ralph Guzman
Look at PHPAuction: http://www.phpauction.org/html/ -Original Message- From: Michael O'Neal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 8:56 AM Cc: Php-General@Lists. Php. Net Subject: [PHP] Auction PHP Solution? Hi, Has anybody seen an ebay-like auction solution done in

[PHP] PHP code secrity on VirtualHost

2001-06-27 Thread Aaron Bennett
Title: PHP code secrity on VirtualHost Hi everyone, Does anyone know the best way to php secure source code for a virtualhost account so it is not group/world readable? I've been looking for a way to get PHP to play with suexec NOT in cgi mode, but nothing has popped up yet.. Anyone have any

[PHP] Mail()'s not playing nicely :(

2001-06-27 Thread Jamie Thompson
ok so i got mail([EMAIL PROTECTED], $message, sms alert, Return-Path: $email $email\nFrom: $email $email\nReply-To: $email $email\nX-Mailer: . phpversion()); the email appears as from [EMAIL PROTECTED] istead of [EMAIL PROTECTED] which it should (and always has done previousy) I looked at the

Re: [PHP] PHP with JAVA support

2001-06-27 Thread Andrzej Swedrzynski
On Tue, 19 Jun 2001, Robert Vetter wrote: Hello, I'm trying to run PHP with Java support and don't get it to work. First I compiled PHP '--with-java=/usr/local/jdk1.2.2/'. Then I added this to the PHP.ini file: [Java] java.home=/usr/local/jdk1.2.2

[PHP] Help - Lotus

2001-06-27 Thread TV Karthick Kumar
Hi List, I am working on importing data from Lotus Organizer 5.0 to an ddress book application, written in PHP. If there's a space in the address field, it looks this when I see the .vcf file, after creating it. Note the =0D=0A=0D=0A= in:

Re: [PHP] run a fuction at each intervals

2001-06-27 Thread Tom Carter
this sort of works.. I did a similar thing on a site.. but it *really* is not what HTTP is designed for + you start to get all kinds of things... main problem being it won't execute code afterwards to then.. if, for example, it is displayed in a table then that won't work + some browsers may not

Re: [PHP] HOW TO: Reload a frame with a different URL?

2001-06-27 Thread elias
If you want to change content of another frame then he's a sample code: window.parent.framerightmenu.window.location = myfile.htm; replace 'framerightmenu' with real frame name which is defined in a frameset tag. CertifiChecks [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

RE: [PHP] Installation problems with MySQL

2001-06-27 Thread Ryan Ware
I hadn't heard of that one. I use Nusphere which is Apache, Perl, PHP, Mysql, Sendmail all rolled into one easy Windows install. http://www.nusphere.com -Original Message- From: Aral Balkan [SMTP:[EMAIL PROTECTED]] Sent: Monday, June 25, 2001 11:05 PM To: [EMAIL PROTECTED]; infoz;

RE: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Jamie Thompson
use the str_replace() function http://www.php.net/manual/en/function.str-replace.php -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: 27 June 2001 05:19 To: [EMAIL PROTECTED] Subject: [PHP] Filtering out \ when a ' is user entered? Hello, I'm pretty

[PHP] PHP Menu.

2001-06-27 Thread Deon Heunis
Hi, I would like to know if it is possible to make a pop-out navigation menu with PHP. Regards, Deon HeunisHetzner AfricaPO Box 3450Durbanville 7551South AfricaTel: +27 21 975 7930Fax: +27 21 975 9731Internet: http://www.hetzner.co.za

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread dempsejn
Hey Marcus, Lots of different ways...first, the \ is being added because you have magic_quotes turned on...you can use set_magic_quotes_runtime to turn them off in a specific script, edit your php.ini file to turn them off completely, or just do a string replace - replace \' with ' and \

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread ReDucTor
stripslashes($string) - Original Message - From: Marcus James Christian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 2:18 PM Subject: [PHP] Filtering out \ when a ' is user entered? Hello, I'm pretty new to PHP but all I've seen of it so far I pretty much

[PHP] Bug Database.

2001-06-27 Thread Jorge Faria
Hi , does anyone know if there is a bug database php project . My goal is a small database like php already have in their own site. Otherwise i must write one J.Faria _ Do You Yahoo!? Get your free @yahoo.com address at

RE: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm pretty new to PHP but all I've seen of it so far I pretty much love! I've built a web log but when the user enters their data and they use ' or (and you know they will) php always shows it from the included web log as

[PHP] problem with header()

2001-06-27 Thread Sheni R. Meledath
Hello: Thank God. The mailing list is back and many thanks to the PHP Owners. I am having a problem using the header() function. I am using this function in a script that is used to download files. When used, I am getting a blank page with some junk characters and some html code, that I

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Steve
try stripslashes()! http://www.php.net/manual/function.stripslashes.php - Original Message - From: Marcus James Christian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 26, 2001 11:18 PM Subject: [PHP] Filtering out \ when a ' is user entered? Hello, I'm pretty new

[PHP] Lotus - help

2001-06-27 Thread tvkarthick
Hi List, I am working on importing data from Lotus Organizer 5.0 to an ddress book application, written in PHP. If there's a space in the address field, it looks this when I see the .vcf file, after creating it. Note the =0D=0A=0D=0A= in:

[PHP] Missing arguments for function in class? (object-orientedprogramming)

2001-06-27 Thread Thomas David Kehoe
I have a function that works perfectly (from within a script). But when I make it a class (object) and call it from an external file, I get the following error: Warning: Missing argument 1 for display_records() in http://www.friendshipcenter.com/Objects/display_records.inc on line 5

Re: [PHP] HOW TO: Reload a frame with a different URL? [LONG]

2001-06-27 Thread Marc Johnson
Richard, Thanks for the reply. However, it's not what I was looking for. :) I already have all the login and password stuff. What I'm trying to do is reload a different frame with a new html document once the user logs in. Thanks again, MarcJ In article

Re: [PHP] looking for a class that handles cookies and sessions

2001-06-27 Thread Jason Stechschulte
On Tue, Jun 26, 2001 at 12:44:15PM -0400, [EMAIL PROTECTED] wrote: I need a class that can quickly help me set cookies and sessions, and check up against them anyone have an idea where i can get one like this? Yes, the University I work at has a class that will teach you this. The

Re: [PHP] back from a search form

2001-06-27 Thread Jason Stechschulte
On Tue, Jun 26, 2001 at 05:17:51PM +0200, Marcos wrote: hi to @ll, after a make a search throw a form it returns me some results (links). if i click to a link and i try to get back to the previous results Internet Explorer shows me a blank page advicing that i should refresh the page in

Re: [PHP] HOW TO: Reload a frame with a different URL?

2001-06-27 Thread Marc Johnson
Elias, This is what I'm looking for (I think). Just a quick question though. Does the frameset tag have to be in the same php page that this line of code is contained in? The reason I ask is because no matter where I put this line of code (with the needed modification, my frameset is

Re: [PHP] sending e-mail with variables

2001-06-27 Thread Jason Stechschulte
On Tue, Jun 26, 2001 at 12:13:28PM -0700, Richard Kurth wrote: I have a function that is for sending an e-mail to the customer This is probably where your problem is. $hostname, $domain, $tld, and $fullname have to be defined in the function. Try echoing them inside of the function. You

[PHP] Mail slow

2001-06-27 Thread Tim Ward
I've finally got a mail client running on our web server and it works fine, except in the time it takes to run the mail() function. I've put diagnostics round the call and it seems to be taking 22 seconds to return. All I'm doing is forwarding the results of an enquiry form as plain text. I'm

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Meir Kriheli - MKsoft
- Original Message - From: Marcus James Christian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 6:18 AM Subject: [PHP] Filtering out \ when a ' is user entered? Hello, I'm pretty new to PHP but all I've seen of it so far I pretty much love! I've built a

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Jason Stechschulte
On Tue, Jun 26, 2001 at 09:18:49PM -0700, Marcus James Christian wrote: \' How can I filter out these backslashes so they don't appear on the final public viewable page? Perhaps stripslashes() would be helpful? http://www.php.net/manual/en/function.stripslashes.php -- Jason Stechschulte

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Christian Reiniger
On Wednesday 27 June 2001 06:18, Marcus James Christian wrote: I've built a web log but when the user enters their data and they use ' or (and you know they will) php always shows it from the included web log as \' How can I filter out these backslashes so they don't appear on the

Re: [PHP] Strange error on mysql_fetch_array

2001-06-27 Thread Ronny Mandal
- Original Message - From: David Robley [EMAIL PROTECTED] To: [EMAIL PROTECTED]; PHP General [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 8:47 AM Subject: Re: [PHP] Strange error on mysql_fetch_array On Wed, 27 Jun 2001 06:31, [EMAIL PROTECTED] wrote: The following code fragment

[PHP] calculate download time

2001-06-27 Thread Rhett Hermer
Hi, I am trying to write code to find out how long it takes to download a file. The code is below. When I compare to other websites which you can calculate online, varies wildly. I do know about many factors that affect the download times. All I want is correct forumla to caclulate. $b =

RE: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread James Cox
I might be wrong, but if you did something like this.. ?php $somevar = your database stored data; $somevar = stripslashes($somevar); echo $somevar; ? would work quite well, I think. James Cox -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: 27 June

[PHP] quoted printable decode

2001-06-27 Thread tvkarthick
Hi, Is the quoted_printable_decode() function, working or not ??!. Pls. let me know. ~ Karthick -- PHP General 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

[PHP] quoted printable decode

2001-06-27 Thread tvkarthick
Hi, Is the quoted_printable_decode() function working or not ?!?!. Pls. let me know. ~ Karthick -- PHP General 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

Re: [PHP] looking for a class that handles cookies and sessions

2001-06-27 Thread teo
Hi PeterOblivion! On Tue, 26 Jun 2001, [EMAIL PROTECTED] wrote: I need a class that can quickly help me set cookies and sessions, and check up against them anyone have an idea where i can get one like this? yes http://www.webdev.ro/products/phpx/phpx.tgz luckily enough, Daniel ([EMAIL

RE: [PHP] Strange error on mysql_fetch_array

2001-06-27 Thread Chadwick, Russell
From experience with oracle, desc only works in an sql prompt, not through code. So use the more lengthy method in mysql: SHOW FIELDS FROM $table_name in oracle: SELECT c.column_name, c.data_type, c.data_length, c.data_precision, c.data_scale, c.nullable FROM

RE: [PHP] PHP crashing IIS 5 on Wnidows 2K

2001-06-27 Thread Jason Lustig
Assuming that you are using the ISAPI version of PHP, it is probably crashing because that version of PHP is not very stable. You should upgrade to 4.0.6 which contains improvements in that area, but it is still not perfect. If you find 4.0.6 unstable either change from ISAPI to CGI or if you

RE: [PHP] PHP 4.0.6 and APXS2

2001-06-27 Thread Chadwick, Russell
Hello, I believe include problem is a small typo... the include path needs to be ./:/usr/local/lib/php There is a php function to change the working directory, I'm not remembering it off the top of my head, but you can do either: exec(cd $path ls -d */*.jpg,$ls); or:

RE: [PHP] RE: Events Listings

2001-06-27 Thread scott [gts]
if you dont know PHP that well, you should implement it in a language that you know, then work from that and translate it into PHP. i used to do that with perl/PHP when i was first learning PHP... sometimes, things are more obvious when expressed in a language that you're more familiar with.

Re: [PHP] Batch Coding Help Please [LONG]

2001-06-27 Thread Richard Lynch
mail($Email, $MsgTitle, $Message\n\n\n$Content, $Header); Here is the culprit -- This is going to fire up a sendmail process for every single email. You are going to choke your server to death with tons and tons of sendmail processes. Actually, after about 50 of these, the mail() function

[PHP] Stopping stolen / spoofed / linked sessions

2001-06-27 Thread adam (dahamsta)
[Please copy replies off-list.] I want to use PHP4 sessions for authentication, but I'm having difficulty understanding how to get around users spoofing, stealing or linking sessions. Here's an example: Alice sends Bob a link from a site she's logged into. Alice has cookies turned off in her

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Steve Edberg
See www.php.net/stripslashes Also check out the PHP configuration settings for magic_quotes_gpc -steve At 9:18 PM -0700 6/26/01, Marcus James Christian wrote: Hello, I'm pretty new to PHP but all I've seen of it so far I pretty much love! I've built a web log but when the user

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Aral Balkan
The way I do it is to use a function to check if magic quotes are on (because if they're on the conversion is done automatically for you) and if they're not, use the AddSlashes function before writing to the database and use StripSlashes after reading from the database. You can use these two

RE: [PHP] search for a better php source code viewer

2001-06-27 Thread Jorg Krause
Hi, -Original Message- From: Jason Lotito [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 11:05 PM To: 'Tyler Longren'; [EMAIL PROTECTED]; 'php' Subject: RE: [PHP] search for a better php source code viewer You mean something like this:

RE: [PHP] PHP Uptime error

2001-06-27 Thread scott [gts]
is this a development box or a live hosting box? be wary of setting arbitrary permissions on *nix machines without knowing the consequences of doing so. most of the time, if things are configured a certain way, there's a pretty good reason why... :) -Original Message- From: Peter

RE: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread scott [gts]
stripslashes($var); and please, read the manual/documents. -Original Message- From: Marcus James Christian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 12:19 AM To: [EMAIL PROTECTED] Subject: [PHP] Filtering out \ when a ' is user entered? Hello, I'm pretty new

[PHP] OT MS error messages

2001-06-27 Thread scott [gts]
don't you just love MS error messages? they're always so descriptive and precise and helpful. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 2:52 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Operation must use an updateable

[PHP] variables in text or placeholders

2001-06-27 Thread scott [gts]
another way of doing it would be to ditch using variables in the actual text string altogether, and just use place holders use {varname} instead of $varname, and then you dont need to eval anything... just use a simple regexp $fullname = Roy Rogers; $data = array( 'name'=

  1   2   >