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

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

[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] 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

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] 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 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

[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:

[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

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] 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 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

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] 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] 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] 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] 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

[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

[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] 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

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 #

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 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] 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] 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

[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] 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

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

[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] 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] 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

[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 !

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

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'

[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: [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

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] 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] 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] 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] 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] 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] 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

[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] 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

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] 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

[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] 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

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] 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

[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] 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

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] @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] 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] 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

[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

[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

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] 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

[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

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]---

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

[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] How to delete a line in a TXT-file

2003-06-03 Thread Jason Wong
On Tuesday 03 June 2003 11:11, poetbox wrote: > I've been having trouble to delete a line from a TXT-file for days. > The content of the text file just like below: > ---begin==> > 00145|test|line1 > 00255|test|line1 > 01143|test|line1 > 00469|test|line1 > 10146|test|lin

[PHP] RE: Cookie security

2003-06-03 Thread SLanger
[snip] Can I trust every browser to check for old cookies on startup and eliminate them? And still, even if I can, wouldn't the cookie be intact to read on the harddrive until the browser is started again? I was thinking about slicing the username and password strings in two, and storing the halv

[PHP] Auto refresh

2003-06-03 Thread Kurosh Burris
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 header() function? It seemed to work fine when it was set to "5" seconds, but is not working with "900". Here's the code: header(

Re: [PHP] Classes vs. functions?

2003-06-03 Thread olinux
Here is an excellent article describing classes/objects - what they are and are not. http://phpmag.net/itr/online_artikel/psecom,id,284,nodeid,114.html olinux > > Can someone please explain to me when is a class > useful over a set of > > functions? __ Do you Y

Re: [PHP] php session not persisting

2003-06-03 Thread Jason Wong
On Tuesday 03 June 2003 12:28, Eric D. wrote: > I have two very simple php scripts and the second srcipt is not seeing the > variables session_registered by the first script. > I'm running the latest version of php. And have both "register_globals" and > "track_vars" set to "ON". It's best to sta

[PHP] How to remove empty Session Var from URL

2003-06-03 Thread Monty
I noticed that for users with cookies turned off, once they log out (in which I unset and destroy all session vars) and are returned to the Log-in page, all of my links have an empty PHPSESSID= tag at the end like this: This prevents someone from logging in again immediately unless they firs

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

2003-06-03 Thread Justin French
H, Theory only here: If there is a GET value of PHPSESSID (or whatever your sessions are named), then the user is more than likely taking advantage of trans-sid (sid's in the URLs), and cookies are not available. So, we only want to append the sid to URLs in a redirect IF the sid is found in

[PHP] MOUNT RAID !!!!

2003-06-03 Thread nabil
I have one hard SCSI installed on it redhat 7.3, and I add a two other SCSI hardisk with an RAID controller , and I need to copy some files form the RAID , how can I mount them?? How to mount a RAID??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

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

2003-06-03 Thread Monty
>> I have a member site that uses sessions. People who have their browser >> cookies turned off, however, cannot use our site. I read somewhere that to >> avoid this, I'd have to manually append the PHPSESSID var to every URL when >> redirecting in a script. > > One way around this would be to wri

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

2003-06-03 Thread Kurosh Burris
Hi Hugh, I added back in the other two lines, and it's working now... not sure why, though. Thanks, Kurosh -Original Message- From: Hugh Danaher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:53 AM To: Kurosh Burris Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Supplied argument

RE: [PHP] Broken links report

2003-06-03 Thread Kjell Hansen
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 want to get the warning. I know I can switch it off but there are other warnings I would like

[PHP] Broken links report

2003-06-03 Thread Kjell Hansen
Hi, On a link page I have I'd like to show if the links are valid (=exists) I tried to do a pOpen (http://www.whatever.com/index.html,"r";) and if it exists everything is fine but if it's not there I get a warning "failed to create stream: HTTP request failed! HTTP/1.1 404 Object Not Found" Opening

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

2003-06-03 Thread Kurosh Burris
Hi Hugh, Thanks, so far so good... no error messages. What next to get it to display the total properly? BTW, I changed "$SelectQuery" to "$TestSub" since "$SelectQuery" is used repeatedly in this script, and I figured it might conflict if I didn't use the "new Query" part. Kurosh -Origin

[PHP] Fw: What Visual PHP Edit ?

2003-06-03 Thread agus
hi everyone, i want to know what the good software for PHP Editor Programing, like Visual Age For Java, or Visual .NET from Microsoft...

[PHP] LoadModule Help

2003-06-03 Thread tmcclelland
Hi all, As you will guess from this question I'm new to all this. Firstly I hope this is the right list. I have installed the latest version of Apache, and the latest version of PHP, on Windows 2000. I can start the server fine but as soon as I change the httpd.conf file and add the LoadModule se

[PHP] IDENTIFICATON

2003-06-03 Thread Dale
I have the following scenario: I have this timeclock program that my employees access by logging into and the program pretty much allows them to clock-in and clock-out. The problem is that I noticed some of the employees were clocking-in and clocking-out from their home. The main problem is that t

Re: [PHP] Classes vs. functions?

2003-06-03 Thread Steven Walker
Can someone please explain to me when is a class useful over a set of functions? Almost always. Object oriented programming offers many many advantages (that I cannot get into depth on here). There are a few exceptions where you would not use classes, such as utility functions like max() and mi

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

2003-06-03 Thread Hugh Danaher
try something simpler and see if it passes: $SelectQuery="SELECT SUM(GiftSubscriptions) AS GiftSubs FROM Registration"; $Result = mysql_query($SelectQuery) or die("Something died in here! ".mysql_error()); - Original Message - From: "Kurosh Burris" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

[PHP] php session not persisting

2003-06-03 Thread Eric D.
Hi, I have two very simple php scripts and the second srcipt is not seeing the variables session_registered by the first script. I'm running the latest version of php. And have both "register_globals" and "track_vars" set to "ON". Well, the first script prints out the session var fine, but not th

[PHP] session not persisting

2003-06-03 Thread Eric D.
Hi, I have two very simple php scripts and the second srcipt is not seeing the variables session_registered by the first script. I'm running the latest version of php. And have both "register_globals" and "track_vars" set to "ON". Well, the first script prints out the session var fine, but not th

RE: [PHP] Planning a new job

2003-06-03 Thread Ralph
Tim, This is really beyond the scope of this list, but I can help then it doesn't matter. :-) A few months ago I was asking myself the same questions you are asking now. I found the following articles: http://www.sitepoint.com/article/913 http://www.sitepoint.com/article/677 http://www.sitepoi

[PHP] write to a CSV file

2003-06-03 Thread hui zhang
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

Re: [PHP] Planning a new job

2003-06-03 Thread Jaap van Ganswijk
At 2003-06-03 09:15 +0930, Tim Burgan wrote: >I'm wondering what processes everyone has before quoting a web programming / >design job? > >Do you have a face-to-face meeting with the client? > >What questions do you ask? > >What information should be found-out about the job? > >Do I then go away an

[PHP] Classes vs. functions?

2003-06-03 Thread Vijay Avarachen
I have been mostly using function in my php code, and lately I have been curious about classes. I have a vague idea of classes from my C++ class that I took a few years back. Can someone please explain to me when is a class useful over a set of functions? I have seen very few code with classes,

[PHP] Session to Secure Form

2003-06-03 Thread Ralph
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 query the database for the customers order. What would be the best way for me to go about this? -- PHP General

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

2003-06-03 Thread John W. Holmes
> I'm trying to get a very simple "sum" of the values in an MySQL database > field column. I have very little experience with PHP and SQL, but I learn > quickly. :) Our resident PHP expert who built the full script is really > busy, so I've been trying to do this myself. The farthest I could ge

[PHP] Re: A recommended barcode program

2003-06-03 Thread Manuel Lemos
Hello, On 06/02/2003 09:30 PM, Todd Cary wrote: I would like to have a reccommendation for a PHP class that generates a barcode. Have you seen these? Class: Barcode128 pattern compute class http://www.phpclasses.org/barcode128 Class: BarcodeI25 http://www.phpclasses.org/barcode -- Regards, Man

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

2003-06-03 Thread poetbox
Hi all, I've been having trouble to delete a line from a TXT-file for days. The content of the text file just like below: ---begin==> 00145|test|line1 00255|test|line1 01143|test|line1 00469|test|line1 10146|test|line1 --<==end Every line

[PHP] Supplied argument is not a valid MySQL result resource

2003-06-03 Thread Kurosh Burris
Hi Everyone, I'm trying to get a very simple "sum" of the values in an MySQL database field column. I have very little experience with PHP and SQL, but I learn quickly. :) Our resident PHP expert who built the full script is really busy, so I've been trying to do this myself. The farthest I co

[PHP] affiliate program? please share your experience - i need as much as possible

2003-06-03 Thread hui zhang
Any people can recommend to me any affiliate programs, such as php affiliate and others in the hotscripts/php/affilate category? share your experience? thanks. Sorry if you see this post by me before. My original post was followed and "answered" by non related response and it is not answered. T

Re: [PHP] foreach and mysql_fetch_array problem

2003-06-03 Thread Justin French
This is correct: while($myrow = mysql_fetch_array($result)) { // ... } The iteration of the while loop represents one returned row from the mysql result, with $myrow being an array of values returned. Rather than a SELECT * query, let's look at a something where we know the column na

Re: [PHP] simple password protect script

2003-06-03 Thread Ernest E Vogelsinger
At 02:50 03.06.2003, Matt Hedges said: [snip] >Hello, > >Can anyone tell me the basic PHP script to password protect a php page? [snip] Have a look at http://www.vogelsinger.at/protected.html, maybe this is what you'r

Re: [PHP] Planning a new job

2003-06-03 Thread Justin French
That's really beyond the scope of this list, but: on 03/06/03 10:45 AM, Tim Burgan ([EMAIL PROTECTED]) wrote: > Do you have a face-to-face meeting with the client? It depends if they're in my capital city, or if the job is big enough to warrant me flying interstate > What questions do you ask

  1   2   >