Re: [PHP] OT- Private Registrations is bogus

2002-11-23 Thread a . h . s . boy
FOR THE RECORD: I (spud who really is at nothingness.org) did NOT post this original message to the list, despite the apparent sender address (and the authentic signature at the bottom). Even the message-id header was forged to appear to have emanated from my server (whose logs I checked, to

Re: [PHP] php teleprogramming -- How to avoid being ripped off ?

2002-11-23 Thread Khalid El-Kary
hi, don't be so unhappy withit, because you won however, money comes and goes knowledge stays, through this experience you learned much, right? so you didn't lost much! :-) _ Tired of spam? Get advanced junk mail protection

[PHP] How to obtain unique XML Elements

2002-11-23 Thread David Pratt
Anyone have a simple technique for obtaining a unique list of elements from an XML file? Am looking for something that will identify the first opening tag ie thistag and the single tag anothertag/ so that I get an array of tags that I can print out. Having a bit of trouble with regex to get

Re: [PHP] How to obtain unique XML Elements

2002-11-23 Thread Khalid El-Kary
hi, you can get this parser http://creaturesx.ma.cx/kxparse/ if you want only this limited functionality (take an old version) 0.2 for example, you may also want to take only particular functions from it this is valid in all cases (as i think), except that you are developing another parser :)

[PHP] Undefined Variable

2002-11-23 Thread Adriano Santos
Hi, I'm with problem: Undefined Variable. I'm using : PHP 4.2.3 MySql 3.2.39 Windows 2000 How do I make to soluction my problem ? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Undefined Variable

2002-11-23 Thread Derick Rethans
Adriano Santos wrote: Hi, I'm with problem: Undefined Variable. I'm using : PHP 4.2.3 MySql 3.2.39 Windows 2000 How do I make to soluction my problem ? at the top of your script: error_reporting(E_ALL ~E_NOTICE); or initialize your variables likes: $number = 0; $string = foo; Derick --

[PHP] Re: extension can't be found

2002-11-23 Thread Derick Rethans
Liug wrote: I just compiled/installed apache/php4.2.3 with postgres support. the default php.ini-dist is used. I added extension=pgsql.so but when I start apache, error_log shows it can't find pgsql.so. after some trial and error, I found the following line in the default php.ini causes the

[PHP] Re: Post again. question about Animated GIF

2002-11-23 Thread Derick Rethans
Jungsu Heo wrote: Hello~. I made a PHP script which resize GIF Image. But, Animated GIF don't Animate ;-( Manual says 'use imagecolortransparent() to format GIF89'. The library that PHP uses, libgd, can't handle multiple frames in a GIF. SO if you resize a GIF with it the result that comes

Re: [PHP] Re: put result of include into a variable

2002-11-23 Thread Derick Rethans
Ernest E Vogelsinger wrote: One thing - be warned that some sites (esp. M$) send a redirect at the index (or default) pages... the fopen() will not honor this redirect. Using cUrl would be a better way to handle this, IMHO. fopen() in the upcoming PHP 4.3.0 will support this though. Derick

[PHP] Re: Undefined Variable

2002-11-23 Thread Adriano Santos
My php.ini: error_reporting = E_ALL ~E_NOTICE I have a form to send of the variables, but my page do not receive values. This my code: ?php $nome = StrToLower($nome); $senha = StrToLower($senha); ? thanks Derick Rethans [EMAIL PROTECTED] escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: Undefined Variable

2002-11-23 Thread Derick Rethans
Adriano Santos wrote: My php.ini: error_reporting = E_ALL ~E_NOTICE I have a form to send of the variables, but my page do not receive values. This my code: ?php $nome = StrToLower($nome); $senha = StrToLower($senha); ? I guess you use PHP 4.2.0+; since this version the register_globals

[PHP] Some error in file upload.

2002-11-23 Thread Naif Al-Otaibi
I copy a complete example from a book to upload file and I got this message error when I browse the file: Parse error: parse error, unexpected '!', expecting T_VARIABLE or '$' in c:\inetpub\wwwroot\php5\file_upload.php on line 32 Here is the content of the file (file_upload.php): ? //

[PHP] Re: Some error in file upload.

2002-11-23 Thread Derick Rethans
Naif Al-Otaibi wrote: I copy a complete example from a book to upload file and I got this message error when I browse the file: Parse error: parse error, unexpected '!', expecting T_VARIABLE or '$' in c:\inetpub\wwwroot\php5\file_upload.php on line 32 Change if(isset(!$WINDIR) to

[Fwd: Re: [PHP] Some error in file upload.]

2002-11-23 Thread Marco Tabini
-Forwarded Message- From: Marco Tabini [EMAIL PROTECTED] To: Naif Al-Otaibi [EMAIL PROTECTED] Subject: Re: [PHP] Some error in file upload. Date: 23 Nov 2002 07:56:06 -0500 I think this needs changing: error- if(isset(!$WINDIR) !@unlink($userfile)) into if(!isset($WINDIR)

Re: [PHP] OT- Private Registrations for Domains

2002-11-23 Thread Ernest E Vogelsinger
At 22:02 22.11.2002, [EMAIL PROTECTED] said: [snip] Has anyone heard of or used somthing like this, just received this notice from my registrar? [snip] This simply means: Buy this domain, pay for this domain, so it

Re: [Fwd: Re: [PHP] Some error in file upload.]

2002-11-23 Thread Marco Tabini
Naif, I think your problem is related to register_globals. The authors of the book probably based their scripts on a version of PHP that had that option turned on by default, but as 4.2.0, it's been turned off as it is usually considered a security risk. So, either use the superglobal arrays

Re: [PHP] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-23 Thread -[ Rene Brehmer ]-
Hi @ Edwin, On Fri, 22 Nov 2002 12:34:35 +0900, you wrote about Re: [PHP] echo'ing array contents through reference variable ... why doesn't this work??? something that looked like this: This is my test code: $premieredag = array(2002-11-22,2002-11-29,2002-12-06,2002-12-18); $d20021122

RE: [PHP] dynamic arraynames

2002-11-23 Thread John W. Holmes
I am trying to generate arrays to hold inputs to columns. Column titles are input to a table as needed. They are read by the program and placed across the page. Then an array goes under each column name to collect the inputs to the various rows. Everything works except to dynamically

Re: [PHP] echo'ing array contents through reference variable ... why doesn't this work???

2002-11-23 Thread Ernest E Vogelsinger
At 16:50 23.11.2002, -[ Rene Brehmer ]- said: [snip] Shouldn't echo($$pdag[$n]); be able to pull the string contents of the array? Or is there some extra needed when using referenced variable? [snip] This is

[PHP] Re: Undefined Variable

2002-11-23 Thread Adriano Santos
Thanks.

Re: [PHP] echo'ing array contents through reference variable

2002-11-23 Thread Tularis
echo ${$pdag[$n]}; // is also possible in case the [$n] is the index to pdag. Otherwise use this: echo ${$pdag}[$n]; - Tularis PS. This is basicly the same thing as Ernest said, but shorter... Ernest E Vogelsinger wrote: At 16:50 23.11.2002, -[ Rene Brehmer ]- said:

[PHP] Insert file into sql server binary field.

2002-11-23 Thread Naif Al-Otaibi
How can I insert a file into a binary field in sql server 2000. Do I need some function in the query like upload or just read the file and insert it. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] using cookies

2002-11-23 Thread Ken Nagorski
Hi there, I have never used cookies before, however I am trying to implement them to make things a little more secure. Rather than passing a sql statement via a hidden input tag I am setting a cookie. This works fine except that when I look at the sql after it is pulled from the cookie everything

RE: [PHP] using cookies

2002-11-23 Thread Rich Gray
Ken Do *not* use hidden form statements or cookies to store any SQL this is extremely dangerous and a relatively simple hack could destroy your database completely! By all means use hidden form fields to store row ID values but your PHP scripts should treat all user input data via

php-general Digest 23 Nov 2002 20:55:04 -0000 Issue 1722

2002-11-23 Thread php-general-digest-help
php-general Digest 23 Nov 2002 20:55:04 - Issue 1722 Topics (messages 125716 through 125738): Re: php teleprogramming -- How to avoid being ripped off ? 125716 by: Khalid El-Kary How to obtain unique XML Elements 125717 by: David Pratt 125718 by: Khalid El-Kary

RE: [PHP] using cookies

2002-11-23 Thread Paul Marinas
dose anyone how to send a ping in local network thanks Paul Marinas Technical Support RDS Craiova Phone: +402-51-410-194 Mobile: +407-22-451-439 Fax:+402-51-416-579 www.rdsnet.ro . Privileged/Confidential Information may be contained

RE: [PHP] Using Ping (was: using cookies)

2002-11-23 Thread Marco Tabini
I took the liberty of changing the subject of your e-mail because this way everyone can follow it better. Well, you can execute the ping command directly from within PHP and then parse its input. For example: ?php preg_match (/([0-1]) received/, shell_exec (ping -c 1 -w 2 www.phparch.com

[PHP] Passing Variables

2002-11-23 Thread Craig Edgmon
I am sure this question has been answered, but there is a ton of data to sift through on this. I am running Apache 1.3 and the latest PHP 4.2.3. . I am just working with variables and I cannot seem to get them to pass from my html file to the php call. I will get the html portion fine, but not the

RE: [PHP] using cookies

2002-11-23 Thread Rich Gray
Try the system() or passthru() functions... Rich -Original Message- From: Paul Marinas [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 13:09 To: Rich Gray Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] using cookies dose anyone how to send a ping in local network thanks

Re: [PHP] Passing Variables

2002-11-23 Thread Marco Tabini
Try looking into the manual for register_globals Marco php|architect - The magazine for PHP Professionals The monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Sat, 2002-11-23 at 14:42, Craig Edgmon wrote: I am sure this

Re: [PHP] Re: Php search results]

2002-11-23 Thread Tom Culpepper
I wrote this function to fetch a news item off another web page but with a little modification it should work for you. To use it you needed to identify a set of of strings in the source to use as anchors ($start, $end) and then it pulls that section and crops off the anchor text so you are left

RE: [PHP] Passing Variables

2002-11-23 Thread Rich Gray
Is your register_globals setting set to Off? This is the default setting in v4.2.x upwards. Rich -Original Message- From: Craig Edgmon [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 11:43 To: [EMAIL PROTECTED] Subject: [PHP] Passing Variables I am sure this question has been

Re: [PHP] grabbing data from a site

2002-11-23 Thread Tom Culpepper
Try this function, Ijust wrote it for the same purpose. You just need a unique string in front of the stuff you want, and one after it. You can usually get a string of code on either end that will do this. The function will open the URL, find the anchor strings you told it, then strip them

Re: [PHP] put result of include into a variable

2002-11-23 Thread Tom Culpepper
Try using fopen() to open the file and then fread() to read it into the buffer and set that equal to the variable. Tom Culpepper Multicast Technologies Patrick Anderson at TUE wrote: Hi, For some (strange, I know) reason I would like to copy the content of a webpage into a database. I would

Re: [PHP] dynamic arraynames

2002-11-23 Thread Floyd Baker
On Sat, 23 Nov 2002 10:58:02 -0500, you wrote: I am trying to generate arrays to hold inputs to columns. Column titles are input to a table as needed. They are read by the program and placed across the page. Then an array goes under each column name to collect the inputs to the various

[PHP] Re: Passing Variables

2002-11-23 Thread Stephan Seidt
if you mean something like bla.php?foo=bar, etc and you have register_globas enabled it'll be stored as $_GET['foo'] ($_REQUEST['foo']) On Sat, 23 Nov 2002 11:42:49 -0800 [EMAIL PROTECTED] (Craig Edgmon) wrote: I am sure this question has been answered, but there is a ton of data to sift

[PHP] logs(querystring) in php4 or apache?

2002-11-23 Thread Frank Wang
Hi, In a html i use a form to post data to a php file in a Apache server. I'd like to take a look at the raw data submitted from the web browser to the php, where can i find this info? the access.log in Apache does not contain this info. thanks. Frank -- PHP General Mailing List

[PHP] PHP Syntax - mail statement

2002-11-23 Thread Michael Sharp
I have a html form that has just 3 fields and each are defined as name=firstname, name=lastname, and name=email . The action is calling a sendmail.php file and the method is POST. Here is the contents of sendmail.php: ?php $to = [EMAIL PROTECTED]; $subject = Form Submission; $contents =

Re: [PHP] PHP Syntax - mail statement

2002-11-23 Thread Marco Tabini
Probably just a problem with register_globals Try: $contents = {$_REQUEST['firstname']}, {$_REQUEST['lastname']}, {$_REQUEST['email']}; Marco php|architect - The magazine for PHP Professionals The monthly worldwide magazine dedicated to PHP programmers Check us out on the web at

Re: [PHP] dynamic arraynames

2002-11-23 Thread Hugh Danaher
Floyd, if you are using mysql then you can use the mysql_list_fields to get the names of the mysql table's column (field) names, then do mysql_num_fields to get the number of columns (fields), then fill the columns with whatever using a while loop. I've attached a php page that fetches this info

Re: [PHP] using cookies

2002-11-23 Thread Chris Shiflett
--- Ken Nagorski [EMAIL PROTECTED] wrote: I have never used cookies before, however I am trying to implement them to make things a little more secure. Rather than passing a sql statement via a hidden input tag I am setting a cookie. I think someone else already mentioned this, but let me

[PHP] strings and vars

2002-11-23 Thread empty
Hi; i have a string and I want to set it as a variable name. like tahat i have string like: string; how can i get variable $string; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: strings and vars

2002-11-23 Thread Kyle Gibson
Hi; i have a string and I want to set it as a variable name. like tahat i have string like: string; how can i get variable $string; I suppose you are trying to do the following: $variable = some value; So if you wish to assign string as $string, simply do the following: $string = string;

Re: [PHP] strings and vars

2002-11-23 Thread Ernest E Vogelsinger
At 02:05 24.11.2002, empty said: [snip] i have string like: string; how can i get variable $string; [snip] $var = 'string'; $$var will resolve as $string -- O Ernest E. Vogelsinger (\)ICQ #13394035

Re[2]: [PHP] strings and vars

2002-11-23 Thread empty
yiihhuuuvvv it works; I heard it, i remember variable variables I guess Thanks all EEV $var = 'string'; EEV $$var will resolve as $string -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parse URLs

2002-11-23 Thread Stephen
I have a simple post script and I want to make it so if a user types in a URL of some sort, to change it to make it clickable. How could I do that? Thanks,Stephen Cratonhttp://www.melchior.us "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love

Re: [PHP] Parse URLs

2002-11-23 Thread Tom Culpepper
not entirely sure what is going on there, but if the user is entering the url in a html form. Then just grab the variable on the next page and run this $url=user $HTTP_GET_VARS[url]; (or $HTTP_POST_VARS depending on your form method) $url=a href=.$url..$url./a; echo $url; the only way to

Re: [PHP] Parse URLs

2002-11-23 Thread Stephen
They are entering in a whole paragraph or two of text and I want to search the paragraph for URLs then make it a clickable URL and then store it in a MySQL database. - Original Message - From: Tom Culpepper [EMAIL PROTECTED] To: Stephen [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent:

Re: [PHP] Parse URLs

2002-11-23 Thread Tom Culpepper
from the archives of the list http://www.phpbuilder.com/mail/php-windows/2001042/0222.php -tom culpepper Stephen wrote: They are entering in a whole paragraph or two of text and I want to search the paragraph for URLs then make it a clickable URL and then store it in a MySQL database. -

[PHP] getting mysql dump using php

2002-11-23 Thread See Kok Boon
hi, can anyone tell me how to make auto backups of mysql databases? i have a particular database that i want to backup everyday. what i can think of now is to use crontab to execute a .php that will do the work, then send the db schema (dump) via email every midnight. however, i do not know the

RE: [PHP] getting mysql dump using php

2002-11-23 Thread Rich Gray
Answer is No. 2) Use cron to run the mysqldump utility instead of a php script. Let me know if you need more info. Cheers Rich -Original Message- From: See Kok Boon [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 07:35 To: PHP Subject: [PHP] getting mysql dump using php hi, can

RE: [PHP] getting mysql dump using php

2002-11-23 Thread Morgan Hughes
On Sun, 24 Nov 2002, Rich Gray wrote: Answer is No. 2) Use cron to run the mysqldump utility instead of a php script. Let me know if you need more info. I use this one with crontab, it works pretty well, if your email program can handle uuencode: #!/bin/sh # File: db_backup.sh #

[PHP] Secureing PHP.

2002-11-23 Thread Steven Adams
Hi, I am looking to secure my php install, like the settings in php.ini etc. I am using apache 1.3.27 and running latest php. Is there like a tut or something that can take u thought the php.ini and explain ina little more detail? safe_mode = Off is that a bad idea or should i leave it

[PHP] Re: Secureing PHP.

2002-11-23 Thread Stephan Seidt
hi, you should try to take the php.ini-recommended and edit it a little bit so that it fits your needs. the settings there are very secure but also increase php's performance and coding standard. if some settings won't fit to a single script, you can use ini_set(..., ...). so you'll have to

Re: [PHP] sessions and trans-sid problem/question

2002-11-23 Thread Jean-Christian Imbeault
Ernest E Vogelsinger wrote: if ($_COOKIE[$_SESSION['cookie_name']] == $_SESSION['cookie_token']) { Ok, please forgive my ignorance, but in PHP isn't $_COOKIES the same as $_SESSION?. I thought it was if the user had cookies turned off (and even if the user had cookies turned on come to