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

2003-06-04 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: ?php function sec2hms ($secs) { $hms = ; $hours =

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

2003-06-04 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-04 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-04 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); +-+ |

[PHP] Delete from Multidimensional Array?

2003-06-04 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

[PHP] Displaying 5 records only/displaying specific records

2003-06-04 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

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

2003-06-04 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

Re: [PHP] Variables changes their values

2003-06-04 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 will never

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

2003-06-04 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: ?php

Re: [PHP] Delete from Multidimensional Array?

2003-06-04 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-04 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

RE: [PHP] Variables changes their values

2003-06-04 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 you

Re: [PHP] Delete from Multidimensional Array?

2003-06-04 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

[PHP] file reading and regex

2003-06-04 Thread Michael Allan
New to the list, so I hope I'm in the right place. I'm trying to write a small php function which checks a page filled with a list of satellite images of earth, and loads the latest one to have been taken at 4:25 in the morning, when the view is most complete (full credit to be given to the

Re: [PHP] Variables changes their values

2003-06-04 Thread Svein Larsen
Thats the strange thing... there IS NO CODE that change the value... And the cut/paste is bad... there is no parse errors and the code snip is only a small part of a scriptfile. - Svein On Tuesday 03 June 2003 15:33, Jay Blanchard wrote: [snip] I'm not able to reproduce this in a short

[PHP] Sending Layer2 frames with PHP

2003-06-04 Thread Kai Poppe
Hi NG, I am trying to implement the CDP (Cisco Discovery Protocol) into PHP. For this task it is needed to send Layer2 frames to a specific MAC address. Is there a possibility to do so ? Please answer as fast as possible either to [EMAIL PROTECTED] or to this NG. Thanks ! Kai M Poppe WLAN

Re: [PHP] Variables changes their values

2003-06-04 Thread Svein Larsen
On Tuesday 03 June 2003 15:27, CPT John W. Holmes wrote: 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:

[PHP] Re: Validating user input

2003-06-04 Thread Manuel Lemos
Hello, On 06/03/2003 06:21 AM, Shaun wrote: 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? You may want to try this forms generation and validation

RE: [PHP] file reading and regex

2003-06-04 Thread Jay Blanchard
[snip] ?php $URLbase = http://rsd.gsfc.nasa.gov/goesg/earth/Weather/GMS-5/jpg/vis/4km/;; if (!($fp = fopen($URLbase, r))) { echo p style=color:whiteCould not open the url/p; exit; } $contents = fread($fp, 100);

[PHP] sql question

2003-06-04 Thread Diana Castillo
If I have a date in unix format in a numeric field in my table (Mysql) and I want to compare it to a date which is in unixformat also, will the query work like this? SELECT from tarifs where unix_from_date=.$dateinunixformat -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Variables changes their values

2003-06-04 Thread Jason Wong
Yep, its a bad paste :) The script is error-free... But there is no code that change the variable and it still get changed. Eg. it change from 75497 to 6894 In order of increasing probability: - you can attribute it to black magic - you've hit upon a php bug - there's something wrong with

Re: [PHP] file reading and regex

2003-06-04 Thread Marek Kilimajer
Your pattern should look like: $pattern = ([[:digit:]]{6}0425\.jpg); This will give you the image name, but remember that ereg works on single lines and also the image might be taken at some time around 4:25. So you need a while loop to read the html line by line, in the loop try to match the

Re: [PHP] Variables changes their values

2003-06-04 Thread Marek Kilimajer
Cutpaste the code, also file include/surveysavereply.inc. Svein Larsen wrote: On Tuesday 03 June 2003 15:27, CPT John W. Holmes wrote: 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

Re: [PHP] Sending Layer2 frames with PHP

2003-06-04 Thread Marek Kilimajer
No, not with php. You can use some external program or write a php module. Kai Poppe wrote: Hi NG, I am trying to implement the CDP (Cisco Discovery Protocol) into PHP. For this task it is needed to send Layer2 frames to a specific MAC address. Is there a possibility to do so ? Please answer as

Re: [PHP] sql question

2003-06-04 Thread Marek Kilimajer
What about trying it first? Diana Castillo wrote: If I have a date in unix format in a numeric field in my table (Mysql) and I want to compare it to a date which is in unixformat also, will the query work like this? SELECT from tarifs where unix_from_date=.$dateinunixformat -- PHP General

[PHP] submitting to differient php scripts based on button -O T-

2003-06-04 Thread Ryan A
Hi, This is more of a JS question than a PHP but have not found anything on google (http://www.google.com/search?q=javascript+onclick+buttonsourceid=operanum =0ie=utf-8oe=utf-8) and cant remember how I did this last time I simply want to submit my form to either one.php or two.php or thr.php

RE: [PHP] submitting to differient php scripts based on button -O T-

2003-06-04 Thread Jay Blanchard
[snip] I simply want to submit my form to either one.php or two.php or thr.php depending on which BUTTON is pressed (I am using html buttons input type='submit' value='blah') I have 3 buttonshow do i set it? [/snip] Instead of 3 different .php why not use one.php with a SWITCH statement?

Re: [PHP] file reading and regex

2003-06-04 Thread Michael Allan
Marek, Your pattern should look like: $pattern = ([[:digit:]]{6}0425\.jpg); BINGO! This will give you the image name, but remember that ereg works on single lines and also the image might be taken at some time around 4:25. So you need a while loop to read the html line by line, in the loop

Re: [PHP] Link to a Site

2003-06-04 Thread sven
don't echo anything before the header. else there is automatically a header generated by your server. Mishari [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi, I used it before, but I had a problem my code look like, if (--) { echo ---; header(--); } I

[PHP] This line does not execute...

2003-06-04 Thread Todd Cary
I am trying to get the Sample Barcode to run on my server, however the following line does not execute: echo table align='center'trtdimg src='./image.php?code= . $barcode . style= . $style . type= . $type . width= . $width . height= . $height . xres= . $xres . font= . $font . '/td/tr/table;

[PHP] Migration from register_globals=on to register_globals=off

2003-06-04 Thread Øystein Håland
None of my old scripts worx nowadays and the most common error message is 'undefined variable'. What is the best/simplest way to work around this situation? if !isset($myvar) { do this blah blah } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] This line does not execute...

2003-06-04 Thread Alex Ciurea
did u made copypaste with your code? yes? then why don't you try to use the path='image.php?blahblahmoreblah' no? then please give us more details about the error you're getting... good luck, Alex - Original Message - From: Todd Cary [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] This line does not execute...

2003-06-04 Thread Alex Ciurea
oh I see, you want to execute that image.php script ? - Original Message - From: Alex Ciurea [EMAIL PROTECTED] To: php mailing [EMAIL PROTECTED]; Todd Cary [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 6:07 PM Subject: Re: [PHP] This line does not execute... did u made copypaste with

[PHP] How do I grab the first X characters of a string?

2003-06-04 Thread Erich Kolb
How do I grab the first X characters of a string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do I grab the first X characters of a string?

2003-06-04 Thread Jay Blanchard
RTFM http://us2.php.net/manual/en/function.substr.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] This line does not execute...

2003-06-04 Thread Todd Cary
Alex - The code I placed in the messsage is a copy and paste of the code from the sample.php script provided by the author of the barcode class and it agrees with the demo he has on his site. The error is that nothing is happening which I interpret as the file, image.php is not being accessed

Re: [PHP] This line does not execute...

2003-06-04 Thread Marek Kilimajer
How do you know it is not being accessed? You should output an image, and if it is not an image, broken image icon is displayed in IE or nothing in Netscape/Mozilla (I see you use Netscape). Look at the html, and if the img tag is there, I'm sure your browser tries to read the image. Todd

[PHP] Re: sql question

2003-06-04 Thread ?$EF;?
That procedure it's call validation so i think you don't need compare, or query to bd any. Just validate if a $variable is a valid date in UnixFormat, i don't know how to do this, but google or someelse maybe know. regards. EF. Diana Castillo [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL

Re: [PHP] This line does not execute...

2003-06-04 Thread Alex Ciurea
Ok Tod, this is what I understood so far: 1) image.php should generate for you a barcode; 2) you placed an echo statement inside image.php and nothing happens Marek have good ideea: try to see the html source code, the code that is interpreted by your browser. the executable file ./image.php

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

2003-06-04 Thread Monty
Guys, that's exactly what the SID predefined constant is for -- it's defined only when a session is active, and it has the value sessionname=sessionid (e.g. PHPSESSID=1afd764ecb938274) if and only if the session id was passed in the URL -- otherwise it contains the empty string. So you can

Re: [PHP] This line does not execute...

2003-06-04 Thread Todd Cary
Marek - Yes, the Img is being executed (Broken image icon in IE) as evidenced by the HTML: table align='center'trtdimg src=''/td/tr/tabletable align='center'trtdfont color='#FF'Success: Barcode = 0123456789/font/td/tr/tablebr However, the image.php is apparently not being executed. I

[PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Esteban Fernández
When you recivied that error ?, in a form ?, if is in a Form just put in the top of .php files this code $HTTP_GET_VARS[variable2]; $HTTP_GET_VARS[variable3]; Of course if you send with other method (post) change the GET for POST $HTTP_POS_VARS[variable2]; $HTTP_POS_VARS[variable3]; Regards.

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

2003-06-04 Thread Monty
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 I'm not sure why it's necessary to do this, but, not sure it can be done. Maybe with

Re: [PHP] This line does not execute...

2003-06-04 Thread Marek Kilimajer
img tag can only display images, even if you did put echo Debug;, this is not a valid image, so it is not displayed. Try Right Click - View Image, you should see your debug output. Todd Cary wrote: Marek - Yes, the Img is being executed (Broken image icon in IE) as evidenced by the HTML:

[PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Øystein Håland
I'm not sure what you mean. To give ONE example: Earlier I could use this code on top of every page: if ($printout != yeah) { include(header.php); } This code gives an error today. The variable $printout is set if the visitor choose to click on the 'print_page_image', otherwise the variable has

RE: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Jonathan Wilkes
Hi, What he means is that with register_globals=off you cannot do this: echo $path you need to do this (if the variable is sent by POST action) echo _POST('path') and through GET echo _GET('path') -Original Message- From: Øystein Håland [mailto:[EMAIL

[PHP] pagenting logic to cut short

2003-06-04 Thread Ryan A
Hi guys, I have successfully implemted pagenting on one of my pages to generate PREV 1,2,3,4 (etc) NEXT depending on the records that are being returned and the number of rows i specify in a LIMIT. One little problem, right now I have very few records so I dont mind it giving a 1,2,3,4 etc till

Re: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Leif K-Brooks
Uh, I think you mean echo $_POST['path']; and echo $_GET['path']; Jonathan Wilkes wrote: Hi, What he means is that with register_globals=off you cannot do this: echo $path you need to do this (if the variable is sent by POST action) echo _POST('path') and through GET echo _GET('path')

RE: [PHP] Re: Migration from register_globals=on to register_glob als=off

2003-06-04 Thread Jonathan Wilkes
yep I did, sorry about that -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED] Sent: 03 June 2003 17:15 To: Jonathan Wilkes Cc: 'Øystein Håland'; [EMAIL PROTECTED] Subject: Re: [PHP] Re: Migration from register_globals=on to register_glob als=off Uh, I think you mean echo

Re: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Leif K-Brooks
Uh, just putting those variables at the top of your page won't help you. You need to do something with them. Esteban Fernández wrote: When you recivied that error ?, in a form ?, if is in a Form just put in the top of .php files this code $HTTP_GET_VARS[variable2]; $HTTP_GET_VARS[variable3];

Re: [PHP] submitting to differient php scripts based on button -O T-

2003-06-04 Thread Steve Keller
At 6/3/2003 04:24 PM, Ryan A wrote: I simply want to submit my form to either one.php or two.php or thr.php depending on which BUTTON is pressed (I am using html buttons input type='submit' value='blah') I have 3 buttonshow do i set it? You can do this one of three ways: 1. Instead of

[PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Esteban Fernandez
Then i don't understand you problem. ØYstein HåLand [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] I'm not sure what you mean. To give ONE example: Earlier I could use this code on top of every page: if ($printout != yeah) { include(header.php); } This code gives an error

RE: [PHP] pagenting logic to cut short

2003-06-04 Thread John W. Holmes
I have successfully implemted pagenting on one of my pages to generate PREV 1,2,3,4 (etc) NEXT depending on the records that are being returned and the number of rows i specify in a LIMIT. One little problem, right now I have very few records so I dont mind it giving a 1,2,3,4 etc till 10

Re: [PHP] Re: Migration from register_globals=on toregister_globals=off

2003-06-04 Thread Justin French
on 04/06/03 3:02 AM, Øystein Håland ([EMAIL PROTECTED]) wrote: I'm not sure what you mean. To give ONE example: Earlier I could use this code on top of every page: if ($printout != yeah) { include(header.php); } This code gives an error today. The variable $printout is set if the visitor

[PHP] Automatically include global file ...

2003-06-04 Thread Wouter van Vliet
Hi folks, I've heard something about the possibility to set an option somewhere that will include a file to each php file requested... but I can't find it.. What I'm trying to do is something similar to things done with mod_perl .. loading a file which sets things the lib dir and stuff... Set

[PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Øystein Håland
I tried changing my code to (since the variable $printout in this case is sent with GET) ($_GET['printout'] != yeah) { include(header.php); } and got the following error: Undefined index: printout -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] preg_replace help

2003-06-04 Thread Jackson Miller
I am trying to create a text only version of an HTML formatted message. I would like to convert all links from: a href=http://domain.tld.page.ext;link name/a to: link name [http://domain.tld/page.ext] The problem is that some links may have additional modifiers and onthers may not. I have seen

RE: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Wouter van Vliet
One little addit: use indeed $_GET for vars passed through the query string and $_POST to read out postdate .. $_COOKIE for cookies, but you'll find a combination of them all in $_REQUEST (nobody happens to know why $_SESSION is not included in that one .. or knows one that includes $_SESSION in

Re: [PHP] Automatically include global file ...

2003-06-04 Thread Wendell Brown
On Tue, 3 Jun 2003 18:41:59 +0200, Wouter van Vliet wrote: I've heard something about the possibility to set an option somewhere that will include a file to each php file requested... but I can't find it.. It's an ini setting (auto_prepend_file). Check here: http://us4.php.net/ini_set It can

[PHP] Creating favorites

2003-06-04 Thread Joaco
I have a customer who wants me to add a bookmarking feature on all his pages that will create a link on the IE toolbar for that page. Any ideas as to how I can do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_replace help

2003-06-04 Thread Jim Lucas
What do you mean by additional modifiers? Jim Lucas - Original Message - From: Jackson Miller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 9:43 AM Subject: [PHP] preg_replace help I am trying to create a text only version of an HTML formatted message. I would

[PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread R'twick Niceorgaw
on top of your script add extract ($_POST); or may be a little more checking to see if its actually a form submission by POST method like if ($_SERVER[REQUEST_METHOD] == 'POST') extract($_POST); same thing goes for GET Then you can access all form variables just as you were accessing. HTH

Re: [PHP] preg_replace help

2003-06-04 Thread Jackson Miller
On Tue, 2003-06-03 at 11:52, Jim Lucas wrote: What do you mean by additional modifiers? Some links may be in the format: a href=http://domain.tld/page.ext; target=target name=description of the linklink name/a I just want to ignore any of those modifiers in the text version. -Jackson Jim

[PHP] PHP and base32 encryption

2003-06-04 Thread CDitty
Someone has sent me a line of text that is base32 encrypted that I need to decrypt. Does anyone know of a php module or snippet that can decrypt this? I have searched on google and the php.net site, but was unable to find anything that can help. Thanks CDitty -- PHP General Mailing List

Re: [PHP] preg_replace help

2003-06-04 Thread Ernest E Vogelsinger
At 18:43 03.06.2003, Jackson Miller said: [snip] I am trying to create a text only version of an HTML formatted message. I would like to convert all links from: a href=http://domain.tld.page.ext;link name/a to: link name [http://domain.tld/page.ext] The

[PHP] PHP and MYSQL record locking

2003-06-04 Thread Jason May
We have a multi-user database we use for telemarketing. It is used across the internet. All the pages are PHP, I am trying to lock or keep other users from accessing the same record, so that they do not call the same lead. For example, the user selects a zip code to work from and then a lead pops

Re: [PHP] preg_replace help

2003-06-04 Thread Ernest E Vogelsinger
At 18:43 03.06.2003, Jackson Miller said: [snip] I am trying to create a text only version of an HTML formatted message. I would like to convert all links from: a href=http://domain.tld.page.ext;link name/a to: link name [http://domain.tld/page.ext] The

Re: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread R'twick Niceorgaw
probably because $_SESSION is a server side thing not coming from the client side in a Request ? R'twick - Original Message - From: Wouter van Vliet [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 12:48 PM Subject: RE: [PHP] Re: Migration from register_globals=on to

RE: [PHP] PHP and MYSQL record locking

2003-06-04 Thread John W. Holmes
We have a multi-user database we use for telemarketing. It is used across the internet. All the pages are PHP, I am trying to lock or keep other users from accessing the same record, so that they do not call the same lead. For example, the user selects a zip code to work from and then a lead

RE: [PHP] Creating favorites

2003-06-04 Thread Edward Peloke
I know you can use javascript to add the bookmark to the favorites folder, not sure how to add an icon to the toolbar.. a href=javascript:window.external.AddFavorite('http://www.yourpage.com', 'Your Page');Bookmark This Site!/a -Original Message- From: Joaco [mailto:[EMAIL PROTECTED]

Re: [PHP] Creating favorites

2003-06-04 Thread Joaco
That's already very helpful. Thanks. Edward Peloke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I know you can use javascript to add the bookmark to the favorites folder, not sure how to add an icon to the toolbar.. a

[PHP] Re: PHP and base32 encryption

2003-06-04 Thread DvDmanDT
I've never even heard of base32... Only base64... Maybe mcrypt but nah, can't see why mcrypt would include that... Errmm... Maybe you should check for some RFC about this... geektools.com seems to let you search RFC's... Cditty [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Someone

RE: [PHP] Automatically include global file ...

2003-06-04 Thread esctoday.com | wouter van vliet
Thanks !!! -Oorspronkelijk bericht- Van: Wendell Brown [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 3 juni 2003 18:52 Aan: PHP General; Wouter van Vliet Onderwerp: Re: [PHP] Automatically include global file ... On Tue, 3 Jun 2003 18:41:59 +0200, Wouter van Vliet wrote: I've heard

[PHP] OK guys, thank you so far

2003-06-04 Thread Øystein Håland
Now my code is extract ($_GET); if ($_GET['printout'] != yeah) { include(header.php); } but I still get the following error: Undefined index: printout I understand nothing Jonathan Wilkes [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] Hi, What he means is that with

Re: [PHP] preg_replace help

2003-06-04 Thread Jackson Miller
Maybe I should clarify. $message = 'pVisit a href=http://jaxn.org; target=_topMy personal site/a to learn more about me./p pVisit a href=http://memigo.com;memigi/a to learn about current events.'; What I want is to run a preg_replace to get the following: Visit My personal site (http://jaxn.org)

[PHP] John - RE: pagenting logic to cut short

2003-06-04 Thread Ryan A
Hey John, Thanks, its working fine now, actually a little better than I expected :-) Dont understand the logic though, if you find time point me to the correct place where i can read up and figure out the logic you used. Thanks again. Cheers, -Ryan - Original Message - From: John W.

RE: [PHP] OK guys, thank you so far

2003-06-04 Thread Edward Peloke
can you try if ($HTTP_GET_VARS['printout']!=yeah) {include(header.php);} does that work? -Original Message- From: Øystein Håland [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:17 PM To: [EMAIL PROTECTED] Subject: [PHP] OK guys, thank you so far Now my code is extract

[PHP] problems?

2003-06-04 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

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

2003-06-04 Thread Yves Daemen
Best way to do this, in my opinion, is by using a javascript-code like this input type=button onClick=processForm('next.php'); input type=button onClick=processForm('?php echo $PHP_SELF; ?'); The javascript function would then look like this: function processForm(url) {

Re: [PHP] Creating favorites

2003-06-04 Thread Yves Daemen
Adding the icon is done like this (grabbed it from the php.net site): link rel=shortcut icon href=http://static.php.net/www.php.net/favicon.ico; / Edward Peloke [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] I know you can use javascript to add the bookmark to the favorites folder,

Re: [PHP] OK guys, thank you so far

2003-06-04 Thread Wendell Brown
On Tue, 3 Jun 2003 19:16:30 +0200, +ystein H†land wrote: Now my code is extract ($_GET); if ($_GET['printout'] != yeah) { include(header.php); } but I still get the following error: Undefined index: printout I understand nothing Ok, it looks like you are mixing your metaphors ;) If you

RE: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread Wouter van Vliet
yeah .. I knew it .. but it would be so very helpfull if it would be just included in a superglobal similar to $_REQUEST ... -Oorspronkelijk bericht- Van: R'twick Niceorgaw [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 3 juni 2003 19:01 Aan: [EMAIL PROTECTED] Onderwerp: Re: [PHP] Re:

Re: [PHP] Creating favorites

2003-06-04 Thread Joaco
Thanks guys, didnt realize this would be a javascript question, so this post is on the wrong site. I appreciate all the help none the less. Yves Daemen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Adding the icon is done like this (grabbed it from the php.net site): link

RE: [PHP] problems?

2003-06-04 Thread Edward Peloke
are you wanting to prevent them from using this from home? Do they vpn or something into the work network and then view this page or can they just get there from the web? -Original Message- From: Dale [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:21 PM To: [EMAIL PROTECTED]

[PHP] Mcrypt functions

2003-06-04 Thread Daniel Rychlik
Hello, I have been playing with the mycrypt function. Im having a bit of trouble understanding why it is important to use a vector IV. I was wandering if there is a reasonably powerful encryption algorithm. That uses a key only instead of getting the block size and using a IV. I basically

RE: [PHP] problems?

2003-06-04 Thread Ed Gorski
Couple of clarifications Dale: Is this an internal intranet server? Can it be? Do you have admin rights to the server? What's OS and Server are you running? ~Ed -Original Message- From: Dale [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:21 PM To: [EMAIL PROTECTED] Subject:

Re: [PHP] Re: Migration from register_globals=on to register_globals=off

2003-06-04 Thread CPT John W. Holmes
yeah .. I knew it .. but it would be so very helpfull if it would be just included in a superglobal similar to $_REQUEST ... Do it yourself, if you must: array_merge() ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: John - RE: pagenting logic to cut short

2003-06-04 Thread CPT John W. Holmes
Thanks, its working fine now, actually a little better than I expected :-) Dont understand the logic though, if you find time point me to the correct place where i can read up and figure out the logic you used. The logic isn't too hard. You're on page X. You show links to other pages from X

[PHP] setting up a cron job for a PHP script

2003-06-04 Thread Tim Thorburn
Hi, I've setup a simple PHP script that runs through a database table and sends an email to a group of members asking them to verify their information. My new ISP allows me to access the cron tab so we can have this script run at set intervals. However I'm a little new to the whole cron tab

Re: [PHP] This line does not execute...

2003-06-04 Thread Todd Cary
Alex - The problem is/was that I run PHP with register_globals = Off. Knowing that, I thought that I had put in all of the $HTTP_XXX_VARS statments, but I did not. Setting register_globals = On temporarily fixed the problem. Now the question is what is the usual setting for

Re: [PHP] setting up a cron job for a PHP script

2003-06-04 Thread Wendell Brown
On Tue, 03 Jun 2003 12:59:41 -0500, Tim Thorburn wrote: is it possible to have a PHP script execute on command from a cron tab? Absolutely! And if so, could someone proide an example of say having the script run on the first of every month? It should look something like this. 0 0 1 *

RE: [PHP] setting up a cron job for a PHP script

2003-06-04 Thread Jay Blanchard
[snip] I've setup a simple PHP script that runs through a database table and sends an email to a group of members asking them to verify their information. My new ISP allows me to access the cron tab so we can have this script run at set intervals. However I'm a little new to the whole cron tab

Re: [PHP] setting up a cron job for a PHP script

2003-06-04 Thread CPT John W. Holmes
You can also call the file through lynx or wget if you can't call the php executable directly. lynx --dump http://www.yourserver.com/file.php wget http://www.yourserver.com/file.php Down side is that the file has to be in your web root. Works great for calling remote files, though. ---John

Re: [PHP] problems?

2003-06-04 Thread Dale
The web server sits outside of the office and can be accessed from anywhere pc. I was thinking that if I could some how query the MAC address of the store workstation, I could write some code that would allow only pc with certain MAC addresses to access this timeclock program. The server is a win

[PHP] Multi Selection

2003-06-04 Thread Frank Keessen
Hi Guys, I'm trying to do the following: I've got a multiple selection box build out of a query of table tdselect name=VALUE[] size=10 multiple id=VALUE[] ? $query2 = SELECT SomethingID, Somewhere FROM Someplace WHERE publiceer = 'yes' ORDER BY somewhere; $result2 = mysql_query($query2) or

[PHP] Re: Mcrypt functions

2003-06-04 Thread Jay Smith
Daniel Rychlik wrote: Hello, I have been playing with the mycrypt function. Im having a bit of trouble understanding why it is important to use a vector IV. I was wandering if there is a reasonably powerful encryption algorithm. That uses a key only instead of getting the block size and

Re: [PHP] OK guys, thank you so far

2003-06-04 Thread Øystein Håland
I've tried and here's the output: Undefined index: input if ($HTTP_GET_VARS['printout'] != yeah) { include(header.php); } Edward Peloke [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] can you try if ($HTTP_GET_VARS['printout']!=yeah) {include(header.php);} does that work?

RE: [PHP] problems?

2003-06-04 Thread esctoday.com | wouter van vliet
What comes in my mind is that usually in offices (or schools) all workstations have IP's within some IP range.. Unless each workstation dials up to or makes it's own connection with 'the internet'... You should be able to do something with that.. -Oorspronkelijk bericht- Van: Dale

RE: [PHP] Multi Selection

2003-06-04 Thread esctoday.com | wouter van vliet
What you need to generate as HTML looks smth like this --- FORM method=post action=page.php SELECT name='somename[]' size=10 multiple id='somename[]' OPTION value='one'First Thingie/OPTION OPTION value='two'Second Thingie/OPTION OPTION

[PHP] Interesting.... :/

2003-06-04 Thread Chris Knipe
Lo all, Some input much appreciated. I upgraded mod_php4 from 4.2.3 to 4.3.2, and needless to say, something went horribly wrong. PHP compiled without any serious problems, and the installation seemed to have gone fine as well. When issuing a apachectl restart, apache immediately core dumped...

  1   2   >