Re: [PHP] Re: I suck at regular expressions!

2001-11-15 Thread Richard S. Crawford
Not quite. I have the same problem. At 11:36 PM 11/14/2001, Johan Holst Nielsen wrote: Richard S. Crawford wrote: I am trying to get the title of an html file... you know, the string between the title and /title tags... Here is the function I've got so far: function

[PHP] Re: how can I get the post content in php

2001-11-15 Thread Yorgo Sun
Hello Johan the program just can let me get the post string like my example I want post the xml file content to a php file, then I want get the post string that it's xml content. hehe, thanks for your help -- Yorgo Sun Project Manager Technology Dept. Tom.com Email:[EMAIL PROTECTED]

[PHP] I have tried ...

2001-11-15 Thread jtjohnston
For the record, I have tried: ?php //$temp = $name; session_name(TESTpostcard); session_start(); $temp = $name; session_register(name); $name = $temp; I have read: http://www.php.net/manual/en/function.session-register.php This is my problem:

Re: [PHP] Re: I suck at regular expressions!

2001-11-15 Thread Johan Holst Nielsen
Richard S. Crawford wrote: Not quite. I have the same problem. I tried at test on my localhost. Following works for me: $string = htmlheadtitleSometime i dont wanna know/title/headbody/body/html; if(eregi(title(.+)/title, $string, $arr)) { echo Title: .$arr[1]; } else { echo unknown

[PHP] Re: how can I get the post content in php

2001-11-15 Thread Johan Holst Nielsen
the program just can let me get the post string like my example I want post the xml file content to a php file, then I want get the post string that it's xml content. hehe, thanks for your help Did you solve your problem? I dont think i understand you, but i tries to give a little

[PHP] Re: how can I get the post content in php

2001-11-15 Thread Yorgo Sun
I think you understand my problem. I will use a client program to POST the XML data to a php file on the server base HTTP in php file will get the post request, the question is, how can i get the xml data in post request -- Yorgo Sun Project Manager Technology Dept. Tom.com Email:[EMAIL

[PHP] And ...

2001-11-15 Thread jtjohnston
And ... if this helps: http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/phpinfo.php Jtjohnston wrote: For the record, I have tried: ?php //$temp = $name; session_name(TESTpostcard); session_start(); $temp = $name; session_register(name); $name = $temp; I have read:

RE: [PHP] Session

2001-11-15 Thread Rudolf Visagie
The problem lies with the fact that you have a variable 'name' that gets posted in the form as well as a session variable 'name' that is passed to the script when it is executed again. As far as I remember the session variable supercedes the posted variable, so the session variable would

[PHP] Re: how can I get the post content in php

2001-11-15 Thread Johan Holst Nielsen
I think you understand my problem. I will use a client program to POST the XML data to a php file on the server base HTTP in php file will get the post request, the question is, how can i get the xml data in post request Hmm, I dont think I understand? Where do you want to do with the

[PHP] Re: how can I get the post content in php

2001-11-15 Thread Yorgo Sun
XML file is text file. If I open the file with php like call $fp, that is a long string with some special char. post method can send a long string to the server. how php can receive that long string is my problem. if can do that, php can parser the xml file send form remote computer. I want php

[PHP] multiple include

2001-11-15 Thread Briet Vincent
Hi all, I would like to do something like that : #ifndef _SYS_TYPES_H #include sys/types.h #endif Is it possible in php ? Thx poz

Re: [PHP] how can I get the post content in php

2001-11-15 Thread Andrey Hristov
$HTTP_RAW_POST_DATA (problems with 4.0.6 because in it some changes had been made). If the content type is known by PHP then this var is empty, otherwise you have the data in it. Works perfect with 4.0.0. I think that since 4.0.7 there is a ini option about that Regards, On Thursday 15

Re: [PHP] Re: how can I get the post content in php

2001-11-15 Thread Tamas Arpad
I think I saw on this list that there's a $HTTP_RAW_POST_DATA (or similar) varibale. Sorry the net is slow like hell at work, I can't search for more info. But I think if you search for raw on the general mailing list's archive you will find it. Arpi XML file is text file. If I open

Re: [PHP] how can I get the post content in php

2001-11-15 Thread Yorgo Sun
thinks I finded it by review the soure code. try it's empty. then think have and other way. so got your explain. I just try the older version or waitting the php4.1.0 -- Yorgo Sun Project Manager Technology Dept. Tom.com Email:[EMAIL PROTECTED] Mobile:13701243390 Phone:65283399-121 TomQ

[PHP] Re: I suck at regular expressions!

2001-11-15 Thread _lallous
try that! ? $mem=' !doctype html public -//W3C//DTD HTML 4.0 Transitional//EN html head title New Document /title meta name=Author content= meta name=Keywords content= meta name=Description content= /head body /body /html '; if (preg_match('/title(.+?)\/title/is', $mem, $matches)) { echo

[PHP] pls help: add new extension to PHP (rpm) on RedHat

2001-11-15 Thread S.T. Wong
Hello, I'm using PHP 4.0.4pl1-9 on RedHat 7.1. The software was installed using rpm. I'd like to add the mhash extension without re-installing the entire PHP package from source. So i try following steps: - install mhash from source - obtain PHP source directory, then cd ext/mhash phpize

[PHP] Serious problem with Cookies..

2001-11-15 Thread PHPGalaxy.com
I started an affiliate program to sell my scripts, and it uses cookies for tracking.. I didnt know it at the time, but as soon as the web browser's closed, the cookie info is gone. g! I need it to stay there *permanently*! =) Here's the code I have no for both setting and retrieving..

[PHP] Re: Serious problem with Cookies..

2001-11-15 Thread _lallous
you must set the cookie's expiry time! of-the manual: setcookie (TestCookie, Test Value); setcookie (TestCookie, $value,time()+3600); /* expire in 1 hour */ setcookie (TestCookie, $value,time()+3600, /~rasmus/, .utoronto.ca, 1); Phpgalaxy.Com [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Re: Serious problem with Cookies..

2001-11-15 Thread PHPGalaxy.com
yeah I saw that bit on there, but I was led to believe tha by leaving it out, it would make the cookie permanent...I see thats not true =) so what would I do to make this permanent? or would I just set it for the highest time-limit possible? =) _lallous wrote: you must set the cookie's

Re: [PHP] NO CARGA PAGINA PHP

2001-11-15 Thread Ricardo Núñez
Supongo que es PHP 4: Chequea el httpd.conf por: IfModule mod_php4.c AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 /IfModule Espero que este sea el problema. Mensaje citado por: Daniel Geldres Castro

Re: [PHP] Re: Serious problem with Cookies..

2001-11-15 Thread Magnus
Den 01-11-15 13.20, skrev PHPGalaxy.com [EMAIL PROTECTED]: yeah I saw that bit on there, but I was led to believe tha by leaving it out, it would make the cookie permanent...I see thats not true =) so what would I do to make this permanent? or would I just set it for the highest time-limit

Re: [PHP] Re: Serious problem with Cookies..

2001-11-15 Thread PHPGalaxy.com
well yeah, thats always true..but this's at least as good as it gets =) ya suppose there's any limit on how many years I can set it for? hell, I'll just set it for 10 years and that'll be good enough =) Magnus wrote: Den 01-11-15 13.20, skrev PHPGalaxy.com [EMAIL PROTECTED]: yeah I saw

Re: [PHP] Re: Serious problem with Cookies..

2001-11-15 Thread _lallous
Yes, I guess you can't make it foreever but you can give it a higher expiry date. Phpgalaxy.Com [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... well yeah, thats always true..but this's at least as good as it gets =) ya suppose there's any limit on how many years

[PHP] fsockopen - whats the syntax of POST?

2001-11-15 Thread Stefan
First: can I do a POST-request with fsockopen? If yes, then: whats the syntax for POST-requests? I was happy if someone could point me to a good documentation or so Thanks in advance Stefan Rusterholz, [EMAIL PROTECTED] -- interaktion gmbh Stefan Rusterholz

RE: [PHP] Re: how can I get the post content in php

2001-11-15 Thread JSheble
When POST data is sent to a page, it's as if somebody typed the text into a textarea and hit a submit button. Even though this is being done programmatically, the POST method will behave the same. SOmebody in their (your)code will have to write something similiar to: $postData = xVar= .

[PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Rob van Jaarsveld
Hi there The following problem occurs in my scripts: A large page is generated with data from a MySQL database. The various paragraphs inside this page have variable, internal links, also extracted from the database. Example: a name=\$value\/a Let's assume that $value represents FOO. Now i

RE: [PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Boget, Chris
A large page is generated with data from a MySQL database. The various paragraphs inside this page have variable, internal links, also extracted from the database. Example: a name=\$value\/a Let's assume that $value represents FOO. Ok Now i want to take the value of this variable to post

Re: [PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Rob van Jaarsveld
Thanks for the quick reaction. When is $value assigned a value? Before or after the script prints out the form action= line? This $value is somewhere within the form page ($PHP_SELF). If i put $PHP_SELF?#FOO in the script, it all works well. But $value is variable, so the content depends on

php-general Digest 15 Nov 2001 14:41:10 -0000 Issue 996

2001-11-15 Thread php-general-digest-help
php-general Digest 15 Nov 2001 14:41:10 - Issue 996 Topics (messages 74660 through 74711): Controlling length of table data 74660 by: Gaylen Fraley 74661 by: Martin Towell 74666 by: Johan Holst Nielsen PHP 4.0.6 $PHP_SELF empty? 74662 by: John Steele

RE: [PHP] fsockopen - whats the syntax of POST?

2001-11-15 Thread Daniel Kushner
Hi Stefan, Maybe this HTTPPost class will help you. http://phpclasses.upperdesign.com/browse.html/package/375 --Daniel -Original Message- From: Stefan [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 8:53 AM To: PHP Subject: [PHP] fsockopen - whats the syntax of POST?

RE: [PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Boget, Chris
When is $value assigned a value? Before or after the script prints out the form action= line? This $value is somewhere within the form page ($PHP_SELF). So it is a value that the user sets? After the script runs and the HTML output generated? $PHP_SELF?#FOO in the script, it all

Re: [PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Rob van Jaarsveld
It depends on where value is coming from. If it's coming from the script server side, then you just need to make sure that $value is set before the line form action= gets printed. If it's coming from the client side, there may be other problems... $value is defined in the server-side script,

Re: [PHP] Re: I suck at regular expressions!

2001-11-15 Thread Richard S. Crawford
Actually, that does work when I'm using a string with that content. The only thing I can figure is that there is a problem with the way the the file is being read. Hmm. Ah, well. I'll make it work. Where's my hammer? At 12:18 AM 11/15/2001, Johan Holst Nielsen wrote: Richard S. Crawford

[PHP] Quick question about no result

2001-11-15 Thread Dan McCullough
I want to show a default piece of information if my query returns no result, and what I mean by no result is the query for a store in a certain state doesnt exist. thanks dan = Dan McCullough --- Theres no such thing as a

RE: [PHP] I suck at regular expressions!

2001-11-15 Thread Brian Paulson
Been Using this Function for some time and works real well with two exceptions 1. if the title line has a CR in it it will no get the title Example: titleThis is a bad Title/title 2. If there are any other tags in the title it will fail. ? function title($file) {

RE: [PHP] Jump to internal link after $PHP_SELF post

2001-11-15 Thread Boget, Chris
It depends on where value is coming from. If it's coming from the script server side, then you just need to make sure that $value is set before the line form action= gets printed. If it's coming from the client side, there may be other problems... $value is defined in the server-side

[PHP] First CGI, then PHP

2001-11-15 Thread Berthold
Hi! Is it possible to add PHP-code into the html-templates of ht://dig? The problem is the execution after or before the CGI-prog has run. Of course I need 'after'. But how can I do that? What is the default order in a builtin-PHP? -- Berthold (live long and prosper...) -- PHP General

[PHP] Newsgroup?

2001-11-15 Thread Christopher Raymond
Does anyone know: What's the deal with the newsgroup version of this list? I'm using news.php.net as the news server address, but all I get are error messages. Is this newsgroup still functional? Christopher Raymond -- O A S I

Re: [PHP] Session

2001-11-15 Thread George Whiffen
For the record: You can control the order of precedence of variable reading through a php.ini setting, variable_order, (replaces gpc_order). I believe the default is EGPCS i.e. environment, get, post, cookie, session. The last in the list takes precedence, i.e. session variables normally have

Re: [PHP] Newsgroup?

2001-11-15 Thread Kurt Lieber
On Thursday 15 November 2001 07:41 am, Christopher Raymond wrote: Is this newsgroup still functional? Yep -- I just checked and it's working fine for me. I'm using news.php.net connecting on port 119 (default NNTP port) --kurt -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] I suck at regular expressions! -- not as bad, now

2001-11-15 Thread Richard S. Crawford
Thanks to everyone who helped me figure this out. I foolishly didn't realize that I was using the htmlspecialchars() function on the string that I was pulling from the file, but not accounting for that in the regexp. So, what I was getting was: lt;titlegt;BLAH BLAH

[PHP] waiting a long time for a XML file

2001-11-15 Thread Eric Trezza
Hello, I need some help regarding the creation of a text file which is a XML file. Actually, PHP creates the file without any problem and the XML format is fine. My only trouble is that it take on average 3 or 4 minutes to perform the task. Do you have any idea why it takes so long ?? Thanks

[PHP] Re: FTP Clients

2001-11-15 Thread George Whiffen
I kind of like Leech FTP, http://stud.fh-heilbronn.de/~jdebis/leechftp/downloads.html George Rudi Ahlers wrote: Sorry for the totally OT question, but can anyone recommend a good, FREE, FTP client for windows? I now have to pay for AceFTP aswell, which used to be free. Thank you Rudi

[PHP] Re: Checkboxes / Undefined Variables

2001-11-15 Thread Richard Lynch
[EMAIL PROTECTED] wrote: In am HTML form, checkboxes NOT checked are not passed to the PHP script called by the form. Therefore, if $name_of_chechbox_3 is not passed but it's used in the PHP script, it results in Warning: Undefined Variable. In am HTML form, checkboxes NOT checked are

[PHP] Re: Function Call Line Number

2001-11-15 Thread Richard Lynch
Jason G. wrote: Does anyone know of a way, that from within a function, you can determine what line number and file the function was called on? Cannot be done with existing built-in PHP functions... Feel free to add that feature to the PHP source and contribute it :-) I did try: function

[PHP] Re: array_unique() workaround?

2001-11-15 Thread Richard Lynch
Spunk S. Spunk III wrote: I'm working on a script that needs array_unique() but my host is using 4.0.4 and it's broken in that build. Does anyone have a good workaround for this? I can wait for my host to upgrade but if I release this code, it would be better to have the workaround... I

[PHP] Re: Multiple .ini-files for PHP

2001-11-15 Thread Richard Lynch
Stefan wrote: Is there a way to have different .ini-files for each VirtualHost? Apache is used as webserver Not really really, but you *CAN* do Apache's include (#include? Include? ???...) There's *some* way of including other files anyway, even if I'm not enough of a guru to know what it

[PHP] Anyone ever done this - sort a multi-dimensional array

2001-11-15 Thread Richard S. Crawford
Of the type... $array[0][0] = !row of c's; $array[0][1] = ; $array[1][0] = row of a's; $array[1][1] = ; $array[2][0] = a row of b's; $array[2][1] = ; such that you sort on the value of the y-column? In this case, it would end

[PHP] Re: Newbie question pleeze help

2001-11-15 Thread Richard Lynch
Rvb Pixels wrote: Hi, I'm new to the list and I have a problem with PHPNUKE 5.2 and W98. After installing some categories and links in the Web Links section, and then clicking on one of the links created I keep getting the following message error in W98SE. PHP caused an invalid page

[PHP] apache+php overloading when user clicks many times on the same link

2001-11-15 Thread Peter.Frlicka
Hello. What does apache + php do if the user refreshes a page 10 times in a while before the scripts finishes? do all 10 .php scripts finish or do the first 9 get aborted? how can i solve the problem that when someone clicks a lot on a link (always the same link) the server gets overloaded

[PHP] Re: Array problrem!

2001-11-15 Thread Richard Lynch
De Necker Henri wrote: Hi there. I have an array like this : 1.2 , 0.3 , 0.5 , 1.6 , 0.3 I output like this: while($data_array[$j]){ echo br$data[$j] ; $j++ ; } My output is like this : 1 , 0 , 0 , 1 , 0 The values in the db are floats and are read correctly ! Why

Re: [PHP] Anyone ever done this - sort a multi-dimensional array

2001-11-15 Thread Steve Cayford
You can roll your own fairly easily: function mycmp($a,$b) { return strcmp($a[1],$b[1]); } usort($array, 'mycmp'); ...something like that at any rate. -Steve On Thursday, November 15, 2001, at 10:07 AM, Richard S. Crawford wrote: Of the type... $array[0][0] = !row of c's;

Re: [PHP] Re: silly question

2001-11-15 Thread Rodrigo Peres
First, thak's all for the answers. I didn't understood what's happend, but I've solved the problem using a Header(location: .$PHP_SELF.?celebID=.$ID) after the update command, passing the same ID I used to update on it. I don't know if it is the best way, but now I have the refresh of the page.

[PHP] Re: High-Volume Newsletter Techniques?

2001-11-15 Thread Richard Lynch
Sondra Russell wrote: Yes, I saw the discussion a few days earlier on this topic, but I'm But did you check the archives for the same discussion last month, the month before, the month before that, ... :-) wondering if there is still some unmined wisdom out there about building a script

[PHP] Re: Time out for file()?

2001-11-15 Thread Richard Lynch
Jean-Arthur Silve wrote: Hi ! I use the file function for accessing to pages on another server. It works perfectly. But if the server does not respond or is too long to send datas, the file function wait too long.. Is there a way to tune the time out ?? I would like that id the

[PHP] Re: Sending mail without using mai() ?

2001-11-15 Thread Richard Lynch
Jaime Iniesta Aleman wrote: Hi, is it possible to send SMTP mail if the server where are my pages hosted forbids the use of the mail() function ? I mean, by opening a sockets connection to an external SMTP server and writing the commands there directly... Yes, *IF*: The ISP was not smart

[PHP] Crash Apache load php module DSO

2001-11-15 Thread Lloret Romero Marcos
hi, i have installed php406 over nt(sp6) with apache1.3.9. Apache crashes when i try to loadmodule php. it says something about DSO module. thanks, marcos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Re: gd-lib and libjpeg issues

2001-11-15 Thread Richard Lynch
Bill Brennick wrote: ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.22 --with-xml --with-zlib --with-gd=/usr/lib --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib For better or worse, configure does *NOT* crap out if you specify --with-xxx-dir and it can't find it.

[PHP] Re: Check if ip is with a network block

2001-11-15 Thread Richard Lynch
Paul Wolstenholme wrote: Greetings, I'd like to check to see if an ip is within an ip cidr style network block (192.75.242.157 with 192.75.242.0/23). Initially, I started off with some code derived from some perl code that I found (code below). However, the bitmask calcution did not work

RE: [PHP] First CGI, then PHP

2001-11-15 Thread Mark Roedel
-Original Message- From: Berthold [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 9:11 AM To: PHP General Subject: [PHP] First CGI, then PHP Is it possible to add PHP-code into the html-templates of ht://dig? The problem is the execution after or before the

[PHP] Re: Quick question about no result

2001-11-15 Thread Richard Lynch
Dan McCullough wrote: I want to show a default piece of information if my query returns no result, and what I mean by no result is the query for a store in a certain state doesnt exist. http://php.net/mysql_num_rows (Or sybase_num_rows, or odbc_num_rows, or whatever your database is.) If 0

RE: [PHP] Session

2001-11-15 Thread Rudolf Visagie
Yep, 'variables_order'. -Original Message- From: George Whiffen [mailto:[EMAIL PROTECTED]] Sent: 15 November 2001 06:30 To: [EMAIL PROTECTED] Subject: Re: [PHP] Session For the record: You can control the order of precedence of variable reading through a php.ini setting,

[PHP] Re: First CGI, then PHP

2001-11-15 Thread Richard Lynch
Berthold wrote: Is it possible to add PHP-code into the html-templates of ht://dig? The problem is the execution after or before the CGI-prog has run. Of course I need 'after'. But how can I do that? No. Actually, Apache 2.0 was *SUPPOSED* to have stacked handlers so that CGI (Perl)

[PHP] Re: Newsgroup?

2001-11-15 Thread Richard Lynch
Christopher Raymond wrote: What's the deal with the newsgroup version of this list? I'm using news.php.net as the news server address, but all I get are error messages. What error messages are you getting? You can't *POST* through the newsgroup -- Reply via email to [EMAIL PROTECTED], and

[PHP] Re: FTP Clients

2001-11-15 Thread The Big Roach
WS-FTP LE works for me. I've used it for years now. You can find it at Download.com Bunch of stuff there. Rudi Ahlers [EMAIL PROTECTED] wrote in message 012e01c16d53$5b582120$0c00a8c0@camelot">news:012e01c16d53$5b582120$0c00a8c0@camelot... Sorry for the totally OT question, but can anyone

[PHP] Re: waiting a long time for a XML file

2001-11-15 Thread Richard Lynch
Eric Trezza wrote: I need some help regarding the creation of a text file which is a XML file. Actually, PHP creates the file without any problem and the XML format is fine. My only trouble is that it take on average 3 or 4 minutes to perform the task. Do you have any idea why it takes so

[PHP] PHP FRAMES Question

2001-11-15 Thread Miles Thompson
This has probably been dealt with before, but I'm unable to get my link to open in the target frame, it always opens in the same frame. This line of code: printf(a href=\ %s?member_id=%s target=sub_detl \ %s /a \n, $target_url, $myrow[member_id], $myrow[member_id]); typically expands, when

Re: [PHP] PHP FRAMES Question

2001-11-15 Thread Sam Masiello
In your printf statement, you are targetting sub_detl whereas in your frameset you name the frame sub_dtl. Naturally, these values should match. HTH Sam Masiello Software Quality Assurance Engineer Synacor (716) 853-1362 X289 [EMAIL PROTECTED] - Original Message - From: Miles

[PHP] How to compile PHP with cygwin?

2001-11-15 Thread GRI
Hi I wonder if anyone have managed to compile PHP with cygwin. I get several errors when doing this. I also wonder if I intend to make a dll to extend PHP for windows, should I then compile PHP with cygwin or with MS Visual C++? Thanks -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] PHP FRAMES Question

2001-11-15 Thread Miles Thompson
Richard, Thanks. I missed that completely. Miles At 09:47 AM 11/15/01 -0800, Richard S. Crawford wrote: Try: printf(a href=\%s?member_id=%s\ target=\sub_detl\%s/a\n,$target_url, $myrow[member_id],$myrow[member_id]); The target attribute must be outside of the quotes which contain the URL

[PHP] Re: How to compile my own PHP extension in Windows?

2001-11-15 Thread Richard Lynch
Gri wrote: Does anyone know how to compile a php extension in windows.. in linux it is simple.. just to install php source and compile the extension. it doesn´t work in windows. You'll need MSVC++ 6.x or higher, and a whole lot of patience... There's some configuration file or other

RE: [PHP] The url of the last site?

2001-11-15 Thread Oosten, Sjoerd van
You could process the form in the same file form action : ? print PHP_SELF; ? and in the header of the page if ($Submit){ // YOUR ACTION HERE } Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl

RE: [PHP] The url of the last site?

2001-11-15 Thread Jon Haworth
It's in the $HTTP_REFERER variable (speeling mistake intentional) Be warned, though - not every browser supplies this in every circumstance. Cheers Jon -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: 15 November 2001 17:55 To: 'PHP User Group' Subject: [PHP]

[PHP] Re: apache don´t understand php!!----¡¡apache no entiende php!!

2001-11-15 Thread Richard Lynch
Alejandro wrote: I have a problem:I have a php page wich runs well when I run it, but when I run a html page and links the php file, the source code is seen on the screen. It´s like apache wouldn't understand php!!. Any ideas? Thanks If the file ends in .html, and you have not used AddType

[PHP] Re: Newsgroup?

2001-11-15 Thread Henrik Hansen
[EMAIL PROTECTED] (Richard Lynch) wrote: Christopher Raymond wrote: What's the deal with the newsgroup version of this list? I'm using news.php.net as the news server address, but all I get are error messages. What error messages are you getting? You can't *POST* through the newsgroup

Re: [PHP] The url of the last site?

2001-11-15 Thread Miles Thompson
Brandon, Go to Juli Meloni's thickbook page, there is a tutorial there on PHP forms which display error message. With a bit of tweaking it's exactly what you want. http://www.thickbook.com Miles Thompson At 09:55 AM 11/15/01 -0800, Brandon Orther wrote: Hello, I am trying to have a script

[PHP] Another POST case?

2001-11-15 Thread Raymond
Hi! I have this form using postmethod: input type=checkbox name=cheese input type=checkbox name=pepperoni input type=checkbox name=ham Then I'm trying to mail the result with the mail() function. /* recipients */ $to = [EMAIL PROTECTED] ; /* subject */ $subject = Order; /* message */

Re: [PHP] Another POST case?

2001-11-15 Thread Mike Eheler
input type=checkbox name=toppings[] value=cheese / input type=checkbox name=toppings[] value=pepperoni / input type=checkbox name=toppings[] value=ham / ? if (count($toppings) 0 is_array($toppings)) { $strtoppings = implode(', ',$toppings); $msg = The customer wants:

[PHP] EREG_REPLACE?

2001-11-15 Thread Oosten, Sjoerd van
Hello, ive got a problem I want to replace this string: a class=mn href=whatever is here should be left her and is variablethis must also be variable/a by: font size=2a class=mn href=whatever is here should be left her and is variablethis must also be variable/a/font So the two

[PHP] Re: Including declare statements that contain variables

2001-11-15 Thread George Whiffen
Well you have an interestingly different approach! Personally I kind of like either having the SQL statements in-line with the rest of the code or functions that retrieve data for that particular query e.g. function get_students($class) { Anyway based on your approach: 1. You could still

[PHP] require or include

2001-11-15 Thread Oosten, Sjoerd van
Hello list, I'm just wandering what's better, require or include. Greetings, Sjoerd van Oosten Digitaal vormgever [EMAIL PROTECTED] Datamex E-sites B.V. http://www.esites.nl Minervum 7368 Telefoon: (076) 5 730 730 4817 ZH BREDA Telefax: (076) 5 877

Re: [PHP] require or include

2001-11-15 Thread Mike Eheler
It all depends on the purpose. With require, the script will die on the spot if the file is not found. Also, the code will always be included in the file.. so take this example: file.php: ? echo Hello World!; ? requiretest.php: ? if (FALSE) { require('file.php'); } ? The

[PHP] Books for PHP and MySQL Class

2001-11-15 Thread Chris Lott
I'll be teaching a web development class in the Spring in which I plan to focus on PHP and MySQL as primary tools. These will be students who have experience with HTML And web design, but most will have no experience with programming at all. I need recommendations for book(s) that will serve

[PHP] Image Upload, renaming question

2001-11-15 Thread Joe Van Meer
Hi there, I have an upload form on my website that works great, however I have come to a roadblock...how the heck do I rename the copied file? Everytime I upload an image it overwrites the old one with the new. The code below uploads the file and displays the following: Your photo has been

RE: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Chris Bailey
PHP and MySQL Web Development by Welling and Thomson, from SAMS. ISBN 0-672-31784-2. An easy read, but covers everything you'd need. I'm a little biased as a reviewer for your particular needs, since I've been coding for many years, and thus skipped a bunch of the intro PHP language chapters,

Re: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Richard Baskett
So far the best books that I have found for PHP and MySQL are: PHP: Developer's Cookbook by Sterlings Hughes (SAMS) MySQL/PHP Database Applications by Jay Greenspan Brad Bulger (MT books) I believe another person on our mailing list is putting out a book soon... hopefully maybe he'll rear his

[PHP] Re: Books for PHP and MySQL Class

2001-11-15 Thread Richard Lynch
Chris Lott wrote: I'll be teaching a web development class in the Spring in which I plan to focus on PHP and MySQL as primary tools. These will be students who have experience with HTML And web design, but most will have no experience with programming at all. I need recommendations for

[PHP] Supplied argument is not a valid MySQL result

2001-11-15 Thread Dan McCullough
Warning: Supplied argument is not a valid MySQL result resource in /home/sites/projects.heathermccullough.com/web/copeland/product.php on line 61 Here is the code, I fixed it once, and I cant figure out why it keeps returning. if ($submit) { $sql = (SELECT * FROM store WHERE state = '$State'

[PHP] Re: require or include

2001-11-15 Thread Richard Lynch
Sjoerd Van Oosten wrote: I'm just wandering what's better, require or include. Neither is better Now that PHP is being compiled to byte-code before execution, I don't *THINK* there's any real difference... If there *IS* a difference, it's about *WHEN* the code gets evaluated: require would

[PHP] Re: Image Upload, renaming question

2001-11-15 Thread Joe Van Meer
Thx Richard, I would like the files to all be dumped into one directory, each with a unique name. Then I will create a path and store that in the db. Thx for the ideas, I will check them out and get back to youvia this thread. Cheers Joe:) Richard Lynch [EMAIL PROTECTED] wrote in message

[PHP] Re: executing another php.script

2001-11-15 Thread David Tod Sigafoos
Steve, Thanks for the reply .. but you miss the point (which i probably did not explain well). I already have a script called x.php. IT gets called from links with all the info needed. I have an instance where there will be no interaction between a user so no 'clicking' of the link will

Re: [PHP] Supplied argument is not a valid MySQL result

2001-11-15 Thread Mike Eheler
Because you are enclosing your $sql string within () brackets, $sql is being set a boolean value, not the value of the string. Change it to $sql = SELECT * ... '$group_id'; -Mike Dan McCullough wrote: Warning: Supplied argument is not a valid MySQL result resource in

[PHP] Re: executing another php.script

2001-11-15 Thread David Tod Sigafoos
Mike .. thanks for trying .. but that simply is not useful. On Mon, 12 Nov 2001 10:18:34 -0500, [EMAIL PROTECTED] (Mike Harvey) wrote: Just include(script2.inc) in your loop. David Tod Sigafoos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am sure that I

[PHP] Re: Supplied argument is not a valid MySQL result

2001-11-15 Thread Richard Lynch
Dan McCullough wrote: Warning: Supplied argument is not a valid MySQL result resource in /home/sites/projects.heathermccullough.com/web/copeland/product.php on line 61 Here is the code, I fixed it once, and I cant figure out why it keeps returning. if ($submit) { $sql = (SELECT * FROM

Re: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread The Big Roach
I think a better strategy would be to introduce them to the basics of databases in general as opposed to trying to teach MySQL to them. A good primer on DB's would be Databases for mere mortals by ... ? some guy! But the cover is orange/brown and not very thick. Can't find it here... where did I

RE: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Mark Saunders
That would be by Michael Hernandez -Original Message- From: The Big Roach [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 4:32 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Books for PHP and MySQL Class I think a better strategy would be to introduce them to the basics of

[PHP] Re: executing another php.script

2001-11-15 Thread Richard Lynch
David Tod Sigafoos wrote: 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? From what you say

Re: [PHP] Re: executing another php.script

2001-11-15 Thread Andrew Brampton
How about you do readfile('http://server.com/yourPHP.php'); That just opens that file, ie the same as clicking it... Andrew - Original Message - From: David Tod Sigafoos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 15, 2001 8:42 PM Subject: [PHP] Re: executing

Re: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Chris Lott
On 15 Nov 2001, [EMAIL PROTECTED] (The Big Roach) spake thusly: I think a better strategy would be to introduce them to the basics of databases in general as opposed to trying to teach MySQL to them. A good primer on DB's would be Databases for mere mortals by ... ? some guy! But the cover is

[PHP] What version did $PHP_SELF still work?

2001-11-15 Thread John Steele
Hello, I'm trying this again with a different header. After installing PHP4.0.6 $PHP_SELF is set (empty), and this is breaking many scripts of mine (and others). I can't seem to find any mention of this in the commented manual, or anywhere else for that matter. I can try and install an

  1   2   >