Re: [PHP] LWP::Parallel in PHP

2003-08-29 Thread Robert Cummings
This isn't the best solution but it might help bring down the total time. Can you set up a shell script to retrieve the content from a URL (in PHP if you wish) and then from your web app spawn 5 processes, with destination temporary files for the data which you can then poll for completion

Re: [PHP] jpeg libraries.

2003-08-29 Thread Tom Rogers
Hi, Friday, August 29, 2003, 6:39:16 AM, you wrote: MAS I got the jpeg libraries from: MAS http://freshmeat.net/projects/libjpeg/?topic_id=105%2C809 MAS And installed them; even did a make test to make sure everything was MAS correct. MAS It did install some jpeg stuff under /usr/local/bin,

[PHP] Creating files in public_html

2003-08-29 Thread Lowell Allen
My commercial host is changing policy so that PHP can't create files in public_html. This screws up my content management system, which generates static HTML pages which are hit a lot. Is this policy common? Is it a security risk for PHP to be able to create files in the main directory? (I have no

Re: [PHP] WYSIWYG online editor for Macintosh?

2003-08-29 Thread Step Schwarz
Hi there. Slightly OT, but it's for a PHP project... We normally use a plug-in WYSIWYG editor so that our clients can manage their content in a word-like interface. Normally this works fine, but this time when we've completed the site we've discovered they have an entire department that is

Re: [PHP] LWP::Parallel in PHP

2003-08-29 Thread David Otton
On Thu, 28 Aug 2003 15:49:15 -0700, you wrote: Think you're out of luck. Yes, it's a problem I've run up against more than once. There's no thread support in PHP [4. Anyone know if it's in 5?]. php.net/pcntl_fork Interesting - that's new. Unix-only and not in the default install. Not

Re: [PHP] LWP::Parallel in PHP

2003-08-29 Thread [EMAIL PROTECTED]
hi, David is right, you will not find an equivalent. My advise is to mix PHP and perl. You can get a perl script to handle the URL retrieval stuff and pass handlign back to php when you are done. It's this approach that i took when creating the mega upload progress bar for php. all the best

[PHP] Re: Loading advise (no problem)

2003-08-29 Thread Bogdan Stancescu
Hi Ryan, Looks good from here, you should try a traceroute to that host, I think that's actually your problem... Or are you on a local network with that machine? Try the traceroute nevertheless, who knows how your hub is acting up... :) Bogdan Ryan A wrote: Hi, No problem, Just need a little

Re: [PHP] post v get

2003-08-29 Thread David Otton
On Thu, 28 Aug 2003 18:50:55 -0400, you wrote: When you POST a form to the server the server replies with a new page. if you click the Back button in the browser the server wants to re-POST the form. Short of using GET is there a way to prevent re-submitting the previous form? One technique

RE: [PHP] Urgent help required for using Cron

2003-08-29 Thread Safal Solutions
Dear Javier, We have done the following as per your suggestion 15 17 * * * /path/to/your/php/binary /path/to/your/script.php After editing and saving crontab file the following message pops up at the commond prompt - crontab:installing new crontab crontab:error renaming cron/tmp.1885 to

Re: [PHP] Array Push and Keys

2003-08-29 Thread David Otton
On Thu, 28 Aug 2003 18:14:39 -0400, you wrote: While($row=mysql_fetch_array($res) { That *should* create the array above, but as I mentioned array_push does not seem to be taking the keys I just get a Parse error message for the line. (the first array_push) Ahem. Count the brackets? :)

[PHP] How to?

2003-08-29 Thread Jay Fitzgerald
I need to create a form for this example in php. I need to have an unlimited number of seats with radio buttons next to each seat for the user to be able to select. BUT, when the user visits this page, it needs to pull the seats taken from the db and cross them out, rendering them inoperable

Re: [PHP] How to?

2003-08-29 Thread John W. Holmes
Jay Fitzgerald wrote: I need to create a form for this example in php. I need to have an unlimited number of seats with radio buttons next to each seat for the user to be able to select. BUT, when the user visits this page, it needs to pull the seats taken from the db and cross them out,

Re: [PHP] post v get

2003-08-29 Thread andu
On Fri, 29 Aug 2003 02:06:55 +0100 David Otton [EMAIL PROTECTED] wrote: On Thu, 28 Aug 2003 18:50:55 -0400, you wrote: When you POST a form to the server the server replies with a new page. if you click the Back button in the browser the server wants to re-POST the form. Short of using

Re: [PHP] PHP Interview questions

2003-08-29 Thread murugesan
In a group of 12 eggs only one is having weight less or more. Can we have a program to find the egg, provided we have to weigh only three times with a weighing machine with two pans,without using weights. -murugesan - Original Message - From: Matt Matijevich [EMAIL PROTECTED] To: [EMAIL

[PHP] undefined variable

2003-08-29 Thread merryE
Can anyone tell me what's wrong with my code? I tried to create a form in html and redirect it to php. but result said: Notice: Undefined variable: sender_name in c:\program files\apache group\apache\htdocs\do_feedback.php on line 2 and for all the variables (sender_email, like_site, and text

RE: [PHP] undefined variable

2003-08-29 Thread Chris Kay
You seem confused with POST GET, instead of using _POST to retrieve values from the form, you use $senders_name, and further down you set $_POST[msg], which will only be used in the same php code on the same page Try $msg = Sender's Full Name:\t . $_POST['sender_name'] . \n; $msg .=Sender's

Re: [PHP] LWP::Parallel in PHP

2003-08-29 Thread Evan Nemerson
Just fork the web application. That would probably be a much better solution... On Thursday 28 August 2003 04:13 pm, Robert Cummings wrote: This isn't the best solution but it might help bring down the total time. Can you set up a shell script to retrieve the content from a URL (in PHP if

[PHP] Beta 2 of plPHP is out

2003-08-29 Thread Joshua D. Drake
I was going to send this to the php-db list but for some reason it bounced. Anyway here ya go: Beta 2 of plPHP has been released. This version contains many bug fixes. For example, if you write bad plphp code and try to execute it, the code will no longer crash PostgreSQL . The URL is

[PHP] converting date into database date format(newbie)

2003-08-29 Thread Anil Garg
Hi, I am a newbie to php. I am reading date in the format 08-Aug-03 from a text file. While writing this date into the myqsl database's date column it shows '00-00-'. Is there a function or some other way to convert 08-Aug-03 type of dates in to format which is acceptable by date field of

[PHP] server/browser dependancies?

2003-08-29 Thread VB
Hi, I am trying to come up with a form with more then one submit button, and am seeing some unexplainable results. Here is a small complete page to illustrate it: cut here === htmlhead/headbody ? if ( $HTTP_SERVER_VARS[REQUEST_METHOD] == POST ) {

Re: [PHP] building php witk libiconv

2003-08-29 Thread Alain Bonnefoy
Hi Tom, configure ... --with-iconv doesn't change anything, configure is ok but make ends with: gcc: /usr//lib/.libs/libiconv.so: No such file or directory gcc: /opt//lib/.libs/libiconv.so: No such file or directory I decided to create a link /opt/lib/.libs/libiconv.so -

[PHP] problem with a mysql query with data from a form

2003-08-29 Thread Vincent Fievet
-Message d'origine- De : Vincent Fievet Envoyé : mercredi 27 août 2003 10:44 À : '[EMAIL PROTECTED]' Objet : problem with a mysql query with data from a form hi, i am a newbie to php and mysql, i run the easyphp kit ( php 4.2.0, Mysql 3.23.49 and phpmyadmin 2.2.6 ) i would like

[PHP] Crystal Reports and PHP

2003-08-29 Thread daniel
Has anybody managed to intergrate Crystal Reports to work with unix and php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Absolute URLs with Require Include

2003-08-29 Thread Seth Willits
Is there anyway to get an absolute URL to work with Require Include? Why doesn't it work already? I did see the tip about using $_SERVER, but this slows down page-loading considerably. Seth Willits --- President and

Re: [PHP] converting date into database date format(newbie)

2003-08-29 Thread Binay Agarwal
Hi! U can convert 8-Aug-03 into mysql date which requires -mm-dd format as below. ?php date(Y-m-d,strtotime(8-Aug-03)); ? Hope this helps and let me know. Cheers Binay - Original Message - From: Anil Garg [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003

Re: [PHP] server/browser dependancies?

2003-08-29 Thread Binay Agarwal
Hi! Use input type='submit' name='action' value='Save' input type='submit' name='action' value='Find' instead of BUTTON type=submit name=action value=FindFind/button and so Hope this helps .. Cheers Binay - Original Message - From: VB [EMAIL PROTECTED] To: [EMAIL PROTECTED]

RE: [PHP] WYSIWYG online editor for Macintosh?

2003-08-29 Thread Adrian Teasdale
Step (and everyone else who has replied directly) thanks for the links. I'll do some research and will post my results. The client is using OS9 and OSX so I need to find something that works with both. It's looking like Java at this moment in time. Thanks again Ade -Original Message-

Re: [PHP] problem with a mysql query with data from a form

2003-08-29 Thread Binay Agarwal
- Original Message - From: Vincent Fievet [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003 11:55 AM Subject: [PHP] problem with a mysql query with data from a form -Message d'origine- De : Vincent Fievet Envoyé : mercredi 27 août 2003 10:44 À : '[EMAIL

[PHP] Re: GD PHP

2003-08-29 Thread Kae Verens
Mike At Spy wrote: Is there anything special I have to do to enable GD when using PHP 4.3.2? I'm getting an error of: Fatal error: Call to undefined function: imagecreatefromjpeg() in /home/sites/site37/web/photos/functions.php on line 594 When I use the imagecreatefromjpeg() function. Is it

RE: [PHP] Urgent help required for using Cron

2003-08-29 Thread Javier Tacon
It seems problems with permissions. Can you pass me the output from ls -la /var/spool/cron/ May be exists a directory called root inside /var/spool/cron, so, if exists, you should delete it and try again. -Mensaje original- De: Safal Solutions [mailto:[EMAIL PROTECTED] Enviado el:

[PHP] register globals question

2003-08-29 Thread Merlin
Hello, I am wondering if an application written to work with register globals set to off ($_GET[variable] etc.) would work with a system, where register globals is set to on? If not, is there a way to make it work for boty configurations? thanx for any help on that, Merlin -- PHP General

[PHP] Re: register globals question

2003-08-29 Thread Kae Verens
Merlin wrote: Hello, I am wondering if an application written to work with register globals set to off ($_GET[variable] etc.) would work with a system, where register globals is set to on? yes. Kae -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Foring a file download *and* page reload

2003-08-29 Thread Jean-Christian IMbeault
I've asked about this before but could not get a working solution. I have a database. Users put data in the DB :) I have a page with a list of accessible data block. Each block has a button next to it. When a user click a button what I would like is: - I extract the data block from the DB - I

Re[2]: [PHP] building php witk libiconv

2003-08-29 Thread Tom Rogers
Hi, Friday, August 29, 2003, 4:09:14 PM, you wrote: AB Hi Tom, AB configure ... --with-iconv AB doesn't change anything, configure is ok but make ends with: AB gcc: /usr//lib/.libs/libiconv.so: No such file or directory AB gcc: /opt//lib/.libs/libiconv.so: No such file or directory AB I

[PHP] PDF Problem

2003-08-29 Thread Jack
Dear all I want to convert a text file to pdf format and store it in somewhere in my harddisk. I had found out that there is a dll inside my php4.04 directory (c:\php\extensions\php_pdf.dll) and from php.ini i had check that the extension_dir=c:\php\extensions; extension=php_pdf.dll had actived;

php-general Digest 29 Aug 2003 08:52:40 -0000 Issue 2265

2003-08-29 Thread php-general-digest-help
php-general Digest 29 Aug 2003 08:52:40 - Issue 2265 Topics (messages 161078 through 161124): Some cookies are being set, some aren't 161078 by: Thaddeus J. Quintin post v get 161079 by: andu 161082 by: Jim Lucas 161088 by: John W. Holmes 161097 by:

Re: [PHP] Re: Loading advise (no problem)

2003-08-29 Thread Ryan A
Hey, Thanks for the reply, will do. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)information ministers site http://MrSahaf.com - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003 3:21 AM Subject: [PHP] Re:

Re: [PHP] undefined variable

2003-08-29 Thread Viraj Kalinga Abayarathna
did you solve this problem? i checked the coding in my linux box, it's working fine. Viraj Chris Kay wrote: You seem confused with POST GET, instead of using _POST to retrieve values from the form, you use $senders_name, and further down you set $_POST[msg], which will only be used in the

Re: [PHP] problem with a mysql query with data from a form

2003-08-29 Thread murugesan
use $det=trim($det); then assign the $sql value. -murugesan - Original Message - From: Vincent Fievet [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003 11:55 AM Subject: [PHP] problem with a mysql query with data from a form -Message d'origine- De : Vincent

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
Correct on the brackets - but not on the results still working... The code I had in the email was just a sample - here is the real code... $res=mysql_query(select distinct dealercode from transactions order by dealercode,$intranet); $transactions=Array(); while($row=mysql_fetch_array($res)) {

[PHP] Re: PDF Problem

2003-08-29 Thread Joerg Behrens
Jack [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Dear all I want to convert a text file to pdf format and store it in somewhere in my harddisk. I had found out that there is a dll inside my php4.04 directory (c:\php\extensions\php_pdf.dll) and from php.ini i had check that

[PHP] Re: Foring a file download *and* page reload

2003-08-29 Thread Catalin Trifu
Hi, You could use the META refresh ... HTML For instance, when the request for a part is sent to the server, the response can present the new list of blocks, without the requested one and the META refresh should point to a scripts which uploads the data block as an attachment.

Re: [PHP] problem with a mysql query with data from a form

2003-08-29 Thread Raditha Dissanayake
You might also want to use addslashes() . like '%something%' puts a big load on the database server. and it seems you are doing mulitples of these queries. Please make sure you have the correct indices on your tables. You might want to look at fulltext indexing instead. all the best

Re: [PHP] Absolute URLs with Require Include

2003-08-29 Thread John W. Holmes
Seth Willits wrote: Is there anyway to get an absolute URL to work with Require Include? Why doesn't it work already? I did see the tip about using $_SERVER, but this slows down page-loading considerably. You can use URLs in your include() or require() calls.

Re: [PHP] converting date into database date format(newbie)

2003-08-29 Thread John W. Holmes
Anil Garg wrote: I am reading date in the format 08-Aug-03 from a text file. While writing this date into the myqsl database's date column it shows '00-00-'. Is there a function or some other way to convert 08-Aug-03 type of dates in to format which is acceptable by date field of the mysql

[PHP] Accessing objects of other objects?

2003-08-29 Thread Webmaster
Hi, I have the following problem: On page A of my homepage I create an object 1 which itself creates an object 2. Now how can I access the properties of object 2 from A ? It doesn't seem to work. I am fairly new to Object Oriented Programming. Thank you very much. -- PHP General Mailing List

[PHP] searching for javascript (or others) that can be used in conjunctionwith PHP for file folder uploads

2003-08-29 Thread Kenn Murrah
Greetings. (I've seen this subject discussed, but cannot find a solution in the archives.) I have a file upload site to which I need to add code for uploading of an entire folder/subdirectory ... I realize this can't be done in PHP alone but I'm hoping that a solution (possibly involving

[PHP] session variables

2003-08-29 Thread Diana Castillo
I am having a weird problem, when I close all my browser windows and restart my application, the session variable which I set comes back suddenly, but only when I call a certain class . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] jumping to an html anchor with ? syntax

2003-08-29 Thread Merlin
Hi there, I am wondering how it is possible to jump to a name anchor with an url containing a questionmark. Things like: index.php?var1=value#jumppoint index.php#jumppoint?var1=value do not work. Can anybody help please? Thanx in advance, Merlin -- PHP General Mailing List

[PHP] Exec submits prog 2 times !!!

2003-08-29 Thread Olivier Lepretre
Hi all, I need to execute a command that will remotely exec another one on another server. Here is the code (really simple) : print Launching sshbr; flush(); $pgm = ssh -fnl oracle diamond \/home/oracle/myprog.sh \ /dev/null 2/dev/null; exec ($pgm, $output, $res); The ssh ... goes well when

Re: [PHP] jumping to an html anchor with ? syntax

2003-08-29 Thread Chris Shiflett
--- Merlin [EMAIL PROTECTED] wrote: index.php?var1=value#jumppoint index.php#jumppoint?var1=value The first syntax is the correct one. What isn't working exactly? Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing

Re: [PHP] Array Push and Keys

2003-08-29 Thread David Otton
On Fri, 29 Aug 2003 07:54:45 -0400, you wrote: Correct on the brackets - but not on the results still working... The code I had in the email was just a sample - here is the real code... Ack. For anyone watching, if you have a problem please post a minimal code snippet that illustrates the

RE: [PHP] jpeg libraries.

2003-08-29 Thread Mike At Spy
* Thus wrote Mike At Spy ([EMAIL PROTECTED]): It did install some jpeg stuff under /usr/local/bin, but I don't see anything added to /usr/local/lib. After that, I re-compiled php with: --with-jpeg But nothing changed. I re-compiled again with:

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
Look - David - I do appreciate your efforts to help - and I realize that working blind on an email list is tough, but the question is not about the structure of the code, the database, reserved words or anything else. The question for anyone out there is simple - does array_push allow you to push

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
And as a follow up, from the phpbuilder list where I posted the very same question today, I think this answers the question: I don't think its a bug. I think the problem you're having is to do with what type of argument you can give to array_push. There are two possibilities ... 1) variable 2)

RE: [PHP] Array Push and Keys

2003-08-29 Thread Ford, Mike [LSS]
-Original Message- From: Mike Morton To: David Otton Look - David - I do appreciate your efforts to help - and I realize that working blind on an email list is tough, but the question is not about the structure of the code, the database, reserved words or anything else. The question for

Re: [PHP] Array Push and Keys

2003-08-29 Thread John W. Holmes
Ford, Mike [LSS] wrote: Having said that, I've just given you a clue: since array_push($array, $var) is equivalent to $array[] = $var, you can get the result you want by doing: $array[] = array($k, $v); (with, of course, appropriate values for $array, $k and $v substituted to suit your

Re: [PHP] Array Push and Keys

2003-08-29 Thread Mike Morton
The code that I ended up using was: $res=mysql_query(select distinct dealercode from transactions where dealercode!='' order by dealercode,$intranet); $count=0; while($row=mysql_fetch_array($res)) { $amt=mysql_query(select sum(amount) as total from transactions where date between '2003-04-01'

Re: [PHP] Accessing objects of other objects?

2003-08-29 Thread David Otton
On Fri, 29 Aug 2003 15:19:23 +0200, you wrote: On page A of my homepage I create an object 1 which itself creates an object 2. Now how can I access the properties of object 2 from A ? Two approaches. C contains an instance of A or E extends A. ? class A {

Re: [PHP] Array Push and Keys

2003-08-29 Thread Ernest E Vogelsinger
At 00:14 29.08.2003, Mike Morton said: [snip] I am trying to loop through some database results to build an array similar to: Array ( [33]=Array ( [usa]=52.00 [sa]=553.00 ) ) And the problem that I am having is that array_push does

RE: [PHP] Can we control the content of MS Outlook Express

2003-08-29 Thread Wouter van Vliet
I think not every server allows the mail() command ... That's why: ?php $Body = this is some body text.. blahh would it work?; $Subject = Mail SubjectLine; ? a href=mailto:[EMAIL PROTECTED]?=urlencode($Body)?subject=?=urlenco de($Subject)?click here to mail me/a Is probably what you

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
Thanks for your reply, I think my mail was blocked for a few days here. Sorry for the delay. a HREF='file:///home/users/grant/Parts.txt'file:///home/users/grant/Parts.txt/a This link will not work in Mozilla. (Does nothing) However, if I copy and paste the address into the addess bar, it

[PHP] open php from

2003-08-29 Thread Alvaro Martinez
Hi! I'm a beginner. I want to redirect from one php page to another php page and I dont know what method to use. How can I do it? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] jpeg libraries.

2003-08-29 Thread Mike At Spy
Actually, I am using php 4.3.3 - which has gd 'bundled' in it. :) I couldn't actually re-compile it then, could I; meaning, is there some way of doing that separatly from php from the 'bundle'? :) Thanks, -Mike -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] open php from

2003-08-29 Thread Chris Sherwood
header('Location: ' . $newLocation); - Original Message - From: Alvaro Martinez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003 9:13 AM Subject: [PHP] open php from Hi! I'm a beginner. I want to redirect from one php page to another php page and I dont know what

Re: [PHP] open php from

2003-08-29 Thread Jonathan Pitcher
Alvaro, To redirect use the header function (http://www.php.net/header) The call would be something like: header(Location: anotherpage.php); remember that to use this command nothing can have been printed to the browser before hand. HTH Jonathan On Friday, August 29, 2003, at 11:13 AM,

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Raditha Dissanayake
Hello, More suprising is that the html you have below works perfectly on my mozzilla 1.4 running on Red Hat 9 :-) provided i do have this exact path on my computer. /home/users/grant/Parts.txt From what you are saying it looks like in your case '/home/users/grant/Parts.txt' does not exist on

Re: [PHP] Array Push and Keys

2003-08-29 Thread David Otton
On Fri, 29 Aug 2003 11:18:18 -0400, you wrote: The question for anyone out there is simple - does array_push allow you to push key=value pairs? That is what is causing errors - nothing else, everything else is a result of inherited systems, and other developers crappy design. I agree with you

Re: [PHP] speed of mail() on two servers

2003-08-29 Thread David T-G
jabber, et al -- ...and then [EMAIL PROTECTED] said... % % Hello, Hi! % % I recall someone (pardone me i don't save list mails) pointing out that % the delay could actually be in generating the message rather than in the Yep. Nope. % sending. You are sending a customized message to

Re: [PHP] Foring a file download *and* page reload

2003-08-29 Thread Curt Zirzow
* Thus wrote Jean-Christian IMbeault ([EMAIL PROTECTED]): I've asked about this before but could not get a working solution. I have a database. Users put data in the DB :) I have a page with a list of accessible data block. Each block has a button next to it. When a user click a button

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
Hello there, The line: a HREF='\\vesuvius\home\users\grant\Parts.txt'\\vesuvius\home\users\grant\Parts.txt/a Gives the object not found page in Mozilla, even when clicked on from the vesuvius computer. I think that it is treating this like a relative link. Thanks for the help, Grant CPT

Re: [PHP] jumping to an html anchor with ? syntax

2003-08-29 Thread Curt Zirzow
* Thus wrote Chris Shiflett ([EMAIL PROTECTED]): --- Merlin [EMAIL PROTECTED] wrote: index.php?var1=value#jumppoint index.php#jumppoint?var1=value The first syntax is the correct one. What isn't working exactly? Technically the second one is correct too but only if the 'a' name is:

[PHP] imagejpeg function output

2003-08-29 Thread Mike At Spy
Just to make sure no one is lead astray - I still have an issue getting jpeg enabled on a server with gd and php. I am asking this question 'cause I am doing some work on a different server where jpeg is enabled. Anyway, I have this sort of setup: $src_img = imagecreatefromjpeg($rand_image);

Re: [PHP] speed of mail() on two servers

2003-08-29 Thread Raditha Dissanayake
Hello David, looks like a bit of a tough one :-) guess you might be better off trying one of the qmail groups instead of this one. Sorry my own qmail expertise isn't as good as it should be. best regards raditha David T-G wrote: jabber, et al -- ...and then [EMAIL PROTECTED] said... % %

Re: [PHP] PHP Interview questions

2003-08-29 Thread David T-G
murugesan, et al -- ...and then murugesan said... % % In a group of 12 eggs only one is having weight less or more. % Can we have a program to find the egg, provided we have to weigh only three % times with a weighing machine with two pans,without using weights. *Without* a balance scale?

Re: [PHP] open php from

2003-08-29 Thread Curt Zirzow
* Thus wrote Jonathan Pitcher ([EMAIL PROTECTED]): Alvaro, To redirect use the header function (http://www.php.net/header) The call would be something like: header(Location: anotherpage.php); I'd like to add that the location MUST be an absolute url. ie: Location:

Re: [PHP] jpeg libraries.

2003-08-29 Thread Jason Wong
On Friday 29 August 2003 23:19, Mike At Spy wrote: * Thus wrote Mike At Spy ([EMAIL PROTECTED]): It did install some jpeg stuff under /usr/local/bin, but I don't see anything added to /usr/local/lib. After that, I re-compiled php with: --with-jpeg But nothing changed.

Re: [PHP] Re: speed of mail() on two servers

2003-08-29 Thread David T-G
Manuel, et al -- ...and then Manuel Lemos said... % % Hello, % % On 08/27/2003 11:34 AM, David T-G wrote: % % For the delivery, you can always tune qmail to try deliverying messages % % to more recipients at the same time tweaking concurrencyremote option. % % The default it 20 recipients at

Re: [PHP] speed of mail() on two servers

2003-08-29 Thread David T-G
Raditha, et al -- ...and then Raditha Dissanayake said... % % Hello David, Hi! % looks like a bit of a tough one :-) guess you might be better off trying Indeed. % one of the qmail groups instead of this one. Sorry my own qmail Oh, whoops! Yes, I'm already being a general pest on the

Re: [PHP] jpeg libraries.

2003-08-29 Thread Curt Zirzow
* Thus wrote Jason Wong ([EMAIL PROTECTED]): On Friday 29 August 2003 23:19, Mike At Spy wrote: * Thus wrote Mike At Spy ([EMAIL PROTECTED]): It did install some jpeg stuff under /usr/local/bin, but I don't see anything added to /usr/local/lib. After that, I re-compiled php

RE: [PHP] jpeg libraries.

2003-08-29 Thread Mike At Spy
Does anyone know how to get jpeg enabled in gd? Yes. I'm using php 4.3.3. Unless dramatic changes were made in 4.3.3 then the procedure should be the same as the previous versions. Namely: --with-gd --with-jpeg-dir=/directory/where/jpeg/libs/are/installed manual Image functions

Re: [PHP] imagejpeg function output

2003-08-29 Thread Marek Kilimajer
You need to send the right header, in this case header('Content-type: image/jpg'); Mike At Spy wrote: Just to make sure no one is lead astray - I still have an issue getting jpeg enabled on a server with gd and php. I am asking this question 'cause I am doing some work on a different server where

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
Hi, Thanks for the advice. I will run this past the people in charge of the network. I'm afraid that I'm not really very familiar with our network here (I'm just an intern :) ) I am pretty sure that all of our files are sent from a single server, which is neither the php server or my

Re: [PHP] jpeg libraries.

2003-08-29 Thread Jason Wong
On Saturday 30 August 2003 00:47, Mike At Spy wrote: --with-gd --with-jpeg-dir=/directory/where/jpeg/libs/are/installed manual Image functions Read the above again (see below). Ok, now I did instal what I believe were the jpeg libraries, or at least were lead to believe they were.

RE: [PHP] imagejpeg function output

2003-08-29 Thread Mike At Spy
Hyeah, but since this is with a page, I keep getting the 'error, headers already sent' thing. How do I get past that? :) Thanks for your help! -Mike -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: Friday, August 29, 2003 12:51 PM To: Mike At Spy

Re: [PHP] imagejpeg function output

2003-08-29 Thread Marek Kilimajer
With a page? Well you must decide if you want to send html or image, you cannot send both at the same time. Calls to header() must be placed before any output is sent to the browser. Mike At Spy wrote: Hyeah, but since this is with a page, I keep getting the 'error, headers already

Re: [PHP] Foring a file download *and* page reload

2003-08-29 Thread Marek Kilimajer
Curt Zirzow wrote: ... (suggested by Marek Kilimajer) ? header(Content-Type: multipart/mixed; boundary=\-Boundary-12399\); This will only work if the browser supports multipart/mixed. And I don't think any browser supports this. I bet any browser except explorer ;) But because explorer does

Re: [PHP] open php from

2003-08-29 Thread Alvaro Martinez
Thank you to you them all Curt Zirzow [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] * Thus wrote Jonathan Pitcher ([EMAIL PROTECTED]): Alvaro, To redirect use the header function (http://www.php.net/header) The call would be something like: header(Location:

Re: [PHP] PHP Interview questions

2003-08-29 Thread Pete James
Binary search. I'd say I have too much time on my hands, but I don't. ?php $eggs = array(1,1,1,1,1,2,1,1,1,1,1,1); $eggs1_6 = array_slice($eggs, 0, 6); $eggs7_12 = array_slice($eggs, 6, 6); if (array_sum($eggs1_6) array_sum($eggs7_12)) $half_eggs = $eggs1_6; else $half_eggs =

Re: [PHP] open php from

2003-08-29 Thread DvDmanDT
Yes, I's said so... Although, I use Location: newfile.php in lots of places and it sure works even if it's the wrong way to do it... Although, it's not tested with very many browsers so I guess not everyone can view it (the new page)... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL

Re: [PHP] imagejpeg function output

2003-08-29 Thread DvDmanDT
Well, at the page where you want to show the image, you must type like img src=generate_image.php, and then in generate_image.php, you have the image generation code... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Mike At Spy [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL

Re: [PHP] open php from

2003-08-29 Thread Chris Shiflett
--- DvDmanDT [EMAIL PROTECTED] wrote: Yes, I's said so... Although, I use Location: newfile.php in lots of places and it sure works even if it's the wrong way to do it... Although, it's not tested with very many browsers so I guess not everyone can view it (the new page)... Faced with this

[PHP] Form Parameters

2003-08-29 Thread Seth Willits
This might be staring straight at me, but I can't seem to figure out how to reference form parameters in php code. For example: ?php if ($formName[fieldName] == this) { // do this } else { // do that } ? Thanks, Seth Willits

Re: [PHP] Form Parameters

2003-08-29 Thread Chris Shiflett
--- Seth Willits [EMAIL PROTECTED] wrote: This might be staring straight at me, but I can't seem to figure out how to reference form parameters in php code. For example: ?php if ($formName[fieldName] == this) { // do this } else { // do that

[PHP] Re: Form Parameters

2003-08-29 Thread DvDmanDT
$_REQUEST[fieldName] (there are also $_GET and $_POST, but $_REQUEST works with both of them, although, with cookies and env vars as well)... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Seth Willits [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] This might be

Re: [PHP] Form Parameters

2003-08-29 Thread David Otton
On Fri, 29 Aug 2003 11:00:14 -0700, you wrote: This might be staring straight at me, but I can't seem to figure out how to reference form parameters in php code. For example: ?php if ($formName[fieldName] == this) { // do this } else { // do that

Re: [PHP] Form Parameters

2003-08-29 Thread Chris Sherwood
depends on whether or not you post or get then you use $_POST[varname] or $_GET[varname] hope this helps - Original Message - From: Seth Willits [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 29, 2003 11:00 AM Subject: [PHP] Form Parameters This might be staring

Re: [PHP] Form Parameters

2003-08-29 Thread Seth Willits
D'oh! Okay, thanks for pointing me to those variables. Is there a list of global variables somewhere? I'm only using the online documentation and it's arranged a little awkward. After playing with $_POST, I couldn't figure out why it wasn't working, but I just realized that the names are

[PHP] disable notice errors

2003-08-29 Thread fatih olcer
how to disable notice error output i have set error_reporting = 2039 (in PHP.ini); but it doesnt work.i still get notice :Undefined index.. RH9,PHP4 thanks for help. fatih. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] disable notice errors

2003-08-29 Thread Pete James
You have two solutions, one of which is better. A. Fix the problem, and define your indexes. B. Set error_reporting = E_ALL ~E_NOTICE I'd strongly recommend doing A before B, as PHP doesn't carp for the sake of carping. fatih olcer wrote: how to disable notice error output i have set

  1   2   >