[PHP] How do I start at a specific position in an array? Is there a function?

2005-01-08 Thread Brent Clements
I know this is a simple question because I could easily write a loop to move to the specific position in the array, but I want to know is there a function to move the array pointer position to a specific position in the array? Thanks, Brent -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] How do I underline a string using php and fonts?

2004-12-26 Thread Richard Lynch
Brent Clements wrote: > I have always wondered this and maybe you guys can help. > > How do I underline a bit of text using True Type Fonts? > > Right now, I am creating imagelines but I don't think that's the most > efficient way of doing it. > > Anybody know how to do "underlines" but using the f

Re: [PHP] How do I underline a string using php and fonts?

2004-12-23 Thread Jason Wong
On Thursday 23 December 2004 19:52, Brent Clements wrote: > I have always wondered this and maybe you guys can help. > > How do I underline a bit of text using True Type Fonts? > > Right now, I am creating imagelines but I don't think that's the most > efficient way of doing it. > > Anybody know ho

[PHP] How do I underline a string using php and fonts?

2004-12-23 Thread Brent Clements
I have always wondered this and maybe you guys can help. How do I underline a bit of text using True Type Fonts? Right now, I am creating imagelines but I don't think that's the most efficient way of doing it. Anybody know how to do "underlines" but using the font itself? Thanks, Brent -- PHP

Re: [PHP] How do I find my php.ini file?

2004-12-22 Thread Rasmus Lerdorf
John Nichel wrote: Don wrote: Hi, Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not the

Re: [PHP] How do I find my php.ini file?

2004-12-17 Thread S. Kang
use phpinfo() function and look for "Configuration File (php.ini) Path". for example of php 5.0x, it is normally /etc/php.5.ini good luck. Jay Blanchard wrote: [snip] Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my

Re: [PHP] How do I find my php.ini file?

2004-12-17 Thread John Holmes
Don wrote: Hi, Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not there. How can I find it

Re: [PHP] How do I find my php.ini file?

2004-12-17 Thread John Nichel
Don wrote: Hi, Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not there. How can I find it

Re: [PHP] How do I find my php.ini file?

2004-12-17 Thread Matthew Sims
> Hi, > > Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 > > Recent PHP installation. I created a phpinfo() page. When I display it > in > my browser, it says: > > Configuration File (php.ini) Path/etc > > Yet when I log on to my server and look for it in /etc, it is not there. > > Ho

RE: [PHP] How do I find my php.ini file?

2004-12-17 Thread Jay Blanchard
[snip] Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not there. How can I find it???

[PHP] How do I find my php.ini file?

2004-12-17 Thread Don
Hi, Fedora Core 3, PHP 5.03, MySQL 4.17, Apache 2.0.52 Recent PHP installation. I created a phpinfo() page. When I display it in my browser, it says: Configuration File (php.ini) Path/etc Yet when I log on to my server and look for it in /etc, it is not there. How can I find it??? T

Re: [PHP] How do I get referer in php?

2004-11-18 Thread Jason Wong
On Thursday 18 November 2004 22:10, John Nichel wrote: > Well, what do ya know, it is. Since when did a comma become a > concatenation operator??? That's it, I'm going home. ;) It didn't. It works for echo because echo accepts more than one parameter passed to it separated by commas. -- Jaso

Re: [PHP] How do I get referer in php?

2004-11-18 Thread John Nichel
John Holmes wrote: John Nichel wrote: Didn't notice that those were commas and not periods either, eh? ;) Didn't notice the result is the same either way, eh? ;) Well, what do ya know, it is. Since when did a comma become a concatenation operator??? That's it, I'm going home. ;) -- John C. Nic

RE: [PHP] How do I get referer in php?

2004-11-17 Thread Zareef Ahmed
PROTECTED] Subject: Re: [PHP] How do I get referer in php? John Nichel wrote: > M. Sokolewicz wrote: > >>> I'm sure he meant >>> >>> echo '',print_r($_SERVER,1),''; > > ---^---^ > >>> then... ;)

Re: [PHP] How do I get referer in php?

2004-11-17 Thread John Holmes
John Nichel wrote: M. Sokolewicz wrote: I'm sure he meant echo '',print_r($_SERVER,1),''; ---^---^ then... ;) hadn't noticed that param... I feel ashamed... :$ Didn't notice that those were commas and not periods either, eh? ;) Didn't notice the result is the same either

Re: [PHP] How do I get referer in php?

2004-11-17 Thread John Nichel
M. Sokolewicz wrote: I'm sure he meant echo '',print_r($_SERVER,1),''; ---^---^ then... ;) hadn't noticed that param... I feel ashamed... :$ Didn't notice that those were commas and not periods either, eh? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PR

Re: [PHP] How do I get referer in php?

2004-11-17 Thread M. Sokolewicz
John Holmes wrote: M. Sokolewicz wrote: Chris W. Parker wrote: echo "",print_r($_SERVER),""; why are you echoing the result of print_r ?! The result is a boolean true or false. the actual output ON SCREEN is done from WITHIN the function automatically. Echoing the result is useless, and even m

RE: [PHP] How do I get referer in php?

2004-11-17 Thread Chris W. Parker
John Nichel on Wednesday, November 17, 2004 2:01 PM said: > M. Sokolewicz wrote: >>> I'm sure he meant >>> >>> echo '',print_r($_SERVER,1),''; > ---^---^ > >>> then... ;) >>> >> hadn't noticed that param... I feel ashamed... :$ >> >

Re: [PHP] How do I get referer in php?

2004-11-17 Thread John Holmes
M. Sokolewicz wrote: Chris W. Parker wrote: echo "",print_r($_SERVER),""; why are you echoing the result of print_r ?! The result is a boolean true or false. the actual output ON SCREEN is done from WITHIN the function automatically. Echoing the result is useless, and even more, it adds to con

Re: [PHP] How do I get referer in php?

2004-11-17 Thread M. Sokolewicz
Chris W. Parker wrote: Brent Clements on Wednesday, November 17, 2004 11:55 AM said: Let's say I have a page at another site that links to a php script on my server. Is there anyway to get the referrer to the php script using php? Yes, and more. echo "",print_r(

Re: [PHP] How do I get referer in php?

2004-11-17 Thread Robby Russell
On Wed, 2004-11-17 at 13:54 -0600, Brent Clements wrote: > Let's say I have a page at another site that links to a php script on my > server. Is there anyway to get the referrer to the php script using php? > > Look in the $_SERVER array. -Robby -- /*** *

RE: [PHP] How do I get referer in php?

2004-11-17 Thread Chris W. Parker
Brent Clements on Wednesday, November 17, 2004 11:55 AM said: > Let's say I have a page at another site that links to a php script on > my server. Is there anyway to get the referrer to the php script > using php? Yes, and more. ",print_r($_SERVER),""; -- PHP Gen

Re: [PHP] How do I get referer in php?

2004-11-17 Thread Randy Rinehart
Yes, you should be able to use $_SERVER['HTTP_REFERER']; -Randy Rinehart - Original Message - From: "Brent Clements" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 17, 2004 1:54 PM Subject: [PHP] How do I get referer in php

[PHP] How do I get referer in php?

2004-11-17 Thread Brent Clements
Let's say I have a page at another site that links to a php script on my server. Is there anyway to get the referrer to the php script using php? Thanks, Brent

Re: [PHP] How do I su to another account??

2004-11-11 Thread Scott Fletcher
Yea, switch users so I can do the chmod, chown, etc... Um, I'll look into it. Thanks, Scott "Ian Firla" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Do you really need to switch users or do you need to run something as > another user? > > Try looking into setting up and using

Re: [PHP] How do I su to another account??

2004-11-11 Thread Ian Firla
Do you really need to switch users or do you need to run something as another user? Try looking into setting up and using sudo. Ian On Thu, 2004-11-11 at 09:20 -0500, Scott Fletcher wrote: > How do I su (switch user) to another account from the nobody in php? I > haven't got it to work, so I g

[PHP] How do I su to another account??

2004-11-11 Thread Scott Fletcher
How do I su (switch user) to another account from the nobody in php? I haven't got it to work, so I get the impression that it is either I'm doing it all wrong in PHP script or that the nobody doesn't have the authority to do so. Have anyone who ever successfully do it please post a sample script

Re: [PHP] How do I do italics on a text string in an image?

2004-10-12 Thread Brent Clements
Jason, thanks for the reminder, I completely forgot about the italic version(s). -Brent - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 2004 8:08 PM Subject: Re: [PHP] How do I do italics on a text stri

Re: [PHP] How do I do italics on a text string in an image?

2004-10-12 Thread Jason Wong
On Wednesday 13 October 2004 08:30, Brent Clements wrote: > I've got the following string: > > $text = "football"; > > How do I put that string in italics using a true type font on an image? Use the italic version of the font. In case you're wondering, the italic/bold that you can select on fonts

Re: [PHP] How do I know whether PHP is installed as CGI or Apache Module.

2004-10-04 Thread raditha dissanayake
Mulley, Nikhil wrote: Hi All, Is there any way out finding ,How do the PHP is installed ,whether as Apache Module or CGI. phpinfo() Thanks, Nikhil. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://w

[PHP] How do I know whether PHP is installed as CGI or Apache Module.

2004-10-04 Thread Mulley, Nikhil
Hi All, Is there any way out finding ,How do the PHP is installed ,whether as Apache Module or CGI. Thanks, Nikhil.

Re: [PHP] How do I produce a random database query for each day or week?

2004-10-03 Thread dirk
My idea on your problem would be to use a random sql-query selecting a cd from your database. SELECT * FROM my_table ORDER BY RAND() LIMIT 1; This could be placed in a script that is executed only by the first user in a week and the result is stored e.g. in a text file and included in any later c

RE: [PHP] How do I produce a random database query for each day or week?

2004-10-01 Thread -{ Rene Brehmer }-
At 10:31 01-10-2004, Graham Cossey wrote: A couple of thoughts: As you want to cycle through the list rather than randomly (with repetition) picking from the list, have you considered storing the last CD shown details in the DB? If each CD has a sequential ID then each week (or day) you increment t

RE: [PHP] How do I produce a random database query for each day or week?

2004-10-01 Thread Graham Cossey
own 'cycle' through the list. HTH Graham -Original Message- From: I.A. Gray [mailto:[EMAIL PROTECTED] Sent: 01 October 2004 07:34 To: [EMAIL PROTECTED] Subject: [PHP] How do I produce a random database query for each day or week? Hi, My brain is working very slowly this morning (

[PHP] How do I produce a random database query for each day or week?

2004-10-01 Thread I.A. Gray
Hi, My brain is working very slowly this morning (maybe that is because of having 5hrs sleep...) Could someone help me with this problem. I would like to show a different CD with information on it, on the home page each week- a kind of 'recording of the week' and I would also like to have on the

Re: [PHP] How do I make an 'email this page' feature?

2004-09-30 Thread Andrew Kreps
On Thu, 30 Sep 2004 08:33:45 +0100, PHP Tech <[EMAIL PROTECTED]> wrote: > Do you mean that I would have a different ID no. for different pages and > pass that variable to the 'email this page' page which will then send the > url according to the ID number? If that's what you mean it sounds like a

RE: [PHP] How do I make an 'email this page' feature?

2004-09-30 Thread PHP Tech
r 2004 23:20 To: PHP List Subject: Re: [PHP] How do I make an 'email this page' feature? On Wed, 29 Sep 2004 22:03:07 +0100, PHP Tech <[EMAIL PROTECTED]> wrote: > > I thought by clicking the link this would be a form sending the url of the > page to the next page and so

Re: [PHP] How do I make an 'email this page' feature?

2004-09-29 Thread Andrew Kreps
On Wed, 29 Sep 2004 22:03:07 +0100, PHP Tech <[EMAIL PROTECTED]> wrote: > > I thought by clicking the link this would be a form sending the url of the > page to the next page and so I could then use $_GET to retrieve this. I > also thought of using $_SERVER and getting the referer web address. Th

Re: [PHP] How do I make an 'email this page' feature?

2004-09-29 Thread Matthew Fonda
Check out the PHP mail function: http://www.php.net/manual/en/ref.mail.php http://www.php.net/manual/en/function.mail.php On Wed, 2004-09-29 at 14:03, PHP Tech wrote: > Hi. > > I am on a tight deadline here- I am trying to get a feature on a website I > am creating where you click a link on a pag

[PHP] How do I make an 'email this page' feature?

2004-09-29 Thread PHP Tech
Hi. I am on a tight deadline here- I am trying to get a feature on a website I am creating where you click a link on a page which says 'email this page' and it takes you to a new page with a form asking you to enter your name, email and an email address and name of a person you would like to email

[PHP] How do I send XML attributes via Soap?

2004-09-21 Thread Yoed Anis
Hi, I'm having trouble sending a request containing XML attributes in a soap request. I don't know how to go about doing it. Previously to pass XML as a soap request from my client to the server I would go throw the following steps: (1) Create the XML string. (i.e xmlstr = << XML;) (2) Than I

Re: [PHP] How do I find out if a string will fit in an area of an image?

2004-08-24 Thread Curt Zirzow
* Thus wrote Brent Clements: > Hi All, > > > Let's say I have a string of text. > > $foo = "I WANT ALot of Text to be diSPLAYed!" > > I have an area on my image that is around 386 pixels wide. > > How do I find out if my text will fit in that area using any size font? This isn't as simple of

Re: [PHP] How do I find out if a string will fit in an area of an image?

2004-08-24 Thread Justin Patrin
On Tue, 24 Aug 2004 21:49:03 -0500, Brent Clements <[EMAIL PROTECTED]> wrote: > Hi All, > > Let's say I have a string of text. > > $foo = "I WANT ALot of Text to be diSPLAYed!" > > I have an area on my image that is around 386 pixels wide. > > How do I find out if my text will fit in that area

[PHP] How do I find out if a string will fit in an area of an image?

2004-08-24 Thread Brent Clements
Hi All, Let's say I have a string of text. $foo = "I WANT ALot of Text to be diSPLAYed!" I have an area on my image that is around 386 pixels wide. How do I find out if my text will fit in that area using any size font? Thanks, Brent

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread PHP Junkie
Ave, Yes indeed that's what it's doing. But that's ok... My main concern was for Windows users because that's the majority of the users for this application. Thanks. On 8/23/04 12:50 PM, "Jonathan Haddad" <[EMAIL PROTECTED]> wrote: > In Safari it'll download the file and then open it. > > Jo

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread Jonathan Haddad
In Safari it'll download the file and then open it. Jon PHP Junkie wrote: Ave, IT WORKS!! There wasn't one bit of a problem.. I'll just paste the code here again for anyone who might be looking for it. I guess I was very close to it but just doing one thing wrong... I wasn't specifying the Basena

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread PHP Junkie
Ave, IT WORKS!! There wasn't one bit of a problem.. I'll just paste the code here again for anyone who might be looking for it. I guess I was very close to it but just doing one thing wrong... I wasn't specifying the Basename directive. Although this doesn't work on MAC... It works on Windows

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread Daniel Schierbeck
Php Junkie wrote: Ave, I'm facing a little problem. I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT & DOC. What I want to do is basically... When the user clicks on

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread Torsten Roehr
"Php Junkie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ave, > > I'm facing a little problem. > I have created a File Manager Application for my company which has a place > where authorized users can download the stored files. The files are of > various MIME Types.. Mainly PDF, T

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread John Nichel
PHP Junkie wrote: Ave, I'm facing a little problem. I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT & DOC. What I want to do is basically... When the user clicks on

Re: [PHP] How do I open Save As Dialog Box?

2004-08-23 Thread John Holmes
From: "PHP Junkie" <[EMAIL PROTECTED]> I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT & DOC. What I want to do is basically... When the user clicks on the Download

[PHP] How do I open Save As Dialog Box?

2004-08-23 Thread PHP Junkie
Ave, I'm facing a little problem. I have created a File Manager Application for my company which has a place where authorized users can download the stored files. The files are of various MIME Types.. Mainly PDF, TXT & DOC. What I want to do is basically... When the user clicks on the Download But

Re: [PHP] Re:Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-20 Thread Chris Shiflett
--- John Holmes <[EMAIL PROTECTED]> wrote: > From: "fongming" <[EMAIL PROTECTED]> > > You also can use follows: > > > > > > You can, if you want to make the (incorrect) assumption that everyone > will have "PHPSESSID" as the name of their sessions... > > That's what session_name() is for and th

Re: [PHP] Re:Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-20 Thread John Holmes
From: "fongming" <[EMAIL PROTECTED]> You also can use follows: You can, if you want to make the (incorrect) assumption that everyone will have "PHPSESSID" as the name of their sessions... That's what session_name() is for and the SID constant... ---John Holmes... -- PHP General Mailing List (

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-20 Thread fongming
Hi: May be you can use follows: some thing -- ¡»From: ¦¹«H¬O¥Ñ®ç¤p¹q¤l¶l¥ó1.5ª©©Òµo¥X... http://www.tyes.tyc.edu.tw [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re:Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-20 Thread fongming
Hi: You also can use follows: -- ¡»From: ¦¹«H¬O¥Ñ®ç¤p¹q¤l¶l¥ó1.5ª©©Òµo¥X... http://www.tyes.tyc.edu.tw [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-20 Thread John Holmes
From: "Don" <[EMAIL PROTECTED]> OK! I got it to work. Although session_id() would not work, using the SID constant did. Below is the code I used: Compare the URL created with this: Increment Your Counter! to the URL created with this: echo 'Increment Your Counter!'; and you'll see the reason why

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-20 Thread Matt M.
> = Start of Code = > session_start(); > header("Cache-control: private"); //IE 6 Fix > if(!$_SESSION['count']){ > $_SESSION['count'] = 1; > $sid = session_id(); > echo 'Session is: ' . $sid . ''; > } else { > $_SESSION['count']++; > } > echo 'You have visited pages so > f

RE: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-20 Thread Don
OK! I got it to work. Although session_id() would not work, using the SID constant did. Below is the code I used: = Start of Code = First time through'; } else { $_SESSION['count']++; } ?> You have visited pages so far! Increment Your Counter!== End of Code == -- PHP Ge

RE: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-20 Thread Don
Dazed and confused. I've tried the suggestions thus far (I believe) and no luck. Below is the current code. For somw reason, when I disable cookies in my browser: 1. The session ID is NOT being passed in the URL 2. The session ID changes everytime I click on the link; probably because it create

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-19 Thread John Holmes
Don wrote: If I change my browsers setting to block all cookies, my session variable appears not to increment and refreshing the screen displays the same text all the time. You need to pass the session id in the URL if cookies are off. There is a constant, SID, that you may be able to use, or othe

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-19 Thread Jake Stonebender
On Thu, 19 Aug 2004 16:50:28 -0400, Don <[EMAIL PROTECTED]> wrote: > Q1. Is this because sessions use session cookies and IE blocks these at high > security? > > Q2. I was told that if cookies are turned off, there is a way to use the > session ID variable to accomplish what I want instead of cook

Re: [PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-19 Thread Matt M.
On Thu, 19 Aug 2004 16:50:28 -0400, Don <[EMAIL PROTECTED]> wrote: > Hi, > > I have a PHP file containing the code below. It works great when all > default setting exist in IE; each time I click on refresh, the session > variable is incremented and displays on the screen. If I change my browsers

[PHP] How do I use sessions if cookies are turned off in the browser?

2004-08-19 Thread Don
Hi, I have a PHP file containing the code below. It works great when all default setting exist in IE; each time I click on refresh, the session variable is incremented and displays on the screen. If I change my browsers setting to block all cookies, my session variable appears not to increment

Re: [PHP] How do I return the error

2004-07-28 Thread Tom Rogers
Hi, Wednesday, July 28, 2004, 11:56:16 PM, you wrote: MO> Hi I have this function below - if it reurns false I want to MO> also return the error so I can print it in my calling function. MO> Can I do this? MO> Cheers MO> Matt MO> function fileUpload($file) { MO> if ($file['type'] == "image/gi

Re: [PHP] How do I return the error

2004-07-28 Thread Curt Zirzow
* Thus wrote Matthew Oatham: > what about returning the error the copy function would have thrown ? * turn display_errors off: ini_set('display_errors', false); * turn track_errors on: ini_set('track_errors', true); if (! copy(...) ) { echo "copy failed: $php_errormsg"; } Curt -- First, let

Re: [PHP] How do I return the error

2004-07-28 Thread John Nichel
Matthew Oatham wrote: what about returning the error the copy function would have thrown ? Thanks http://us4.php.net/copy It only returns true or false. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] How do I return the error

2004-07-28 Thread Matthew Oatham
what about returning the error the copy function would have thrown ? Thanks - Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 28, 2004 3:00 PM Subject: Re: [PHP] How do I return the error > Matthew Oa

Re: [PHP] How do I return the error

2004-07-28 Thread John Nichel
Matthew Oatham wrote: Hi I have this function below - if it reurns false I want to also return the error so I can print it in my calling function. Can I do this? Cheers Matt function fileUpload($file) { if ($file['type'] == "image/gif" || $file['type'] == "image/pjpeg"){ if (@copy ($file['t

[PHP] How do I return the error

2004-07-28 Thread Matthew Oatham
Hi I have this function below - if it reurns false I want to also return the error so I can print it in my calling function. Can I do this? Cheers Matt function fileUpload($file) { if ($file['type'] == "image/gif" || $file['type'] == "image/pjpeg"){ if (@copy ($file['tmp_name'], "images/

Re: [PHP] How do I use RewriteEngine for similar parameters?

2004-05-26 Thread Matt Matijevich
[snip] I am trying to use the RewriteEngine for the following two lines. One has one parameter and the other has two? [/snip] this is more of an apache question you could get better answers on an apache list http://httpd.apache.org/docs/misc/rewriteguide.html just check the first for prd_id fir

Re: [PHP] How do I use RewriteEngine for similar parameters?

2004-05-26 Thread raditha dissanayake
Jake Johnson wrote: Hello, I am trying to use the RewriteEngine for the following two lines. One has one parameter and the other has two? You might want to try an apache group. And you might want to read the manual, particularly the examples before you post in an apache group. http://www.plu

[PHP] How do I use RewriteEngine for similar parameters?

2004-05-26 Thread Jake Johnson
Hello, I am trying to use the RewriteEngine for the following two lines. One has one parameter and the other has two? http://www.plutoid.com/index.php?show=semi http://www.plutoid.com/index.php?prd_id=5248&show=semi Thanks in advance! -- Jake Johnson http://www.plutoid.com -- PHP General Mai

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread Oliver Hankeln
Ashley M. Kirchner wrote: raditha dissanayake wrote: a cracker's dream and programmer's worst nightmare Must everything be negative? You can not assume what other people are trying to do. Either answer the question, or don't answer at all. And BTW, I don't understand it. ->View ->Page Sourc

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread Brian Dunning
You probably mean... $string = file_get_contents("http://www.123.com";); Whoops Well, it worked, so I must have typed it correctly in my code... :) :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread René Fournier
On Thursday, May 20, 2004, at 06:42 PM, Brian Dunning wrote: On May 20, 2004, at 5:43 PM, raditha dissanayake wrote: I'm sure there's a really simple way to do this: how can I grab the source code of a specified web page and store it in a variable? Never mind, I found it: $string = get_file_conten

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread Ashley M. Kirchner
raditha dissanayake wrote: a cracker's dream and programmer's worst nightmare Must everything be negative? You can not assume what other people are trying to do. Either answer the question, or don't answer at all. -- W | I haven't lost my mind; it's backed up on tape somewhere. +---

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread Brian Dunning
On May 20, 2004, at 5:43 PM, raditha dissanayake wrote: I'm sure there's a really simple way to do this: how can I grab the source code of a specified web page and store it in a variable? Never mind, I found it: $string = get_file_contents('www.123.com'); - Brian -- PHP General Mailing List (http:

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread Richard Davey
Hello Brian, Friday, May 21, 2004, 1:19:19 AM, you wrote: BD> I'm sure there's a really simple way to do this: how can I grab the BD> source code of a specified web page and store it in a variable? Is BD> there something like this: BD> $siteCode = functionI'mLookingFor('www.123.com/index.htm');

Re: [PHP] How do I grab the contents of a web page?

2004-05-20 Thread raditha dissanayake
Brian Dunning wrote: I'm sure there's a really simple way to do this: how can I grab the source code of a specified web page and store it in a variable? Is there something like this: $siteCode = functionI'mLookingFor('www.123.com/index.htm'); a cracker's dream and programmer's worst nightmare Th

[PHP] How do I grab the contents of a web page?

2004-05-20 Thread Brian Dunning
I'm sure there's a really simple way to do this: how can I grab the source code of a specified web page and store it in a variable? Is there something like this: $siteCode = functionI'mLookingFor('www.123.com/index.htm'); Thanks, - Brian -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] how do I make a script wait ?

2004-04-13 Thread Curt Zirzow
* Thus wrote Damian Brown ([EMAIL PROTECTED]): > The code is shown below > > ... > $key=1 ; > while ($row=mysql_fetch_row($result)){ > ?> > $row[5] ' , ' $row[6] ' )"); > $a = array( $key => $row[6] ); > $key=$key + 1 ; ?> btw, $a will only have one element in it no matter how many results are re

Re: [PHP] how do I make a script wait ?

2004-04-13 Thread Curt Zirzow
* Thus wrote Damian Brown ([EMAIL PROTECTED]): > I have now set the sleep to 10 seconds > and it is still executing the lower code before finishing > doing the search of the database > it must be sleeping during the search and so the sleep > command has no effect > I need to make it wait before exe

Re: [PHP] how do I make a script wait ?

2004-04-13 Thread Damian Brown
unction.set-time-limit.php Jason -Original Message- From: David Risner [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 9:42 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] how do I make a script wait ? There is a default maximum run time for scripts of 30 seconds (it is max_executio

RE: [PHP] how do I make a script wait ?

2004-04-12 Thread Jason Sheets
seconds. http://us3.php.net/manual/en/function.set-time-limit.php Jason -Original Message- From: David Risner [mailto:[EMAIL PROTECTED] Sent: Monday, April 12, 2004 9:42 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] how do I make a script wait ? There is a default maximum run time for

Re: [PHP] how do I make a script wait ?

2004-04-12 Thread David Risner
There is a default maximum run time for scripts of 30 seconds (it is max_execution_time in the php.ini file), so unless you have changed this, you might be running into the maximum run time. -- David Risner On Tue, 13 Apr 2004 04:06:51 +0100, "Damian Brown" <[EMAIL PROTECTED]> said: > The code is

Re: [PHP] how do I make a script wait ?

2004-04-12 Thread Damian Brown
The code is shown below there is now a delay before the page is displayed of 50 secs it must be hitting the sleep command as it searches, and so stops searching the database table is there any workaround ? echo "Your Search Results are as follows"; ?> Title URL Description for

Re: [PHP] how do I make a script wait ?

2004-04-12 Thread Ryan A
Hey, Use the sleep() function. Cheers, -Ryan On 4/13/2004 4:42:56 AM, Damian Brown ([EMAIL PROTECTED]) wrote: > I am writing a script that searches through a database table, and then > there > is an array function below the searching, but the array function gets > executed before > the database t

[PHP] how do I make a script wait ?

2004-04-12 Thread Damian Brown
I am writing a script that searches through a database table, and then there is an array function below the searching, but the array function gets executed before the database table searching finishes and I want it to wait until the database has been searched before executing the array code Thanks

[PHP] how do i detect the exsistens of a network printer?

2004-03-15 Thread Shay
I need to determine if the printer is on line before sending a document to it, it is connected to a unix machine running solaris 8, any idea? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how do i detect the exsistens of a network printer?

2004-03-09 Thread Shay
I am need to determine if the printer is on line before sending an to it, it is connected to a unix amchine running solaris 8, any idea? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do I regain the ability to create databases

2004-01-23 Thread Chris W. Parker
Freedomware on Friday, January 23, 2004 3:19 AM said: > HOWEVER, it said the better method was to type in either "http" or (I > can't remember the second choice offhand). I think I did it on line > 133 (see below. Just to clarify. The difference between the two meth

Re: [PHP] How do I regain the ability to create databases

2004-01-23 Thread Freedomware
Sheez, maybe you fixed it already... I typed in the username and password, but did NOT delete http on line 133. I saved the page, but didn't restart MySQL, and it still works - I think. I haven't created a new database yet, but it's inviting me to! Thanks for the tip. -- PHP General Mailing L

Re: [PHP] How do I regain the ability to create databases

2004-01-23 Thread Freedomware
Martin Luethi wrote: check if the user you defined in phpMyAdmin/config.inc.php ($cfg['Servers'][$i]['user'] = ???) has the right to create new databases (db: mysql / table: user / field: Create_priv='Y') restart the mysql-server after altering the database mysql H... I'm a little confused. I

Re: [PHP] How do I regain the ability to create databases (phpMyAdmin)?

2004-01-23 Thread Martin Luethi
check if the user you defined in phpMyAdmin/config.inc.php ($cfg['Servers'][$i]['user'] = ???) has the right to create new databases (db: mysql / table: user / field: Create_priv='Y') restart the mysql-server after altering the database mysql g. martin luethi Fri, 23 Jan 2004 01:26:46 -0800 Freed

[PHP] How do I regain the ability to create databases (phpMyAdmin)?

2004-01-23 Thread Freedomware
I've finally got both PHP and MySQL up and running, and I've learned how to create new users and databases (at least the basics). But I was told I should add a password to root/localhost, and that's been a major pain in the butt. First, it knocked out phpMyAdmin. Then I learned how to edit a fi

Re: [PHP] How do I write to an XML file

2004-01-12 Thread memoimyself
Hello Tim, On 12 Jan 2004 at 17:50, Tim Burgan wrote: > I'm wondering if anyone can help me or point me in the right direction > regarding how I can write to an XML file. Writing to an XML file works the same way as writing to any other file: you need to open the file with fopen(), append to

Re: [PHP] How do I write to an XML file

2004-01-12 Thread Richard Davey
Hello Tim, Monday, January 12, 2004, 7:20:07 AM, you wrote: TB> I'm new to PHP - I've just figured out how to basically write data to a TB> text file. TB> What I want to do is have a user submit data (email address & a question) TB> via a form that is written to the xml file, then have a suppor

[PHP] How do I write to an XML file

2004-01-12 Thread Tim Burgan
Hello, I'm wondering if anyone can help me or point me in the right direction regarding how I can write to an XML file. I'm new to PHP - I've just figured out how to basically write data to a text file. What I want to do is have a user submit data (email address & a question) via a form that is

[PHP] How do I do this select?

2004-01-11 Thread Chris W
I sent this to the mysql list but it doesn't seem to be working so I was hoping someone here could help. I have the following 2 tables. CREATE TABLE User ( UserKey INT NOT NULL AUTO_INCREMENT, UserIDCHAR(16) NOT NULL UNIQUE , Name VARCHAR(20), PRIMARY KEY (UserKey) ); CREATE T

<    1   2   3   4   5   6   7   8   9   >