[PHP] Re: Problems with the fopen() function

2001-11-11 Thread Tim Harvey - 5 Star Hosting
I tried what Matt suggested but it doesn't work. Anybody else got any suggestions? - Original Message - From: Tim Harvey [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Sunday, November 11, 2001 3:44 AM Subject: Problems with the fopen() function Can somebody

Re: [PHP] Random Row From Database

2001-11-11 Thread Christian Reiniger
On Sunday 11 November 2001 05:18, HEW Staff wrote: Hi, I'm trying to pull a random row from my database and display the contents. I know that the code: SELECT * FROM TABLENAME WHERE RAND() LIMIT 1 should work. (1) [EMAIL PROTECTED] has nothing to do with this. So don't crosspost to

[PHP] | delimiter can not be found with strpos nor with explode

2001-11-11 Thread Kal Amry
If I have the string like this str1 | str2 Then | is found However, if I do the above as str1|str2 without spaces Then | can not be found I appreciate any hints on a work around. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] warning eror

2001-11-11 Thread brett
Can someone please tell me what to look for when this error appears: Warning: Cannot use a scalar value as an array in /home/sites/site7/web/admin/repeat.php on line 141 It just came about in a page that has worked fine until now. But that is how problems usually arrive, I think it is fine

[PHP] Re: | delimiter can not be found with strpos nor with explode

2001-11-11 Thread Kal Amry
It works now!! It was some problems with DreamWaver .. Kal Amry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If I have the string like this str1 | str2 Then | is found However, if I do the above as str1|str2 without spaces Then | can not be found I

php-general Digest 11 Nov 2001 09:44:26 -0000 Issue 988

2001-11-11 Thread php-general-digest-help
php-general Digest 11 Nov 2001 09:44:26 - Issue 988 Topics (messages 74125 through 74160): Re: global variable for all scripts 74125 by: Kurt Lieber mail() attach jpeg 74126 by: jtjohnston Date help (no not that kind) 74127 by: sundogcurt gdImageGif compile

[PHP] #!/usr/local ignore option?

2001-11-11 Thread Michael Rice
Hi All, I have a kind of unique problem that I've had trouble finding information on around the net. I have a site that I pay a hosting company for that expects my php scripts to have #!/usr/local/bin/php at the beginning of each script which works fine. Now, I'd like to keep a development

[PHP] HTML Question

2001-11-11 Thread Boaz Yahav
Hi Check out this attached image. This is the source HTML : HTMLBODY FORM SELECT DIR="RTL"OPTION VALUE="1"1 /SELECT BR SELECTOPTION VALUE="1"1 /SELECT /FORM/BODY/HTML Notice that the upper pull down has a small space on the left side of the arrow. Anyone has an idea why the RTL

[PHP] Re: warning eror

2001-11-11 Thread CC Zona
In article 008a01c16a91$9da01200$89383842@home, [EMAIL PROTECTED] (Brett) wrote: Can someone please tell me what to look for when this error appears: Warning: Cannot use a scalar value as an array in on line 141 On (or before) line 141 of /home/sites/site7/web/admin/repeat.php, an array

[PHP] Re: Class for database-access doesn't work

2001-11-11 Thread John Lim
Leave out the second $. Eg, $this-database is correct. Next time when debugging, set error_reporting(E_ALL); This will catch this error I believe. Bye, John Alexander Czernay [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I just tried to write a simple

[PHP] Re: ASP, ODBC, IIS 5, and PHP

2001-11-11 Thread John Lim
Run in CGI mode. The ISAPI is still a bit unstable. Sigh. Kevin Pratt [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I appear to be having a problem where when I run a PHP script that uses ODBC calls my ASP/ODBC driven pages stop functioning. When I run a PHP

[PHP] Re: warning eror

2001-11-11 Thread Kal Amry
This is a Cobalt box! well you should edit the code and look at line 141 - What error it mentions. Telnet to the box, and cd to that directory then vi repeat.php to edit the file then Type 141 and then Shift G That should take you the line but if you are not familiar with vi the do not

[PHP] Re: warning eror

2001-11-11 Thread Kal Amry
I didn't see the description of the error so take that into consideration when reading my post, yet I agree Zona. Cc Zona [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... In article 008a01c16a91$9da01200$89383842@home, [EMAIL PROTECTED] (Brett) wrote: Can

Re: [PHP] e modifier

2001-11-11 Thread Papp Gyozo
PHP 4.0.5, as far as I know. - Original Message - From: "Brian Clark" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, November 11, 2001 6:15 AM Subject: [PHP] e modifier Does anyone know when the PCRE modifier 'e' was added into PHP? Is it version dependant, or has

[PHP] php webmail

2001-11-11 Thread Colm Rafferty
Dear all can I view a pop3 mail account without using IMAP? If there is can someone point me to such a resource the function imap_open() will not work on my cgi server Thanks Colm Rafferty -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 11,

RE: [PHP] php webmail

2001-11-11 Thread Richard Heyes
can I view a pop3 mail account without using IMAP? If there is can someone point me to such a resource the function imap_open() will not work on my cgi server http://phpclasses.upperdesign.com has a number of pop3 access classes iirc. -- Richard Heyes If you have any trouble sounding

[PHP] sending php page by mail

2001-11-11 Thread Mark Wouters
Hi all, Description of my problem: i want to sent a newsletter to a mailgroup. However i also want to be able to see who read the mail at a certain moment and who didn't. Therefor i thought putting the page online, i.e. it's a php page which gets its data from the database. By sending a mail to

Re: [PHP] Date help (no not that kind)

2001-11-11 Thread DL Neil
in the code above (2001). A format of this nature is widely used because it facilitates sorting/comparisons - ah but watch those perceptions, if you were comparing/sorting/performing arithmetic on two dates, one in Oct and one in Nov, then the convention will have to be CCYYMMDD = century, year

[PHP] Empty form variables when uploading, Help please???

2001-11-11 Thread Sandra Rascheli
Hi everybody, I hope someone is able to help me with this, I've been having this problem for a couple of months now and I have not been able to find a solution. I have a form to upload a file which submits to itself, and has two submit buttons, one called eliminarfoto (deletephoto) and

[PHP] Re: UPLOADING BLUES: Empty form variables when uploading

2001-11-11 Thread Steven Sullivan
Sandra, I've been trying to get a file upload form to work, but am not having any success. So, I dropped the file part from the form, leaving just text input, and have discovered that when I use the POST method, my variables may or may not be available on the receiving page. GET works fine. I've

Re: [PHP] #!/usr/local ignore option?

2001-11-11 Thread GB Clark II
On Sunday 11 November 2001 04:49, Michael Rice wrote: Hi All, I have a kind of unique problem that I've had trouble finding information on around the net. I have a site that I pay a hosting company for that expects my php scripts to have #!/usr/local/bin/php at the beginning of each script

[PHP] PHP] Re: UPLOADING BLUES: Empty form variables when uploading

2001-11-11 Thread Sandra Rascheli
Hi Steven, Thanks a lot for answering. Have you uploaded files successfully with the GET method? I was wondering if the problem may be because I submit the form to itself and not to another PHP page. All the examples I see, the form gets submitted to a different php page. The strange thing in

[PHP] MIME format

2001-11-11 Thread jtjohnston
Can someone help? I'm trying to figure out how to attach my image.png that I create on the fly. This would work if I had mime text. What's wrong with this? How do I conver $image to mime format or ... how shlould I approach this problem? ?php ---snip--- ImagePNG($image); mail([EMAIL

[PHP] executing another php.script

2001-11-11 Thread David Tod Sigafoos
I am sure that I am just .. missing this .. From one script I wish to 'execute' another script. How is this done? Setting a link and clicking is not the answer .. one script loops through all the 'selected' rows and I want to 'execute' another script for each row .. can this be done? thanks

[PHP] User authentication problem.

2001-11-11 Thread CaMeL
I found a lot of scripts which regarding this user authentication. But most of them are using mysql for their userlist What if I got a server which have users in it, and I want to reuse the same list of users and password in the server. What should I do ? Thankyou Jian An -- PHP General

Re: [PHP] executing another php.script

2001-11-11 Thread Richard S. Crawford
I'm not clear on what it is that you are trying to accomplish. Could you restate your question, please? At 08:43 PM 11/11/2001, David Tod Sigafoos wrote: I am sure that I am just .. missing this .. From one script I wish to 'execute' another script. How is this done? Setting a link and

[PHP] emailing attachments

2001-11-11 Thread Don
Hi, I have a class that allows me to send e-mail with an attachment. I have a form that gathers information and I would like to allow the user to attach a file from his local drive. Is there a PHP routine that allows the user to browse his drive and choose a file? Thanks, Don

[PHP] php newbie - need advice

2001-11-11 Thread Scott Dudley
i'm new to php and need some advice. i have a site currently composed of static pages generated via a c program. i want to convert the site to php. the first page is an explorer-like table listing summary information. when a user clicks on a row in this table, they're taken to a detail page

[PHP] possible safe mode bug with opendir() ?

2001-11-11 Thread operator
When in safe mode shouldn't PHP check to see if the directory that is about to be opened with a opendir() function has the same UID as the PHP script itself, and fail if the UIDs do not match? Because in PHP 4.0.6 with safe_mode on, a PHP script owned by fred can open any directory owned by

RE: [PHP] emailing attachments

2001-11-11 Thread Martin Towell
it's HTML input type=file name= -Original Message- From: Don [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 3:37 PM To: php Subject: [PHP] emailing attachments Hi, I have a class that allows me to send e-mail with an attachment. I have a form that gathers information and

Re: [PHP] emailing attachments

2001-11-11 Thread Don
Thanks. I already tried that which allowed me to browse but... In my form, I have: input type=file name=filename My form line is : form method=POST name=apply action=result.html ENCTYPE=multipart/form-data Yet when I submit, and check the value of $filename in my PHP script, it is empty???

RE: [PHP] executing another php.script

2001-11-11 Thread Martin Towell
include file; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 3:44 PM To: [EMAIL PROTECTED] Subject: [PHP] executing another php.script I am sure that I am just .. missing this .. From one script I wish to 'execute' another script.

[PHP] how do the thing?

2001-11-11 Thread Galkov Vladimir
Good time of a day! well... as for me the construction... switch($action) { case ... .. } ...is not very elegant when number of cases over 40-60 or more and the only thing they must do is start one function (often with the same name). for example:

[PHP] Re: possible safe mode bug with opendir() ?

2001-11-11 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: When in safe mode shouldn't PHP check to see if the directory that is about to be opened with a opendir() function has the same UID as the PHP script itself, and fail if the UIDs do not match? From 4.1.0, optional GID check is available. Because in PHP 4.0.6

[PHP] Re: possible safe mode bug with opendir() ?

2001-11-11 Thread operator
But where user fred can opendir() a directory owned by user mary (underneath the open_basedir), that action doesn't even pass a UID check if the UIDs are supposed to match in safe mode in order for the action to be allowed. How would an optional GID check help? A. When in safe mode

Re: [PHP] php newbie - need advice

2001-11-11 Thread David Robley
On Mon, 12 Nov 2001 15:16, Scott Dudley wrote: i'm new to php and need some advice. i have a site currently composed of static pages generated via a c program. i want to convert the site to php. the first page is an explorer-like table listing summary information. when a user clicks on a

[PHP] Save to Desktop

2001-11-11 Thread Sharat Hegde
Hello, I need to capture the contents of a Form into a text file format and automatically allow the user to Save the file to his desktop. Here is what I am intending to do: * Capture the form contents and save to a temporary file. This works fine. * Provide some method of the user automatically

RE: [PHP] how do the thing?

2001-11-11 Thread Martin Towell
once you have read in the file and parsed it up, all you need to do then is to find the correct string to execute and call it using : eval($string); happy coding Martin T -Original Message- From: Galkov Vladimir [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 4:12 PM To:

[PHP] Question about using system call/gzip

2001-11-11 Thread Joelmon2001
Hello. I just want to confirm that if I use a system call to execute gzip, so I can zip a directory, the file can be decompressed by windows users for example, if I visit bleh.php and it compresses a directory /directory will that file that it creates, which I download, be able to be unpacked

[PHP] Re: possible safe mode bug with opendir() ?

2001-11-11 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: But where user fred can opendir() a directory owned by user mary (underneath the open_basedir), that action doesn't even pass a UID check if the UIDs are supposed to match in safe mode in order for the action to be allowed. How would an optional GID check help?

Re: [PHP] Question about using system call/gzip

2001-11-11 Thread David Robley
On Mon, 12 Nov 2001 16:28, [EMAIL PROTECTED] wrote: Hello. I just want to confirm that if I use a system call to execute gzip, so I can zip a directory, the file can be decompressed by windows users for example, if I visit bleh.php and it compresses a directory /directory will that file

Re: [PHP] Question about using system call/gzip

2001-11-11 Thread Joelmon2001
Gzip only compresses single files? So what if I want to compress a directory and have it download when a page is accessed? I thought gzip would allow this. To compress a specified directory when page.php is accessed. This is confusing. I tried the zend.com articles, too confusing to grasp. I

[PHP] Resetting ID in mySQL DB

2001-11-11 Thread Thomas Edison Jr.
Hi, I'm facing a problem. I made a simple DB with simple adding records in DB operation. I've even put up a JavaScript validation of the Form from where you add info. And yet, in the display table, there are many many blank fields. I don't know how they are generated. The Adding of info form

Re: [PHP] Question about using system call/gzip

2001-11-11 Thread David Robley
On Mon, 12 Nov 2001 16:51, [EMAIL PROTECTED] wrote: Gzip only compresses single files? So what if I want to compress a directory and have it download when a page is accessed? I thought gzip would allow this. To compress a specified directory when page.php is accessed. This is confusing. I

RE: [PHP] Resetting ID in mySQL DB

2001-11-11 Thread Jack Dempsey
say you have 100 records. you delete number 36. your db will then be ... 34 35 37 38 ... correct? after a delete, you could then say: update table set id_num=id_num-1 where id 36 and this would update all relevant records -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL

[PHP] Login verification

2001-11-11 Thread Ashley M. Kirchner
I want to make a login page in PHP, which will check the user/password against the system's user/password file (in my case, /etc/passwd and /etc/shadow.) With the machine running PAM, how can I have PHP do this? Keep in mind I don't need to modify anything, just verify the login. Once

[PHP] Re: Stripping IMG tags

2001-11-11 Thread _lallous
$string = preg_replace('/img[^]*/si', '', $string); Richard S. Crawford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... All I need to do is strip out IMG tags from strings; I don't want to strip out all of the HTML, just the IMG tags, so the strip_tags() function won't be adequate.

[PHP] mail() w/ mailing lists

2001-11-11 Thread _lallous
Hello, Is is advisable that I mail lots of users from a database via one call to mail() ? Or else, how do you think I should split the list and send my mails? Is there is a way to tell if the mail was returned because the email address was invalid? Thanks. -- PHP General Mailing List