[PHP] Re: LoadModule Help

2003-06-03 Thread sven
do you have an exact error message? so far i can only point you to some often made mistakes: - did you copy php4ts.dll to c:\winnt\system32 - did you copy php.ini.dist to c:\winnt, renamed it to php.ini and modified it? - in httpd.conf added these two lines? LoadModule php4_module PHP_DIR/s

RE: [PHP] Broken links report

2003-06-03 Thread Ernest E Vogelsinger
At 07:55 03.06.2003, Kjell Hansen said: [snip] >Thanx Chris, >this is exactly what I do. And I get >"Warning: fopen(http://www.whatever.com/index.html) [function.fopen]: failed >to create stream: HTTP request failed! HTTP/1.1 404 Object Not Found" > >I don't

RE: [PHP] Broken links report

2003-06-03 Thread John Coggeshall
On Tue, 2003-06-03 at 04:06, Ernest E Vogelsinger wrote: > At 07:55 03.06.2003, Kjell Hansen said: > [snip] > >I don't want to get the warning. I know I can switch it off but there are > >other warnings I would like to see. > [snip]---

[PHP] on-line

2003-06-03 Thread Diana Castillo
en línea da errores el funcionamiento de esta pagina , pruébalo también en netscape. http://res.interhotel.com/reservas/diana/site/admin/ProviderPriority.php gracias, diana -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Auto refresh

2003-06-03 Thread Jakob Mund
My advice to you is to use javascript.. "Kurosh Burris" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi Everyone, > > I'm now trying to add an "auto refresh" in a .php file, so that it > automatically refreshes the same page every 15 mins. Is there an upper > limit to the h

Re: [PHP] foreach and mysql_fetch_array problem

2003-06-03 Thread Bix
I'm fine with using while loops, use them for most of my listing work, but I wanted to try using a foreach loop instead but it seemed not to work as expected. For ym table generation, I need the $key to do some maths on in order to get my table looking right. All the guts are done, but for some rea

[PHP] Validating user input

2003-06-03 Thread Shaun
Hi, I am creating a timesheet application, how can I make sure that a user has entered a number, and that the number is a whole number or a decimal up to 2 places, and that the number is less than 24? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] @getimagesize

2003-06-03 Thread Diana Castillo
I use @getimagesize to resize pictures that I get from a url which comes from a database which is always changing. The problem is that sometimes the url does not contain the picture is is supposed to , and then I get the following error - I can't seem to get rid of this error, does anyone know how

RE: [PHP] Validating user input

2003-06-03 Thread electroteque
is_numeric and strlen ? -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 7:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Validating user input Hi, I am creating a timesheet application, how can I make sure that a user has entered a number, and that the

Re: [PHP] Validating user input

2003-06-03 Thread John Coggeshall
Try this... I don't know if this will suit your needs but it'll give you an idea: 0 && $a < 24) { $time = number_format($a, 2, '.', ''); echo "Time: $time\n\n"; } else { echo "Invaild Time.\n\n"; } ?> Regards, J

RE: [PHP] @getimagesize

2003-06-03 Thread electroteque
try an fopen to check if the file is there first ? -Original Message- From: Diana Castillo [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 7:24 PM To: [EMAIL PROTECTED] Subject: [PHP] @getimagesize I use @getimagesize to resize pictures that I get from a url which comes from a dat

Re: [PHP] @getimagesize

2003-06-03 Thread John Coggeshall
Are you using PHP 4.3.2? Try upgrading :) John On Tue, 2003-06-03 at 05:23, Diana Castillo wrote: > I use @getimagesize to resize pictures that I get from a url which comes > from a database which is always changing. The problem is that sometimes the > url does not contain the picture is is supp

Re: [PHP] Problem on Date Function

2003-06-03 Thread Jason Wong
On Tuesday 03 June 2003 17:40, Jack wrote: > q: how i can do a date subtraction in php? (eg. "2003-06-02" - 3 = > "2003-05-30") strtotime() -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications

[PHP] Re: Problem on Date Function

2003-06-03 Thread sven
have a look at date() and mktime(): from the manual: $tomorrow = mktime(0, 0, 0, date("m"), date ("d")+1, date("Y")); ciao SVEN "Jack" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Dear all > Here is the situation : > > Our automation system will generate a large number of

RE: [PHP] Validating user input

2003-06-03 Thread Sichta Daniel
Another way is to do it on client side (javascript) DS -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:21 AM To: [EMAIL PROTECTED] Subject: [PHP] Validating user input Hi, I am creating a timesheet application, how can I make sure that a user ha

Re: [PHP] foreach and mysql_fetch_array problem

2003-06-03 Thread Marek Kilimajer
Try: Bix wrote: Hi all, I am trying to build up a table using values from a db as follows... mysql_select_db($db, $sql_connection); $result = mysql_query("SELECT * FROM $table WHERE $query LIMIT $limit",$sql_connection); $output = "\n"; while($row=mysql_fetch_array($result)) { foreach

Re: [PHP] write to a CSV file

2003-06-03 Thread Marek Kilimajer
search phpclasses.org hui zhang wrote: we have a php function fgetcsv to read from a csv file. is there any scripts available to do the reverse, write to a csv file. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] determine action of a form dynamically?

2003-06-03 Thread Mukta Telang
Hi, I want action of a form to be PHP_SELF untill user presses "continue" button. If continue button is pressed than "next.php" should be the action of the form. how to do this? Thanks in advance, Mukta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

RE: [PHP] determine action of a form dynamically?

2003-06-03 Thread Jon Haworth
Hi Mukta, > I want action of a form to be PHP_SELF untill user > presses "continue" button. If continue button is > pressed than "next.php" should be the action of the > form. how to do this? One way would be to have two buttons in your form, but submit to only one page: ... and then, o

Re: [PHP] Session to Secure Form

2003-06-03 Thread Marek Kilimajer
If you can access the session data on the other domain, pass the session id as a hidden form field. Ralph wrote: I'm setting up a payment form on same server but different domain name, and I need to pass the customers id that I have stored in a session so that I can use it on the secure form to q

Re: [PHP] foreach and mysql_fetch_array problem

2003-06-03 Thread Bix
I need to access the row by colum name... eg: $row['id'] $row['title'] $row['detail'] My table gen script puts the relelvant fields into the right boxes, and my maths works from the $key to put s in the right place. So i need a loop that will loop as many times as there are rows, so while works

Re: [PHP] foreach and mysql_fetch_array problem

2003-06-03 Thread Bix
I need to access the row by colum name... eg: $row['id'] $row['title'] $row['detail'] My table gen script puts the relelvant fields into the right boxes, and my maths works from the $key to put s in the right place. So i need a loop that will loop as many times as there are rows, so while works

[PHP] heavy traffic portal site

2003-06-03 Thread Adrian Teasdale
Hi there We have been contacted about creating a portal site which will have some heavy usage. They are talking about having 100,000 subscribed users to the system which will have the following: 1. Web based email 2. Calender (for the persons own use, not shared) 3. File store (and sharing) an

RE: [PHP] CR in MySQL?

2003-06-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Dan Joseph [mailto:[EMAIL PROTECTED] > Sent: 30 May 2003 18:03 > > > Just did a bit of checking.. > > > > NL == ASCII 010, CR == ASCII 015.. > > Ahh ok, so nl2br() would work. Cool, I guess you learn > something new > everyday. Is there a one for CR's

Re: [PHP] heavy traffic portal site

2003-06-03 Thread Mark
I see you posted this to the Horde list, so you're aware of that project. Horde has been used in a few very large installations, but more important than the number of users is the load on the app. Will the 100k users be on it very frequently? Rarely? What kind of hit level are we talking about? Muc

RE: [PHP] Re: regex problem

2003-06-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Monty [mailto:[EMAIL PROTECTED] > Sent: 31 May 2003 21:21 > > If you want the entire string to be tested for digits, you > need to add the > length of the string to the regex pattern: > > $length = strlen($data); > preg_match("[0-9]{$length}", $data);

Re: [PHP] foreach and mysql_fetch_array problem

2003-06-03 Thread Marek Kilimajer
And doesn't this solve your problem? While loop will loop for each row, foreach will give you the key and value. How else do you want to loop? while($row=mysql_fetch_array($result)) { foreach($row as $key => $article){ //here you have $key and $article } } Bix wrot

RE: [PHP] Shipping Rates

2003-06-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: 02 June 2003 18:07 > To: Jim Lucas; Rasmus Lerdorf; Ralph > > Answering my own answer. I see now how you are extracting > the sub array > information. > > My mistake. Notwithstanding that, I think your question wa

RE: [PHP] heavy traffic portal site

2003-06-03 Thread Adrian Teasdale
Mark Thanks for the quick reply. Basically, I think that the users will be using it quite frequently - well, that's my clients idea of how it will work! In terms of hit level, we really don't know at this stage. In terms of hardware, they have a good budget and we would be looking to work with so

RE: [PHP] general questions

2003-06-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Dale [mailto:[EMAIL PROTECTED] > Sent: 02 June 2003 19:43 > > I am new to php and I just have some general questions. > > 1. when you create a new variable such as an integer, is it > automatically > initialized or is it considered empty similar to asp? In P

RE: [PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED] > Sent: 03 June 2003 06:34 > To: Monty; [EMAIL PROTECTED] > Subject: Re: [PHP] Cookies and Sessions: What's the Best Recipe? > > > H, > > Theory only here: > > If there is a GET value of PHPSESSID (or whatever your

[PHP] Problem with PHP

2003-06-03 Thread Roman Duriancik
I can't install php on mandrake 9.1 from source binary. When I do "make" command I have this error message : unresolved reference to errno roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] How to delete a line in a TXT-file

2003-06-03 Thread poetbox
Jason Wong,您好! Let me go back to have a try,thank you very much!:) Some people told me to use unset(mixed var [,mixed var [,...]]) to delete it ,but I cannot understand anything about it . === 2003-06-03 16:04:00 :=== >On Tuesday 03 June 2003 11:11, poetbox wrote: > >> I'

RE: [PHP] Validating user input

2003-06-03 Thread Ford, Mike [LSS]
> -Original Message- > From: Shaun [mailto:[EMAIL PROTECTED] > Sent: 03 June 2003 10:21 > > I am creating a timesheet application, how can I make sure > that a user has > entered a number, and that the number is a whole number or a > decimal up to 2 > places, and that the number is less

[PHP] Full path to download !!!

2003-06-03 Thread fr r
i have this code working perfect to allow users to download songs from my web site, but the download.php must be in same folder with any song to be downloaded. but i have songs on another server, so i can't make the file name full path like this: http://myserver.com/son1.mp3 any help plz !

[PHP] Full path to download !!!

2003-06-03 Thread fr r
i have this code working perfect to allow users to download songs from my web site, but the download.php must be in same folder with any song to be downloaded. but i have songs on another server, so i can't make the file name full path like this: http://myserver.com/son1.mp3 any help plz !

[PHP] downloading XML file

2003-06-03 Thread Sichta Daniel
Hi, cfg: php 4.2.3, IIS5.1 I have generated link (from MySQL database) on my web sile, which suppose to allow user to dowload xml file. How can I do this because when I'm just adding name of the file to the href then it will be open in Browser window. How can I make the browser open the "oepn or

Re: [PHP] Cookies and Sessions: What's the Best Recipe?

2003-06-03 Thread Justin French
on 03/06/03 9:43 PM, Ford, Mike [LSS] ([EMAIL PROTECTED]) wrote: >> -Original Message- >> From: Justin French [mailto:[EMAIL PROTECTED] >> Sent: 03 June 2003 06:34 >> To: Monty; [EMAIL PROTECTED] >> Subject: Re: [PHP] Cookies and Sessions: What's the Best Recipe? >> >> >> H

[PHP] Link to a Site

2003-06-03 Thread Mishari
Hi all, I need help, actually I'm building a PHP site where my users will wait for a few seconds reading a text then it will automatically link them to another site. I'm looking for the command which auto. link to other sites. Kind Regards, esheager __ Do you Y

Re: [PHP] downloading XML file

2003-06-03 Thread Marek Kilimajer
header('Content-type: application/octet-stream'); Sichta Daniel wrote: Hi, cfg: php 4.2.3, IIS5.1 I have generated link (from MySQL database) on my web sile, which suppose to allow user to dowload xml file. How can I do this because when I'm just adding name of the file to the href then it will

Re: [PHP] Link to a Site

2003-06-03 Thread Marek Kilimajer
Discused few threads ago: header('Refresh: 15; url=newurl.php' ); 15 is in seconds. Mishari wrote: Hi all, I need help, actually I'm building a PHP site where my users will wait for a few seconds reading a text then it will automatically link them to another site. I'm looking for the command whi

[PHP] Variables changes their values

2003-06-03 Thread Svein Larsen
I'm getting strange behavior in some of my scripts I just upgraded from 4.3.1 to 4.3.2 and was hoping it would solve the problem. The problem is that variables changes its values from one line og code to another - without specific code that should change the value. Do anybody else had this proble

Re: [PHP] Planning a new job

2003-06-03 Thread Adam Reiswig
Tim, check out http://www.fusebox.org (there site is currently down for some unknown reason) and check out the FLiP cycle area. If you are a PHP developer you would do well to at least use part of the methodology in your site development process. Especially wireframing and prototypying. They

RE: [PHP] Variables changes their values

2003-06-03 Thread Jay Blanchard
[snip] I'm getting strange behavior in some of my scripts I just upgraded from 4.3.1 to 4.3.2 and was hoping it would solve the problem. The problem is that variables changes its values from one line og code to another - without specific code that should change the value. Do anybody else had this

Re: [PHP] Variables changes their values

2003-06-03 Thread CPT John W. Holmes
> I'm getting strange behavior in some of my scripts > I just upgraded from 4.3.1 to 4.3.2 and was hoping it would solve the > problem. The problem is that variables changes its values from one line og > code to another - without specific code that should change the value. > Do anybody else had t

Re: [PHP] Fw: What Visual PHP Edit ?

2003-06-03 Thread Miles Thompson
The "editor" topic has been beat to death, please check the archive. However, PHP is code, all code, there's no "visual" component. All a visual editor would give you is a prettier interface; be more concerned about an editor that lets YOU write quickly and efficiently, whether it be vim, emacs

Re: [PHP] Variables changes their values

2003-06-03 Thread Svein Larsen
On Tuesday 03 June 2003 13:58, Jay Blanchard wrote: > [snip] > We would have to see some code > > Jay I'm not able to reproduce this in a short code-snippet. But from the first echo to the last echo $lid change its value: if ($hostid==31) echo "lid1: $lid"; # Paragraphs #

[PHP] How to echo raw post message using php://input

2003-06-03 Thread XiongWei
Hi Everyone, I wrote a routine "postrawdata.php" for displaying HTTP raw request message. It works properly when using a socket program to post something to it. But submitting from a simple HTML below will make it dead, I have tested it under IE 6.0 and Netscape 7.0 , any suggestion is appreci

[PHP] Secure Page Problem

2003-06-03 Thread Ralph
I currently have a secure form from which I am querying a mysql database but I am unable to print out the results to the page. Is there something I have overlooked in working with secure pages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] convert seconds to hours, minutes, seconds

2003-06-03 Thread Chinmoy Barua
Hello everybody, I have a value 178607, which is stored as seconds. I like to convert it (178607 Secs) to Hours, Minutes and Seconds appropiatly. Can anybody help me supplying the code? Thank You, - Chinmoy __ Do you Yahoo!? Yahoo! Calendar - Free online calendar wi

Re: [PHP] Link to a Site

2003-06-03 Thread Marek Kilimajer
The warning says the headers were already sent. You need to put ANY header() before ANY output (echo, print, anything outside ). If you output anything, all necesery heders are send and then is send your output. After this you cannot add any more headers. Mishari wrote: Hi, I used it before, b

Re: [PHP] Link to a Site

2003-06-03 Thread Mishari
Hi, I used it before, but I had a problem my code look like, if (--) { echo "---"; header(--); } I don't know what is it? --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > Discused few threads ago: > header('Refresh: 15; url=newurl.php' ); > > 15 is in seconds. > > Mishari wrote:

Re: [PHP] foreach and mysql_fetch_array problem

2003-06-03 Thread Bix
I've decided to drop foreach altogether now and just used good old while on its own with a counter to use as the key. The second foreach in your example would run on each column on the row, when i need to just be able to access the columns. I appreciate the help though, thanks ;o) Am now using:

RE: [PHP] php session not persisting

2003-06-03 Thread Ed Gorski
Do you have cookies enabled on your browser? If not then you will need to make sure that you compile or change your php.ini to reflect that (ie with trans-sid). ed -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 3:42 AM To: [EMAIL PROTECTED] Su

RE: [PHP] convert seconds to hours, minutes, seconds

2003-06-03 Thread Jon Haworth
Hi Chinmoy, > I have a value 178607, which is stored as seconds. I > like to convert it (178607 Secs) to Hours, Minutes and > Seconds appropiatly. Can anybody help me supplying the code? Try something like this: "; echo sec2hms(60). ""; echo sec2hms(66). ""; echo sec2hms(3600). ""; echo

Re: [PHP] convert seconds to hours, minutes, seconds

2003-06-03 Thread Bas Jobsen
function secondstohours($seconds) { /* [EMAIL PROTECTED] */ $sec=$seconds%3600; return (($seconds-$sec)/3600).':'.($sec/60).':'.($sec%60); } echo secondstohours(7500); Op dinsdag 03 juni 2003 14:38, schreef u: > Hello everybody, > I have a value 178607, which is stored as

[PHP] Re: convert seconds to hours, minutes, seconds

2003-06-03 Thread Jakob Mund
use the standard mathematics: like 178607 / 60 / 60 = Hours ( u have to round down to the nearest integer ) then u substract the number of hours*3600 from the 178607 seconds. then you have to divide the number you get by 60 and you got the minutes ( remember to round down to the nearest integer ).

Re: [PHP] convert seconds to hours, minutes, seconds

2003-06-03 Thread CPT John W. Holmes
> I have a value 178607, which is stored as seconds. I > like to convert it (178607 Secs) to Hours, Minutes and > Seconds appropiatly. > Can anybody help me supplying the code? If it's stored in MySQL, you can use SEC_TO_TIME() mysql> select sec_to_time(178607); +-+ | sec_to_t

[PHP] Delete from Multidimensional Array?

2003-06-03 Thread Mark D Hiatt
I think I've outsmarted myself, again. Can someone help me out of this, please? I've built a page that collects network card information, assigning each element its place within a $Card array, and all of the cards to $NetCards. As you enter your card information at the bottom, the previous car

[PHP] Displaying 5 records only/displaying specific records

2003-06-03 Thread Matt MacLeod
Hi, I'm trying to build a news panel for my home page. Basically I want to present the five most recent news articles in a recordset, but I'm not sure how to cut off the recordset after 5. Also I want to present a picture with my first headline. My code will go something like this:

RE: [PHP] Displaying 5 records only/displaying specific records

2003-06-03 Thread Jay Blanchard
[snip] I'm trying to build a news panel for my home page. Basically I want to present the five most recent news articles in a recordset, but I'm not sure how to cut off the recordset after 5. [/snip] use LIMIT 5 as the last bit of your query Jay -- PHP General Mailing List (http://www.php.net

Re: [PHP] Variables changes their values

2003-06-03 Thread CPT John W. Holmes
> On Tuesday 03 June 2003 13:58, Jay Blanchard wrote: > > [snip] > > We would have to see some code > > > > Jay > > I'm not able to reproduce this in a short code-snippet. > But from the first echo to the last echo $lid change its value: Either this is a bad cut and paste job or this script wi

Re: [PHP] Displaying 5 records only/displaying specific records

2003-06-03 Thread CPT John W. Holmes
> I'm trying to build a news panel for my home page. Basically I want to > present the five most recent news articles in a recordset, but I'm not > sure how to cut off the recordset after 5. > Also I want to present a picture with my first headline. > > My code will go something like this: > >

Re: [PHP] Delete from Multidimensional Array?

2003-06-03 Thread CPT John W. Holmes
> I've built a page that collects network card information, assigning each > element its place within a $Card array, and all of the cards to $NetCards. > As you enter your card information at the bottom, the previous card is > displayed above it, with a Delete checkbox option at the end of that row

[PHP] Re: convert seconds to hours, minutes, seconds

2003-06-03 Thread Yves Daemen
It's just some mathematics: assume $time is the value in seconds: $secs= $time % 60; $totalMinutes = ( $time - $secs ) / 60; $minutes = $totalMinutes % 60; $hours = ( $totalMinutes - $minutes ) / 60; Now you can do like this: echo "$time secondes is $hours hours, $minutes minutes and $sec

RE: [PHP] Variables changes their values

2003-06-03 Thread Jay Blanchard
[snip] I'm not able to reproduce this in a short code-snippet. But from the first echo to the last echo $lid change its value: if ($hostid==31) echo "lid1: $lid"; # Paragraphs [/snip] $lid is getting set the first time before the IF statement. From this IF to the last $lid in what yo

Re: [PHP] Delete from Multidimensional Array?

2003-06-03 Thread Marek Kilimajer
unset($NetCards[2]); Mark D Hiatt wrote: I think I've outsmarted myself, again. Can someone help me out of this, please? I've built a page that collects network card information, assigning each element its place within a $Card array, and all of the cards to $NetCards. As you enter your card i

<    1   2