[PHP] trying to get a certain num of rows in mysql

2002-10-13 Thread Pablo Oliva
When doing a select query, is there any way to specify which rows you want selected, as in rows 1 through 40, and then 40 - 80 on the next query. I've been searching through the manual but can't find anything. Should this be done through a php script instead, or is there a native (mysql)

[PHP] Predefined variables not set?

2002-10-13 Thread Miles
When trying to get $_SERVER[QUERY_STRING] I am getting 'Undefined index QUERY_STRING' error If there is a query string, e.g. www.site.com/index.php?hello_world then it IS defined. So it seems that PHP is complaining about undefined variables, rather than just outputting nothing. How can I

[PHP] Upload Problem

2002-10-13 Thread tony
I posted User Upload and with no advice I attempted to use the sources i could find and came up with the following: while (file_exists($i.tab)) { $i ++; } $destfile = $i; $destfile .= tab; stripslashes($userfile); copy($userfile, /uploads/ . $destfile); chdir(/uploads); $lines = file($destfile);

[PHP] A little help needed, I cant figure!

2002-10-13 Thread Randum Ian
Morning all, I am currently working on a project for my client that involves an archive of Artist Singles and Album charts dating from the 1960's to the current day. I would like to be able to put them into a database but I am unsure of which database to use (I don't mind learning one if it

Re: [PHP] trying to get a certain num of rows in mysql

2002-10-13 Thread Marek Kilimajer
Look for LIMIT in the manual Pablo Oliva wrote: When doing a select query, is there any way to specify which rows you want selected, as in rows 1 through 40, and then 40 - 80 on the next query. I've been searching through the manual but can't find anything. Should this be done through a php

RE: [PHP] A little help needed, I cant figure!

2002-10-13 Thread John W. Holmes
[snip] For example I intend to have over 4,000 different charts covering well over 6,000 artists and over 26,000 singles and album titles. Could mySQL and PHP cope with this demand? Yes, easily. Make sure your tables are properly indexed. I thought about having a table for Artists, one for

RE: [PHP] newline in string

2002-10-13 Thread John W. Holmes
I have loaded an html file into a string. How can I search the string for newlines/linefeeds? I know they are there, because if I echo the string and view source in the browser, some tags are on new lines. Example: html head /head And do what when you find them? If you just want to

[PHP] getimagesize() with ftp-url?

2002-10-13 Thread Stefan Wessman
Hi! Can anyone tell me if the getimagesize() function is supposed to work with ftp-url's? The PHP Manual states URL support was added in PHP 4.0.5, but maby that is supposed to mean http-url's only? The following is an expample of how i would like to be able to use getimagesize(): ?php

RE: [PHP] trying to get a certain num of rows in mysql

2002-10-13 Thread Timothy J Hitchens
Look at limit... eg Select * from xyz limit 1,5 Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Pablo Oliva [mailto:[EMAIL PROTECTED]] Sent: Sunday, 13 October 2002 8:44 AM To: [EMAIL PROTECTED] Subject: [PHP] trying to get a certain num

Re: [PHP] =.jpg from another URL with PHP=

2002-10-13 Thread Anthony Ritter
Thanks to all for your respones to my inquiry. I placed the PHP script to open the .jpg from another URL in another file and then inserted the HTML IMG tag to reference that file. The result was that it outputted a small sqaure with a red x - but no image of the map. Any advice would be

Re: [PHP] Upload Problem

2002-10-13 Thread Chris Hewitt
[EMAIL PROTECTED] wrote: Warning: Unable to open 'C:\\My Documents\\lyrics\\C_DTBS\\SLIME.TXT' for reading: Has the webserver got permission to read this file? It does not seem to be under the document root. No such file or directory in /home/tabzilla/public_html/doadd.php on line 89 Is

Re: [PHP] POST and GET variables don't work

2002-10-13 Thread Jennifer Swofford
BTW, disregard my comment about GET... I confused myself. Zzz. Jen Try: $_Post[name]; or $HTTP_POST_VARS[name]; In new PHP version, register_globals is set to off by default, which is why $name isn't working for you. Although, I'm surprised GET isn't working Jen I've just

Re: [PHP] Predefined variables not set?

2002-10-13 Thread Chris Hewitt
Miles wrote: than just outputting nothing. How can I fix this? I've had no problems until i reinstalled php today... register_globals? HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php cgi question

2002-10-13 Thread David Cook
Just a quick addition, both the submit/link were very basic, they both worked like this $location = /cgi-bin/getmailtest.cgi; // $location = getmail.php; echo $locationbr; print(a href=$locationClick here to test the cgi/abr\n); print(form name=form1 method=post action=$location); print(press

Re: [PHP] PHP in crontab job

2002-10-13 Thread Juhan Kundla
Ühel ilusal päeval [11-10-2002 20:48] kirjutas Sharat Hegde: Hello John, Thanks for the help. I was able to solve this. Thanks Marek for your help too in giving the same solution. The problem was with the crontab command not having the full path to php. Silly that a command line on the

RE: [PHP] How to navigate backwards in PHP ???

2002-10-13 Thread John W. Holmes
Maybe keep a record in the session of the URLs the user has gone to. Just don't store the URLs with a hash-mark in them. Store them as an array and it'd be easy to make a back like by just using the next to last or last element of the array... ---John Holmes... -Original Message-

[PHP] User Upload

2002-10-13 Thread tony
How would I go about allowing a user to upload a file which I then read and store its contents in a mysql database and then delete the file, or any more efficient method. Any help at all would be great. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: $html_code .= include (filetoinclude.txt);

2002-10-13 Thread CJ
$html_code = $html_code.include(filetoinclude.txt); Research And Development wrote: Should this work? $html_code .= include (filetoinclude.txt); I am populating a variable with html to be printred later as usual: $html_code .= html. But I have some static html files that I want

[PHP] Re: $html_code .= include (filetoinclude.txt);

2002-10-13 Thread Shawn McKenzie
function file_get_contents($filename) { $fp = @fopen($filename, r); if (!($fp)) { return 0; } while (!feof($fp)) { $temp .= fread($fp, 4096); } return $temp; } and then: $html_code = file_get_contents(filetoinclude.txt); HTH -Shawn Research And

Re: [PHP] POST and GET variables don't work

2002-10-13 Thread Oscar F
Most likely you have register_globals set to off on your php.ini. Change this to register_globals = on (or true, or yes, either one should). If you dont want to do that, Try with $_GET['name'] or $_POST['name']. HTH. Oscar F.- Andres Olarte wrote: I've just built PHP from source

Re: [PHP] User Upload

2002-10-13 Thread Stephen
There are many ways. I'd suggest setting up a folder where the user uploads the file (using the FTP commands in PHP) then setting up some sort of admin cp that gets a list of the files from the folder, displays them, then you click it. If you like it or whatever, you can click a save link which

Re: [PHP] An small SQL problem

2002-10-13 Thread Davy Obdam
Hi Brad, Oooops. I think i better go and read your excelent book MySQL/PHP database applications agian.. Best regards, Davy Obdam mailto:[EMAIL PROTECTED] Brad Bulger wrote: what database are you using? because the answer is different, depending. on postgres, for example, which

RE: [PHP] html form array

2002-10-13 Thread Roger Thomas
try this (noticed that I've changed $foo to $_POST[foo]. after all we're livin in globals off rite? ) ? if ($_POST[submit]) { print submittedBR; for($i=0;$isizeof($_POST[foo]);$i++) { print $_POST[foo][$i].BR; } } else { ? form action=? echo $_SERVER[PHP_SELF] ? method=post

Re: [PHP] newline in string

2002-10-13 Thread Jason Wong
On Sunday 13 October 2002 17:24, Shawn McKenzie wrote: I have loaded an html file into a string. How can I search the string for newlines/linefeeds? I know they are there, because if I echo the string and view source in the browser, some tags are on new lines. Example: html head /head

[PHP] Re: syntax error on mysql select statement

2002-10-13 Thread Coskun SUNALI
SELECT * FROM ad AS t1 Where is the table? Should be like: SELECT ad AS t1 FROM table_name Where .. Limit 0,n Coskun SUNALI / Turkey Pablo Oliva [EMAIL PROTECTED] wrote in message 000101c2726e$c506ee50$6a6c0444@cr8tivewerk">news:000101c2726e$c506ee50$6a6c0444@cr8tivewerk... Can anyone

Re: [PHP] Upload Problem

2002-10-13 Thread Sascha Cunz
Hi, as far as i can follow you, you want to: 1. copy a file from position a to position b. 2. read it from position b. 3. and delete it at position b. Why not read it directly from position a? So what about: $content = implode(br, file($userfile)); Anyway: You should initialize $i in

Re: [PHP] php cgi question

2002-10-13 Thread Marco Tabini
Without seeing your code... only one guess: what are the permissions on the file like? When you're running the script from the web server, you're running it as the user under which the web server is running (usually nobody or apache if you're using Apache on Linux), and this causes problem if

RE: [PHP] Re: $html_code .= include (filetoinclude.txt);

2002-10-13 Thread John W. Holmes
No. That will not work. Include does not return the text to a variable. Please read the manual page on include. You have to use file, fopen, or include() _with_ output buffering in order for this to work. ---John Holmes... -Original Message- From: CJ [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] $html_code .= include (filetoinclude.txt);

2002-10-13 Thread .: B i g D o g :.
Your email is not 100% totally clear with what you are actually trying to accomplish, however, here is an example of how i like to get html source code into a variable from a file. $html_code = implode( '', file( 'filetoinclude.txt' ) ); or append it... $html_code .= implode( '', file(

Re: [PHP] PHP/mySQL help or advice

2002-10-13 Thread Marco Tabini
There are a few PHP calendars: http://www.cascade.org.uk/software/php/calendar/index.php for example, that you can start from. It should be relatively easy then to write a small table that contains just one field: Date (datetime) All you do is insert a row in the db for each day that is

Re: [PHP] Predefined variables not set?

2002-10-13 Thread Sascha Cunz
Am Sonntag, 13. Oktober 2002 10:04 schrieb Miles: When trying to get $_SERVER[QUERY_STRING] I am getting 'Undefined index QUERY_STRING' error If there is a query string, e.g. www.site.com/index.php?hello_world then it IS defined. So it seems that PHP is complaining about undefined

[PHP] Re: getimagesize() with ftp-url?

2002-10-13 Thread nicos
getimagesize isn't remote. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Stefan Wessman [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] Hi! Can anyone tell me if the getimagesize() function is supposed to work with

[PHP] PHP/mySQL help or advice

2002-10-13 Thread Ray Healy \(Data Net Services\)
Hi All I have been trying to write a database and scripts for a calendar that shows which days are booked and have failed at each point. What i would like it to do is to show a calendar which have the dates that are booked in a cell which are colour coded (say red) when it is unavailable and

RE: [PHP] how to configure with ldap?

2002-10-13 Thread Tony Earnshaw
fre, 2002-10-11 kl. 20:11 skrev Jody Cleveland: Well, I installed openldap, and it tests out good. Now, I want to configure php to work with it. My question now is, where exactly is ldap located? I tried a few paths: ./configure --with-mysql --with-apxs2=/www/bin/apxs

[PHP] Re: $html_code .= include (filetoinclude.txt);

2002-10-13 Thread @ Edwin
Hello, The function might be available in the next release so you don't have to define your own. http://www.php.net/manual/en/function.file-get-contents.php But until then... - E "Shawn McKenzie" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... function

[PHP] Re: getimagesize() with ftp-url?

2002-10-13 Thread Stefan Wessman
Well, it is remote in the case of http-url's. Try this code: ?php $size = getimagesize(http://www.php.net/gifs/php_logo.gif;); echo 'pre'; print_r($size); echo '/pre'; ? And you will see this result: Array ( [0] = 120 [1] = 64 [2] = 1 [3] = width=120 height=64 [bits]

php-general Digest 13 Oct 2002 11:51:45 -0000 Issue 1641

2002-10-13 Thread php-general-digest-help
php-general Digest 13 Oct 2002 11:51:45 - Issue 1641 Topics (messages 119752 through 119782): php 4.3.0pre and openssl 0.96g compile error 119752 by: Jochen Kächelin Re: POST and GET variables don't work 119753 by: Jennifer Swofford 119754 by: Oscar F

RE: [PHP] syntax error on mysql select statement

2002-10-13 Thread John W. Holmes
ORDER BY and LIMIT go at the end...after WHERE. ---John Holmes... -Original Message- From: Pablo Oliva [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 13, 2002 12:13 AM To: [EMAIL PROTECTED] Subject: [PHP] syntax error on mysql select statement Can anyone see any problems with

RE: [PHP] how to configure with ldap?

2002-10-13 Thread Ray Hunter
Tony's right on this one. 1. Read all the instructions from the PHP documentation on setting up LDAP. (From the last time i set this up you need to do some thing.) 2. After you have read that and then messed with it a while and you still do not have all it working then you can post. (RTM). 3.

Re: [PHP] getimagesize() with ftp-url?

2002-10-13 Thread Marek Kilimajer
I remember I got these kinds of errors when I wanted to connect to a slow server, the last message was always something like port command successfull, and that was it. Try connection to localhost, if that works? Stefan Wessman wrote: Hi! Can anyone tell me if the getimagesize() function is

php-general Digest 12 Oct 2002 23:46:08 -0000 Issue 1640

2002-10-13 Thread php-general-digest-help
php-general Digest 12 Oct 2002 23:46:08 - Issue 1640 Topics (messages 119728 through 119751): Re: An small SQL problem 119728 by: Davy Obdam 119731 by: Brad Bulger 119736 by: Davy Obdam Re: Odd request 119729 by: Noodle Snacks Re: fgetcsv or other

[PHP] newline in string

2002-10-13 Thread Shawn McKenzie
I have loaded an html file into a string. How can I search the string for newlines/linefeeds? I know they are there, because if I echo the string and view source in the browser, some tags are on new lines. Example: html head /head TIA -Shawn -- PHP General Mailing List

Re: [PHP] php cgi question

2002-10-13 Thread David Cook
Hi Marco Thanks for the tips, they were what I was thinking was the problem, that even when the php cgi was owned by the correct user, that if it was being called via another web based script, that it would be executed as apache (in this case) rather than the actual owner of the cgiscript

[PHP] $html_code .= include (filetoinclude.txt);

2002-10-13 Thread Research and Development
Should this work? $html_code .= include (filetoinclude.txt); I am populating a variable with html to be printred later as usual: $html_code .= html. But I have some static html files that I want included in the html that I am storing in the variable. The HTML is in text files. The above

[PHP] syntax error on mysql select statement

2002-10-13 Thread Pablo Oliva
Can anyone see any problems with the following: SELECT * FROM ad AS t1, ad_location AS t2 ORDER BY t1.ad_ts_update LIMIT 0,40 WHERE t1.ad_location = t2.ad_loc_id AND ( (t1.ad_cdl_a = on OR t1.ad_cdl_b = on) AND t1.ad_longhaul = on AND t1.ad_fulltime = on ) AND ( t2.ca_losangeles = 1 OR

[PHP] Multiple Return Values from function

2002-10-13 Thread Paul Maine
Can I return more than one value from a function? php Thank You Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] html form array

2002-10-13 Thread tim tom
dear all, i ran my code below on ie and it works. but when i use netscape 4.76 under linux, i only get the message submitted even though i've checked some fields. what do i need to add to make it work with netscape under linux? code follows: ? if ($_POST[submit]) { print submittedBR;

[PHP] Re: what does _\\_ mean?

2002-10-13 Thread Ns_Andy
Here's the code: $fp = fopen (a.txt) while ($buf = fgets($fp,1024) { trim($buf) if (substr($buf,-1 == _\\_) { i missed a ) if (substr($buf,-1) == _\\_) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple Return Values from function

2002-10-13 Thread .: B i g D o g :.
I would probably return an array with the multiple values in the array...easier to work with. On Sat, 2002-10-12 at 20:49, Paul Maine wrote: Can I return more than one value from a function? php Thank You Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Multiple Return Values from function

2002-10-13 Thread Marco Tabini
Well, you could return an array that contains more than one value, or you could pass some parameters by reference rather than by value (although that's not always a good idea). On Sat, 2002-10-12 at 22:49, Paul Maine wrote: Can I return more than one value from a function? php Thank You

[PHP] php cgi question

2002-10-13 Thread David Cook
Hi all, Got a question regarding using php scripts as cgi's. What I am trying to do is this. (ya may need a bit of background, it gets a little complicated... well for me its complicated) Im building a web based email system using php (duh) as the front end and glue for everything, part of it

Re: [PHP] syntax error on mysql select statement

2002-10-13 Thread Marco Tabini
Yes, the LIMIT clause must be at the end of the line. Take a look at the documentation: http://www.mysql.com/doc/en/SELECT.html On Sun, 2002-10-13 at 00:12, Pablo Oliva wrote: Can anyone see any problems with the following: SELECT * FROM ad AS t1, ad_location AS t2 ORDER BY t1.ad_ts_update

RE: [PHP] html form array

2002-10-13 Thread John W. Holmes
dear all, i ran my code below on ie and it works. but when i use netscape 4.76 under linux, i only get the message submitted even though i've checked some fields. The code is running on the same box, right? Just accessing it with different browsers? what do i need to add to make it work

[PHP] POST and GET variables don't work

2002-10-13 Thread Andres Olarte
I've just built PHP from source (4.2.3) on Red Hat Linux 7.2 with configure --with-java --with-apxs=/usr/local/apache/bin/apx It's running with Apache 1.3.26 PHP work ok, even Java works, but if I try to pass variables from a form with either POST or GET, the variables don't get through.

Re: [PHP] POST and GET variables don't work

2002-10-13 Thread Jennifer Swofford
Try: $_Post[name]; or $HTTP_POST_VARS[name]; In new PHP version, register_globals is set to off by default, which is why $name isn't working for you. Although, I'm surprised GET isn't working Jen I've just built PHP from source (4.2.3) on Red Hat Linux 7.2 with configure --with-java

Re: [PHP] POST and GET variables don't work

2002-10-13 Thread Sascha Cunz
Am Sonntag, 13. Oktober 2002 02:11 schrieb Andres Olarte: Thanks to Oscar and Jennifer, it's working now. I did a bit of reading, and it seems it's not recommend to enable register_globlas, why is that? For security... Imagine, you register a session variable to contain the user's ID. Anyone

Re: [PHP] POST and GET variables don't work

2002-10-13 Thread Andres Olarte
Thanks to Oscar and Jennifer, it's working now. I did a bit of reading, and it seems it's not recommend to enable register_globlas, why is that? Is there an array that contains both POST and GET variables or am I stuck to using two different ones? From: Oscar F [EMAIL PROTECTED] To:

RE: [PHP] POST and GET variables don't work

2002-10-13 Thread John W. Holmes
$_REQUEST[] (also contains cookies) ---John Holmes... -Original Message- From: Andres Olarte [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 12, 2002 8:11 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] POST and GET variables don't work Thanks to Oscar and

[PHP] php 4.3.0pre and openssl 0.96g compile error

2002-10-13 Thread Jochen Kchelin
I tried to compile PHP with OpenSSL (0.96g) support with --with-openssl=/usr/src/web/openssl/current the way I did it since 4.1.0. I always get the message, that php can't find the openssl include-files. Any suggestions? -- Jochen Kaechelin -- PHP General Mailing List

[PHP] about mssql.....

2002-10-13 Thread php
If I want to use sql to access MS Access's database, is it necessary to have mssql server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] High-Res Images

2002-10-13 Thread Marek Kilimajer
You might have memory limit problem, try setting it higher. And as far as I know, there is no function in gd to tell you DPI, try imlib extension. Oscar F wrote: Hello, I have a script that process images sent by users, but I'm having some problems here. 1) Does anybody know if there is

RE: [PHP] about mssql.....

2002-10-13 Thread John W. Holmes
If I want to use sql to access MS Access's database, is it necessary to have mssql server? No, just open up Access and go to town... Now, if you mean you want to get to Access from PHP, then you still don't need MSSQL. You can connect to Access using ODBC or COM. ---John Holmes... --

Re: [PHP] newline in string

2002-10-13 Thread Shawn McKenzie
Thanks everyone. I'' be breaking the string after the newline so that I can convert the html to php echos and write them to a file. -Shawn John W. Holmes [EMAIL PROTECTED] wrote in message 000d01c272c1$54d0$7c02a8c0@coconut">news:000d01c272c1$54d0$7c02a8c0@coconut... I have loaded an

[PHP] High-Res Images

2002-10-13 Thread Oscar F
Hello, I have a script that process images sent by users, but I'm having some problems here. 1) Does anybody know if there is any problem with hi-res images (300 DPI), because when I try to use them with PHP to resize/copy them, all I get is a black box. 2) Is there any way, with GD/PHP to

Re: [PHP] php cgi question

2002-10-13 Thread Marco Tabini
Hi David-- If that is the issue then I would suggest looking into the suexec module for Apache...as long as you're very careful with the permissions, you should be fine! Also, my reference to the code was more a caveat than anything else. In your case, if the script was working from the sell,

RE: [PHP] Boolean Search Interpreter

2002-10-13 Thread John W. Holmes
It may be better to just let your database handle it. I know MySQL supports Boolean fulltext searches (in 4.0, I think), and I'm sure others do too. ---John Holmes... -Original Message- From: SpamSucks86 [mailto:[EMAIL PROTECTED]] Sent: Friday, October 11, 2002 7:13 PM To: [EMAIL

RE: [PHP] Best Forum System

2002-10-13 Thread Brian V Bonini
Phorum seems to be real popular, see http://phorum.org -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Friday, October 11, 2002 5:37 PM To: PHP List Subject: [PHP] Best Forum System Hello, I know there will be a load of different responses but I'm after

Re: [PHP] Best Forum System

2002-10-13 Thread Marco Tabini
I use phpbb for our internal forums as well as a public forum on a website (http://www.nonsologiochi.com/forums -- it's in Italian) and it works pretty well. On Fri, 2002-10-11 at 17:36, Stephen wrote: Hello, I know there will be a load of different responses but I'm after the most frequent

[PHP] People who searched this also searched this!

2002-10-13 Thread Randum Ian
Hi guys, Does anybody have a working example of doing the lists of 'People who searched this also searched this!' that I see on Amazon and other websites. Any help much appreciated! Randum Ian [EMAIL PROTECTED] DJ / Reviewer / Webmaster, DancePortal (UK) Limited DancePortal.co.uk - Global

[PHP] How to access MS ACCESS's database files

2002-10-13 Thread php
By Using mssql_command??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A little help needed, I cant figure!

2002-10-13 Thread Chris Hewitt
John W. Holmes wrote: Song Table: Song_id A_id Type Name Length Lyrics ... That's my ideas on how to do it. There are many ways to do it, though. Totally agree with what John says. If the lyrics are long (as I assume they will be) then I'd probably hive the lyrics off into a table of their

Re: [PHP] php 4.3.0pre and openssl 0.96g compile error

2002-10-13 Thread Tony Earnshaw
søn, 2002-10-13 kl. 01:48 skrev Jochen Kächelin: I tried to compile PHP with OpenSSL (0.96g) support with --with-openssl=/usr/src/web/openssl/current the way I did it since 4.1.0. I always get the message, that php can't find the openssl include-files. Any suggestions? See if

[PHP] Fatal error: Maximum execution time of 30 seconds exceeded

2002-10-13 Thread scott
Hello Trying to send a html email to 5000 people on a list Keep getting Fatal error: Maximum execution time of 30 seconds exceeded Any pointers on the best way to achieve this lengthily operation without the script failing? Best regards Scott -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] Fatal error: Maximum execution time of 30 seconds exceeded

2002-10-13 Thread John W. Holmes
www.php.net/set_time_limit ---John Holmes... -Original Message- From: scott [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 13, 2002 2:06 PM To: [EMAIL PROTECTED] Subject: [PHP] Fatal error: Maximum execution time of 30 seconds exceeded Hello Trying to send a html email to

Re: [PHP] Predefined variables not set?

2002-10-13 Thread Oscar F
I'm pretty sure it's not $_SERVER[QUERY_STRING], it's $_SERVER['QUERY_STRING'] (note the ' instead of ). HTH. Oscar F.- Miles wrote: When trying to get $_SERVER[QUERY_STRING] I am getting 'Undefined index QUERY_STRING' error If there is a query string, e.g.

RE: [PHP] Predefined variables not set?

2002-10-13 Thread Mark Charette
In this context it makes no difference whether or not or ' is used ( allows variable substitution within the quoted string, ' does not) since there's no substitution taking place. Insert a phpinfo() in the top of your code to see all the variables that _are_ being set. -Original

RE: [PHP] Fatal error: Maximum execution time of 30 seconds exceeded

2002-10-13 Thread Thoenen, Peter Mr. EPS
In you php.ini, find max_execution_time = 360 and up it. -Peter -Original Message- From: scott [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 13, 2002 20:06 To: [EMAIL PROTECTED] Subject: [PHP] Fatal error: Maximum execution time of 30 seconds exceeded Hello Trying to

Re: [PHP] Fatal error: Maximum execution time of 30 seconds exceeded

2002-10-13 Thread Chris Hewitt
scott wrote: Hello Trying to send a html email to 5000 people on a list Keep getting Fatal error: Maximum execution time of 30 seconds exceeded Any pointers on the best way to achieve this lengthily operation without the script failing? Best regards Scott If the email is the same for all

[PHP] Image resize

2002-10-13 Thread Christian Ista
Hello, I have an image (selected via a form), I know the original size of this picture 800x600. I'd like when I put the files in the database resize to 240x180, or 120x90. How do that ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Fatal error: Maximum execution time of 30 seconds exceeded

2002-10-13 Thread Sascha Cunz
Yet another very fine way to do this job, is to set up a mailinglist manager (ezmlm i.e.), whom you subscribe all your recipients - And then send just one mail to the mailinglist manager. Of course, works only if you got control to the server. --Sascha -- PHP General Mailing List

[PHP] compiling mailparse into PHP

2002-10-13 Thread Jeff Schwartz
I'm having trouble adding mailparse to my PHP 4.2.3 install. I've downloaded and uncompressed mailparse-4.2.0.tgz into a subdir of my PHP directory and added --enable-mailparse to my config file but I'm still missing something. What am I doing wrong? Jeff

[PHP] Odd Problem

2002-10-13 Thread Stephen
Hello, I'm running a script that inserts a form's contents into a MySQL table. However, when I insert the contents, I get an error telling me this: Unknown column 'employee' in 'field list' I can't find the problem. I have a field in my table called employee but I guess it doesn't see it.

RE: [PHP] A little help needed, I cant figure!

2002-10-13 Thread David Freeman
Song Table: Song_id A_id Type Name Length Lyrics ... That's my ideas on how to do it. There are many ways to do it, though. Totally agree with what John says. If the lyrics are long (as I assume they will be) then I'd probably hive the lyrics off into a table

RE: [PHP] Odd Problem

2002-10-13 Thread John W. Holmes
Print your SQL to the screen and verify it's value is what you think it is. Make sure it's accessing the right table. ---John Holmes... -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 13, 2002 5:03 PM To: PHP List Subject: [PHP] Odd Problem

[PHP] Simple HTML-Form Question

2002-10-13 Thread Lars H. Korte
Hi, I've updated to PHP 4.2.3 and wrote this simple Script: ? if (isset($name)) { echo Hallo $name; } else { echo FORM action='test.php' method=get input type=text name=name input type=submit name=action value=sendit; } ? I would expect the following: The site starts with the

RE: [PHP] A little help needed, I cant figure!

2002-10-13 Thread Randum Ian
Indeed, another problem I have is that if a single is on an album, which track it is on the album. I want to centre the site on the Charts that are generated weekly for singles and albums so if I use that as my source for the lookup and then have the data contained in separate fields that are

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Sascha Cunz
register_globals defaults now to off. Use the superglobals instead. ? if (isset($_GET['name'])) { echo Hallo .$GET['name']; } else { echo FORM action='test.php' method=get input type=text name=name input type=submit name=action value=sendit; } ? Sascha Am Sonntag, 13. Oktober

RE: [PHP] A little help needed, I cant figure!

2002-10-13 Thread David Freeman
Indeed, another problem I have is that if a single is on an album, which track it is on the album. Off hand, I'd say that if you need this information as well (ie. You want to recreate the songs on album list in the correct order) then you need to extend one of your tables to include this

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Chip Wiegand
Sascha Cunz wrote this stuff back on Mon, 14 Oct 2002 00:09:58 +0200: register_globals defaults now to off. Use the superglobals instead. ? if (isset($_GET['name'])) { echo Hallo .$GET['name']; } else { echo FORM action='test.php' method=get input type=text name=name

Re: [PHP] Simple HTML-Form Question

2002-10-13 Thread Sascha Cunz
This beautifies it (even makes it a bit more secure), but one doesn't need it really; should have worked without these changes, too. (Of course, it's better to include these changes) Sascha The value of name for the submit button is wrong - it should be the same as the value you gave the

[PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread John Negretti
Hello All, I am calling a particular function. Within that function I need access to the $HTTP_GET_VARS array. It seem I could only access that array if I pass it as a parameter of the function. Is this how it's supposed to work. Thanks for any direction. NOTE: I am using PHP 4.0.6.

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread Marco Tabini
Try using global $HTTP_GET_VARS; at the beginning of your function. $HTTP_GET_VARS has global scope, and by default PHP isolates functions from the parent scope. Marco On Sun, 2002-10-13 at 16:39, John Negretti wrote: Hello All, I am calling a particular function. Within that

[PHP] global variable preference for self

2002-10-13 Thread Thoenen, Peter Mr. EPS
Anybody have reason for using $_SERVER['PHP_SELF'] -v- $_SERVER['URL'] ? They both seem to always be the same in every instance I have seen so curious is their is a preferance for one or the other and if there is a case where PHP_SELF!=URL Cheers, -Peter ##

php-general Digest 14 Oct 2002 00:03:11 -0000 Issue 1642

2002-10-13 Thread php-general-digest-help
php-general Digest 14 Oct 2002 00:03:11 - Issue 1642 Topics (messages 119783 through 119819): Re: Upload Problem 119783 by: Sascha Cunz Re: Predefined variables not set? 119784 by: Sascha Cunz 119801 by: Oscar F 119802 by: Mark Charette Re: A little help

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread John Negretti
Marco, I was reading that there were some security risks with register-globals. Is this the same thing as global. John Negretti www.ideablue.com Marco Tabini [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Try using global $HTTP_GET_VARS; at the

[PHP] Detecting GD version

2002-10-13 Thread Owen Prime
Has anyone got any better ideas about how to detect what version of GD is running other than the following. The reason I ask is that I want to use imagecopyresampled() only if available ie. GD = v2.0. OPTION 1. Parse phpinfo() output for the GD version info. Expensive. OPTION 2. Run

Re: [PHP] Odd Problem

2002-10-13 Thread Stephen
I got the spelling and everything right... - Original Message - From: John W. Holmes [EMAIL PROTECTED] Newsgroups: php.general To: 'Stephen' [EMAIL PROTECTED]; 'PHP List' [EMAIL PROTECTED] Sent: Sunday, October 13, 2002 4:17 PM Subject: RE: [PHP] Odd Problem Print your SQL to the

Re: [PHP] Detecting GD version

2002-10-13 Thread Andrew Brampton
try function_exists('imagecopyresampled'); otherwise I'm sure there has to be some function that returns versions of libs. Andrew - Original Message - From: Owen Prime [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 14, 2002 1:37 AM Subject: [PHP] Detecting GD version

Re: [PHP] Detecting GD version

2002-10-13 Thread Owen Prime
Been there. The function still exists in GD 2.0. Thats why it produces such a specific error message. Otherwise it would say function doesn't exist. Thanks for you input anyways. Cheers, Owen Prime http://www.noggin.com.au Andrew Brampton wrote: try

[PHP] OCIFetchInto: OCI8 problem

2002-10-13 Thread Faisal Abdullah
Hi ppl. I have something which seems really odd. I run a SQL query, which is supposed to return 2 rows, but instead, it returns one with OCIFetchInto(). I used the exact same query in SQL*Plus, and It returns 2 rows like I want them. Here's the code. if(!$iDBConn = OCILogon(DB_USER, DB_PASS,

  1   2   >