[PHP] Strong Web Hosts in Canada?

2002-07-17 Thread Analysis Solutions
Hi Folks: A client of mine has a large series of high traffic, PHP/MySQL intensive websites. They're looking for dedicated hosting in Canada. Any recommendations? Enjoy, --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form

[PHP] Re: PHP and Jigsaw

2002-07-17 Thread Murray Nicholas
Some careful testing and results... All tests invoke the URL http://myserver:jigsawport/phpinfo.php; Test 1: * phpinfo.php contains exactly one line ?php phpinfo();? * Jigsaw's debug flag in the default extension indexer cgiframe definition for .php files is true. The browser shows a white

Re: [PHP] Opening and Editing Quark Binaries

2002-07-17 Thread Miguel Cruz
On Sun, 14 Jul 2002, Simon Troup wrote: ... quark reports things like unexpected EOF (even though when I open the file in a text editor they have same number of lines and look identical), I've also tried a few things with the Mac resource forks to no avail. Has anyone tried something like

[PHP] Require some help about the date comparison

2002-07-17 Thread Manisha
I am writing one program - I want to display some text on web. This text should appear for limited period e.g from 20th July 12pm till 25th July 3pm. After 25th July 3pm the text should disappear from screen. I tried to look for date comparison / string conversion to date etc, I got lot info

Re: [PHP] Preventing Multiple Log-Ins after Authentication

2002-07-17 Thread Lars Olsson
I agree. Using a database is usually a good way of storing session information. But as noted by Dennis below, automatic logout may require additional scripts running in the background. This is a bit inferior in PHP compared to ASP. In ASP, support for automatic session destruction is

Re: [PHP] Require some help about the date comparison

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 14:55, Manisha wrote: I am writing one program - I want to display some text on web. This text should appear for limited period e.g from 20th July 12pm till 25th July 3pm. After 25th July 3pm the text should disappear from screen. I tried to look for date

Re: [PHP] Require some help about the date comparison

2002-07-17 Thread Andrey Hristov
I think that it is better to use unixtimestamps and if you save them to a RDBMS then save according to GMT. When retrieving use timezone to convert to your local time - ex define('MY_TIMEZONE',-2); list($time) = mysql_fetch_array(mysql_query('select tstamp from table where user='.$user_id.';'));

Re: [PHP] Opening and Editing Quark Binaries

2002-07-17 Thread Justin French
I've attached a file I received with Quark 3.32, which has sample text complete with Quark Xpress tags. Perhaps rather than using PHP to edit a whole .qxd file, perhaps you can use it to help format some text to be imported into a template file. It's not a complete solution, but a part of one

Re: [PHP] Opening and Editing Quark Binaries

2002-07-17 Thread Justin French
on 17/07/02 5:28 PM, Justin French ([EMAIL PROTECTED]) wrote: I've attached a file I received with Quark 3.32, which has sample text complete with Quark Xpress tags. Sorry forgot to attach the file! Justin @DropCapParagraphStyle=*L*hStandard*kn0*kt0*ra0*rb0*d(1,3)*p(0,0,0,0,0,0,g)*t(0,0,

[PHP] Problem on file_exists() function

2002-07-17 Thread Jack
Dear all I had made a test.txt file which stored in the following window path : c:\pdf_reports\dealing\test.txt, In my page, i ask php to check the test.txt exist in foler (c:\pdf_reports\dealing) using the following script: if (file_exists(c:\\pdf_reports\\dealing\\test.txt)) { print

RE: [PHP] Require some help about the date comparison

2002-07-17 Thread John Holmes
I want to display some text on web. This text should appear for limited period e.g from 20th July 12pm till 25th July 3pm. After 25th July 3pm the text should disappear from screen. ? //mktime(hour,minute,second,month,day,year) $start = mktime(12,0,0,7,20,2002); $end =

RE: [PHP] Sessions / logins / cookies / security

2002-07-17 Thread John Holmes
Sure, why not? Users can't create session variables (unless you're on a virtual server...) ... and I am -- A shared host server that is. Now I'm not sure on this, I haven't tested it. Has anyone? If we're on a virtual server, why can't I just open the session.save_path with PHP and read

RE: [PHP] IF inside LOOP?

2002-07-17 Thread Ford, Mike [LSS]
-Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: 15 July 2002 03:04 This is what I have so far: for ($m=0; $m$num_rows2; $m++) { $row2 = mysql_fetch_array($result2); echo $row2[devlanguage]; if ($m $num_rows2) { echo , ; } else { echo .; }

Re: [PHP] Multiple Tables -add, edit, delete

2002-07-17 Thread Paul Dionne
Thanks Dan Paul Analysis Solutions wrote: Oh, yes! I forgot about deleting countries that have been unchecked! Hmm... Lock the table to prevent people from reading from it, delete all records for that company, then loop through and insert the new data, then unlock the table. --Dan

[PHP] To fill an Array

2002-07-17 Thread Gabor Niederlaender
Hi all! I would like to fill the values from my $_POST array to another array called xy which is not an associative array. F.Ex: $_POST['smthing'] should be $xy[0] etc... How do I do this? Best regards, Gabor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] To fill an Array

2002-07-17 Thread Andrey Hristov
$xy = array_values($_POST); HTH Regards, Andrey Hristov - Original Message - From: Gabor Niederlaender [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 1:19 PM Subject: [PHP] To fill an Array Hi all! I would like to fill the values from my $_POST array

Re: [PHP] Strong Web Hosts in Canada?

2002-07-17 Thread Andre Dubuc
Hi Dan, Try http://www.hub.org. Hth, Andre On Wednesday 17 July 2002 02:23 am, you wrote: Hi Folks: A client of mine has a large series of high traffic, PHP/MySQL intensive websites. They're looking for dedicated hosting in Canada. Any recommendations? Enjoy, --Dan -- PHP General

Re: [PHP] Sessions / logins / cookies / security

2002-07-17 Thread Justin French
on 17/07/02 6:51 PM, John Holmes ([EMAIL PROTECTED]) wrote: ... and I am -- A shared host server that is. Now I'm not sure on this, I haven't tested it. Has anyone? Is this particular vulnerability only in existence when the server is pretty open? I mean, on my particular host, I can't FTP

Re: [PHP] Strong Web Hosts in Canada?

2002-07-17 Thread Adam Alkins
Hi Folks: A client of mine has a large series of high traffic, PHP/MySQL intensive websites. They're looking for dedicated hosting in Canada. Any recommendations? You might have better luck getting recommendation on http://www.webhostingtalk.com -- Adam Alkins

[PHP] php 4.2.1 compilation errors with apache 2.0

2002-07-17 Thread electroteque
hi guys i am getting this message when trying to compile php 4.2.1 with apache 2.0 os.h: No such file or directory , there is a missing file, i tried a symlink to /os/unix/os.h but still didnt work ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] php Similar to C in Pointer Memory Accessing or not?

2002-07-17 Thread Kondwani Spike Mkandawire
Hi Folks: Just for interest sake, for those of you who have messed with C know about Pointers hence probably know that one can access stuff from Memory Locations in very wierd ways via pointers and Arrays: int * ptr; ptr = array[0]; ptr=ptr-1; The last statement does not generate an error but

[PHP] Sessions Vars under 4.0.4pl1

2002-07-17 Thread Henry
Hello All, I, having problems getting HTTP_SESSION_VARS to work the way I think they should. Shouldn't I just be able to do something like: in a file called index.php I have the following; ?php session_start(); ? html head/head body The session_id is ?php echo \.session_id().\; ? a

[PHP] Forms problem?

2002-07-17 Thread Mark Colvin
I have a php script that queries a mysql db and build a form on a page for each row returned. Each form has four fields and a thumbnail of a JPEG. Below the image is a link to view the full image in a new window by using a javascript function. (No javascript jibes before I go any further, it was

Re: [PHP] Forms problem?

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 19:17, Mark Colvin wrote: Misleading subject. Nothing to do with php or forms. [snip] mention that when I load this page, I get an IE error 'unterminated string constant' but the page does load correctly. Obviously there is a problem. What does 'load correctly'

RE: [PHP] Sessions / logins / cookies / security

2002-07-17 Thread John Holmes
... and I am -- A shared host server that is. Now I'm not sure on this, I haven't tested it. Has anyone? Is this particular vulnerability only in existence when the server is pretty open? I mean, on my particular host, I can't FTP to anything outside my docroot, and I can't use SSH,

[PHP] Regular expression for correcting proper nouns

2002-07-17 Thread Henry
Hi All, I'm looking for a simple was to correct a list of proper nouns given all in lower case! For example given $string=london paris rome; I would like London Paris Rome. However there is one cavet; if the word already has a captital anywhere in it, it should be left alone!!! Is there a

[PHP] DPHPEdit new version

2002-07-17 Thread Davor Pleskina
PHP (and other) programmers, Feel free to download and use this small PHP IDE. There is a new, completely stable version 0.9.2.3 available at http://www.pleskina.com/dphped Thanks all you guys who helped me making this program better and more usable! Keep looking ahead for more features in

Re: [PHP] Sessions / logins / cookies / security

2002-07-17 Thread René Moonen
snip What I'm looking to do is when a user logs in, I start up the session.. I then have the registered session var to verify they are authenticated as they move throughout the site. /snip This solution is no garantuee that the authenticated user is in control during that session. The only

[PHP] function for finding one character in a string?

2002-07-17 Thread Scott Fletcher
I have been looking around in the PHP function listing for a function that can find or match one character from a string. I thought it would be something like post_str() or something but never found anything close to that. I get the idea of post and str from the SQL command. I did check the

Re: [PHP] Regular expression for correcting proper nouns

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 20:07, Henry wrote: Hi All, I'm looking for a simple was to correct a list of proper nouns given all in lower case! For example given $string=london paris rome; I would like London Paris Rome. However there is one cavet; if the word already has a captital

Re: [PHP] function for finding one character in a string?

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 05:36, Scott Fletcher wrote: I have been looking around in the PHP function listing for a function that can find or match one character from a string. I thought it would be something like post_str() or something but never found anything close to that. I get the

[PHP] Debugging LDAP_connect problems

2002-07-17 Thread Brad Harriger
I'm trying to connect to a server using ldap_connect. The connection is failing, but I'm not sure why. When I try to use ldap_error() to narrow down the problem, I get a messaging saying ... 0 is not a LDAP link index at I'm not sure what other options I have. Any suggestions would

Re: [PHP] CRON JOB

2002-07-17 Thread José León Serna
MAAS wrote: What do I have to do before I can run my file.php as a cron job in Linux? What problem do you have? I have no problems with it calling it as php myfile.php -- Best Regards. -- QaDRAM Studio, RAD development for the web

Re: [PHP] CRON JOB

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 20:51, MAAS wrote: What do I have to do before I can run my file.php as a cron job in Linux? search archives for cron. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] function for finding one character in a string?

2002-07-17 Thread Adam Voigt
Or, if you want a count of the number of times a character (or string if you want) ocurrs in a string, you could use: substr_count() http://www.php.net/manual/en/function.substr-count.php Adam Voigt [EMAIL PROTECTED] On Tue, 2002-07-16 at 17:36, Scott Fletcher wrote: I have been looking

[PHP] Re: CRON JOB

2002-07-17 Thread val petruchek
*/1 * * * * val /usr/local/bin/lynx -source http://php.net/crontab/steward.php - example of how to call script every minute -- Sincerely, val petruchek Maas [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... What do I have to do before I can

[PHP] CRON JOB

2002-07-17 Thread MAAS
What do I have to do before I can run my file.php as a cron job in Linux? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] CRON JOB

2002-07-17 Thread Jay Blanchard
[snip] What do I have to do before I can run my file.php as a cron job in Linux? [/snip] Look at the archives for the past couple of days, it has been covered in some detail. Make sure to compile PHP without apsx, and for practical purposes move the PHP executable to the /usr/local/bin

[PHP] imap connection problem

2002-07-17 Thread Korbinian Schmid
when i try to connect to my local imap server by php i get the message (standard ie message) that the page can't be shown. with another server (imap.web.de) everything works fine. with outlook i can access my server without any problems and also mtest seems to work without any errors. what's

[PHP] win32 mail()

2002-07-17 Thread val petruchek
don't be afraid - it works perfect. i mean mail() on win32 server my question is - how to set up SMTP authorization in php ini (if smtp server requires pop auth) is it possible or should i use direct smtp connection? -- Sincerely, val petruchek -- PHP General Mailing List

[PHP] Classes Constructor syntax

2002-07-17 Thread David Russell
Hi all, I am finally spending some time converting a million and one functions into a class - this is for a software issue tracking system. I have: class issue { var var ... function issue() { //default constructor //initialise all variables to defaults, and start getting

[PHP] Regular expression

2002-07-17 Thread Michal Albrecht
Hi, Could anyone help me with the following: I have to strip the domain from string only if it is not preceded with @ which means - when it is not an e-mail address. Examples: 1. blah blah blah [EMAIL PROTECTED] blah blah should result in: blah blah blah [EMAIL PROTECTED] blah blah 2.

[PHP] Re: Classes Constructor syntax

2002-07-17 Thread Matthew Gray
PHP does not support multiple constructors. But, It does support variable argument lists, so you can fake it with func_get_args() and func_get_num_args(): function issue() { if( func_get_num_args() 0 ) { $args = func_get_args() } else { // do something else...

Re: [PHP] Regular expression

2002-07-17 Thread Andrey Hristov
Something like this. $your_string = preg_replace('/[\d\w]+@([\w\d]{3,}\.)+([\w]{2,4})/','', $your_string); HTH Best regards, Andrey Hristov - Original Message - From: Michal Albrecht [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 1:08 PM Subject: [PHP] Regular

Re: [PHP] Classes Constructor syntax

2002-07-17 Thread Michael Hall
PHP does not support multiple constructors. Michael On Wed, 17 Jul 2002, David Russell wrote: Hi all, I am finally spending some time converting a million and one functions into a class - this is for a software issue tracking system. I have: class issue { var var ...

Re: [PHP] win32 mail()

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 21:18, val petruchek wrote: don't be afraid - it works perfect. i mean mail() on win32 server my question is - how to set up SMTP authorization in php ini (if smtp server requires pop auth) Standard mail() doesn't do auth. is it possible or should i use direct

[PHP] File reading help with Syntax

2002-07-17 Thread Chris Crane
I am getting data froma website for stock information. If I type in the brower the URL I get a text file display list this; Date,Open,High,Low,Close,Volume 16-Jul-02,7.92,8.10,7.68,7.82,605500 15-Jul-02,7.98,8.02,7.59,8.02,577200 12-Jul-02,7.80,8.00,7.57,7.95,411100

Re: [PHP] Regular expression

2002-07-17 Thread Michal Albrecht
Andrey Hristov wrote: Something like this. $your_string = preg_replace('/[\d\w]+@([\w\d]{3,}\.)+([\w]{2,4})/','', $your_string); HTH Best regards, Andrey Hristov Thank you very much for your time, but this strips the e-mail address and lives the domain. Could you give me some hints on

Re: [PHP] Classes Constructor syntax

2002-07-17 Thread Michael Hall
I'm no guru, but here goes anyway ... default variable values can simply be set with a var statement: var $somevar1 = value1; var $somevar2 = value2; or with a set function: var $somevar1; var $somevar2; function setsomevar1() { $this-somevar1 = value1; } function setsomevar2() {

Re: [PHP] win32 mail()

2002-07-17 Thread val petruchek
Have a look the the Pear mail.php or google for php smtp auth already done, but i've my own smtp class anyway. i hoped to avoid rewriting code which used mail(). thanks -- Sincerely, val petruchek Jason Wong [EMAIL PROTECTED] ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: [EMAIL

[PHP] $HTTP_SESSION_VARS ? Have I got it wrong

2002-07-17 Thread Henry
The answer is probably yes. I do a session_start() followed by a $HTTP_SESSION_VARS['count']=2 on one page. Then I go to another page and do a session_start() again; unfortunately the $HTTP_SESSION_VARS['count'] is empty!!! I tried doing a session_register('count2'); $count2=123; in the first

Re: [PHP] $HTTP_SESSION_VARS ? Have I got it wrong

2002-07-17 Thread Martin Clifford
Define the value of $count before registering it, and it should work fine :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Henry [EMAIL PROTECTED] 07/17/02 10:14AM The answer is probably yes. I do a session_start()

Re: [PHP] $HTTP_SESSION_VARS ? Have I got it wrong

2002-07-17 Thread Martin Clifford
Ignore that, I'll just go grab my copy of Hooked on Phonics so I can learn to read before replying. :trots off: Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ Martin Clifford [EMAIL PROTECTED] 07/17/02 10:15AM Define the

[PHP] querying for one specific row number

2002-07-17 Thread Phil Schwarzmann
I want query my mysql table and get one particular row. So let's say my table had 5 rows (entries) in it, and I want to pull just row #2, how would I do this?? THANKS!!

Re: [PHP] querying for one specific row number

2002-07-17 Thread Martin Clifford
If you are using an auto_increment primary key field named id, then you would use this: SELECT * FROM table WHERE id=2 LIMIT 1 Just so long as you know that if for some reason you delete that row, there will NEVER Be another id of 2, unless you set it that way. If you only want to select

Re: [PHP] querying for one specific row number

2002-07-17 Thread René Moonen
Phil Schwarzmann wrote: I want query my mysql table and get one particular row. So let's say my table had 5 rows (entries) in it, and I want to pull just row #2, how would I do this?? THANKS!! It's OT but OK: SELECT * FROM table LIMIT 1,1; Have another look at the MySQL manual (6.4.1.

Re: [PHP] imap connection problem

2002-07-17 Thread Latex Master
Hello Korbinian, Can you provide the script code? Let's see how we can help Wednesday, July 17, 2002, 4:50:44 PM, you wrote: KS when i try to connect to my local imap server by php i get the message KS (standard ie message) that the page can't be shown. with another server KS

[PHP] Of Jobs and Certs

2002-07-17 Thread Martin Clifford
Howdy everyone, I'd like to get everyone's input on Jobs and Certs. I know there are a couple Certifications for web developers out there, such as the CIW and CWP certifications. Here are my questions: 1. What is the best method to go about becoming certified? 2. What is the best way to go

[PHP] $_SESSION - autostart, or session_start() ?

2002-07-17 Thread Matt Babineau
If I set the SESSION autostart = 1 in the PHP config, would that eliminate my need to use session_start() in my code? I have some PHP inline with some HTML, and the PHP is telling me: Warning: Cannot send session cookie - headers already sent Any ideas how to remedy this? Matt Babineau MCWD

Re: [PHP] $_SESSION - autostart, or session_start() ?

2002-07-17 Thread Andrey Hristov
Try with output buffering. Regards, Andrey Hristov - Original Message - From: Matt Babineau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 6:20 PM Subject: [PHP] $_SESSION - autostart, or session_start() ? If I set the SESSION autostart = 1 in the PHP

[PHP] Queries - Sometimes I need to use apostrophe, other times idon't

2002-07-17 Thread Phil Schwarzmann
When running a mysql_query, sometimes i need to have apostrophes surrounding variables...other times i don't example... $query = SELECT * FROM table WHERE id='$id'; or $query = SELECT * FROM table WHERE id=$id; ...it kinda seems random when it wants apostrophes and when it doesn't want

Re: [PHP] $_SESSION - autostart, or session_start() ?

2002-07-17 Thread Martin Clifford
The error is pretty self-explanatory. You aren't starting the session before soemthing is being written to the page. This will yeild the same error: -top of document-- !-- BEGIN DOCUMENT ?php session_start(); ? -botton of doc- This is because something has been sent to

Re: [PHP] Queries - Sometimes I need to use apostrophe, other times i don't

2002-07-17 Thread Asmodean
QUOTE// When running a mysql_query, sometimes i need to have apostrophes surrounding variables...other times i don't example... $query = SELECT * FROM table WHERE id='$id'; or $query = SELECT * FROM table WHERE id=$id; ...it kinda seems random when it wants apostrophes and when it

Re: [PHP] Queries - Sometimes I need to use apostrophe, other times idon't

2002-07-17 Thread 1LT John W. Holmes
It's not random. Strings need to be enclosed. You can use single or double quotes, but you have to use them. ---John Holmes... - Original Message - From: Phil Schwarzmann [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 11:19 AM Subject: [PHP] Queries - Sometimes I

Re: [PHP] $_SESSION - autostart, or session_start() ?

2002-07-17 Thread 1LT John W. Holmes
Call session_start() before ANY output. html is OUTPUT. ---John Holmes... - Original Message - From: Matt Babineau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 11:20 AM Subject: [PHP] $_SESSION - autostart, or session_start() ? If I set the SESSION

Re: [PHP] querying for one specific row number

2002-07-17 Thread 1LT John W. Holmes
I want query my mysql table and get one particular row. So let's say my table had 5 rows (entries) in it, and I want to pull just row #2, how would I do this?? What is row #2?? The second row when the table is ordered by the first column? second column? ascending? decending? without an ORDER

[PHP] Re: OT [PHP] querying for one specific row number

2002-07-17 Thread 1LT John W. Holmes
Off topic... So let's say my table had 5 rows (entries) in it, and I want to pull just row #2, how would I do this?? SELECT * FROM table LIMIT 1,1; Technically, without an ORDER BY in your query, the database can return a different row each time with this query. Without an ORDER BY, how do

Re: [PHP] $HTTP_SESSION_VARS ? Have I got it wrong

2002-07-17 Thread 1LT John W. Holmes
If you're going to use $HTTP_SESSION_VARS, then you have to use session_register(). ? session_start(); session_register('count'); ? Next page: ? session_start(); echo $HTTP_SESSION_VARS['count']; ? That should work. If you use $_SESSION, instead, then you don't have to use session_register.

[PHP] timer on sessions?

2002-07-17 Thread Jas
Not sure how to go about setting up a function to parse the date, hour, minutes, seconds, take the seconds and register them in a session var, then do a check on the session var (seconds) vs. the seconds var + 5*60 (or 5 minutes) to time out the session and force the user to log back in. My

Re: [PHP] timer on sessions?

2002-07-17 Thread Asmodean
J Not sure how to go about setting up a function to parse the date, hour, J minutes, seconds, take the seconds and register them in a session var, then J do a check on the session var (seconds) vs. the seconds var + 5*60 (or 5 J minutes) to time out the session and force the user to log back in.

Re: [PHP] Problem on file_exists() function

2002-07-17 Thread Analysis Solutions
On Wed, Jul 17, 2002 at 03:55:10PM +0800, Jack wrote: if (file_exists(c:\\pdf_reports\\dealing\\test.txt)) It seems that php can't detect the file in such path!!! While this isn't your problem, it's nicer coding. Single quotes and forward slashes: if (

[PHP] ARRAY_PUSH()

2002-07-17 Thread Chris Crane
I am getting data froma website for stock information. If I type in the brower the URL I get a text file display list this; Date,Open,High,Low,Close,Volume 16-Jul-02,7.92,8.10,7.68,7.82,605500 15-Jul-02,7.98,8.02,7.59,8.02,577200 12-Jul-02,7.80,8.00,7.57,7.95,411100

Re: [PHP] timer on sessions?

2002-07-17 Thread Jas
I am not able to test from this machine so please tell me if I am right or wrong on this: $tmp = time(); $tme = time() - 5*60; session_register('tmp'); if ($tmp = $tme) { echo 'Time has not reached 5 minutes, session still valid'; } else { echo 'Timer has reached 5 minutes, you will need

Re[2]: [PHP] timer on sessions?

2002-07-17 Thread Asmodean
J I am not able to test from this machine so please tell me if I am right or J wrong on this: J $tmp = time(); J $tme = time() - 5*60; J session_register('tmp'); if ($tmp = $tme) { J echo 'Time has not reached 5 minutes, session still valid'; J } else { J echo 'Timer has reached 5

Re: [PHP] Regular expression

2002-07-17 Thread Analysis Solutions
On Wed, Jul 17, 2002 at 04:03:02PM +0200, Michal Albrecht wrote: Andrey Hristov wrote: $your_string = preg_replace('/[\d\w]+([\w\d]{3,}\.)+([\w]{2,4})/','', Thank you very much for your time, but this strips the e-mail address and lives the domain. Could you give me some hints on how to

Re[3]: [PHP] timer on sessions?

2002-07-17 Thread Asmodean
J I am not able to test from this machine so please tell me if I am right or J wrong on this: J $tmp = time(); J $tme = time() - 5*60; J session_register('tmp'); if ($tmp = $tme) { J echo 'Time has not reached 5 minutes, session still valid'; J } else { J echo 'Timer has reached 5

Re: Re[2]: [PHP] timer on sessions?

2002-07-17 Thread Jas
So under the time() call, comparing it to a simple numerical value such as 300 it knows that you are talking about 300 seconds? Is that because it is a unix timestamp? I previously tried using date(s) to give me the seconds from today's date then tried the compare, so using time() will work

[PHP] New York PHP Presents: Implementing an Object-based Web Framework in PHP

2002-07-17 Thread Daniel Kushner
Posted by Daniel Kushner (on behalf of Hans Zaunere) New York PHP Presents: Implementing an Object-based Web Framework in PHP NYPHP's monthly meeting is a week away (7/24), and after an informal networking event last month, we're excited to offer what certainly will be a highly valuable

Re[4]: [PHP] timer on sessions?

2002-07-17 Thread Asmodean
J So under the time() call, comparing it to a simple numerical value such as J 300 it knows that you are talking about 300 seconds? Is that because it J is a unix timestamp? I previously tried using date(s) to give me the J seconds from today's date then tried the compare, so using time() will

[PHP] Tips for better PHP, wish I read yesterday

2002-07-17 Thread Peter J. Schoenster
Hi, Awhile back I was asking for just what I'm reading here: http://www.php9.com/index.php/section/articles/name/PHP%20Guidelines Some snippets to give you an idea what you will find on that page: Another mistake I see around a lot is people writing scripts that will not work if

[PHP] regex in_array or array_search

2002-07-17 Thread Dave [Hawk-Systems]
other than each'ing an array and performing a regex match, is there an easier way to parse through the values in an array for a value matching *something*somethingelse* thanks Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regex in_array or array_search

2002-07-17 Thread Chris Boget
other than each'ing an array and performing a regex match, is there an easier way to parse through the values in an array for a value matching *something*somethingelse* No, I don't believe so. But I'm sure you can set up something to use with array_walk(). Chris -- PHP General Mailing

[PHP] Confused about the list() function

2002-07-17 Thread DonPro
Hi, I have the following situation. I have an array of colors that I would like to print out. My first course of action would be to convert the array to a string so that I can parse it. My command would be: $color_list = explode(,, $color); Now that I have a string of colors delimited by

Re: [PHP] Classes Constructor syntax

2002-07-17 Thread Analysis Solutions
On Wed, Jul 17, 2002 at 03:26:15PM +0200, David Russell wrote: class issue { function issue() { //default constructor } function issue($number) { //1 variable constructor } } My question is: will this work? does PHP OOP support more than one constructor? No. But, here's a

Re: [PHP] Confused about the list() function

2002-07-17 Thread 1LT John W. Holmes
How do you want to parse the string? why not just echo $color_list? ---John Holmes... - Original Message - From: DonPro [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 12:26 PM Subject: [PHP] Confused about the list() function Hi, I have the following

RE: [PHP] Tips for better PHP, wish I read yesterday

2002-07-17 Thread Jay Blanchard
[snip] Awhile back I was asking for just what I'm reading here: http://www.php9.com/index.php/section/articles/name/PHP%20Guidelines I have come across some of this in the documentation but not in your face like it is here (and should be). Does anyone have any more links to articles like that?

[PHP] remove header tags - include file

2002-07-17 Thread Juan Pablo Aqueveque
Hi guys, me again. (thanks kevin, but i'm afraid you didn't understand me). After looking for untiringly in the archives I have I decide to ask again. This is my problem: I want include the file html.html inside of my file index.php, but before include it I want to remove html../head tags from

Re: [PHP] remove header tags - include file

2002-07-17 Thread Asmodean
JPA Hi guys, me again. JPA (thanks kevin, but i'm afraid you didn't understand me). JPA After looking for untiringly in the archives I have I decide to ask again. JPA This is my problem: JPA I want include the file html.html inside of my file index.php, but before JPA include it I want to

Re: [PHP] imap connection problem

2002-07-17 Thread Korbinian Schmid
the important part (without this line the script works): $mbox = imap_open ({localhost/imap}INBOX,, ); it`s the same without INBOX i also tried different downloaded mailbox scripts so i think it's a php-system problem. Latex Master [EMAIL PROTECTED] schrieb in im Newsbeitrag: [EMAIL

Re: [PHP] remove header tags - include file

2002-07-17 Thread Juan Pablo Aqueveque
Do you mean you want to include the file html.html but not the html.../head part? Yes!!. In other words I just want show the part inside of body tag of the html.html I know the answer is in a Regulars expression.. but.. i don't know much about it. At 19:08 17-07-2002, you wrote: JPA Hi

[PHP] Someone Help please

2002-07-17 Thread Chris Crane
I am getting data froma website for stock information. If I type in the brower the URL I get a text file display list this; Date,Open,High,Low,Close,Volume 16-Jul-02,7.92,8.10,7.68,7.82,605500 15-Jul-02,7.98,8.02,7.59,8.02,577200 12-Jul-02,7.80,8.00,7.57,7.95,411100

Fw: [PHP] Someone Help please

2002-07-17 Thread Kevin Stone
Parse all lines of a txt file into an array.. $ary = explode(\n, $results); -Kevin - Original Message - From: Chris Crane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 11:16 AM Subject: [PHP] Someone Help please I am getting data froma website for stock

Re[2]: [PHP] remove header tags - include file

2002-07-17 Thread Asmodean
JPA Do you mean you want to include the file JPA html.html but not the html.../head part? JPA Yes!!. In other words I just want show the part inside of body tag of the JPA html.html JPA I know the answer is in a Regulars expression.. but.. i don't know much JPA about it. JPA At 19:08

[PHP] ErrorDocument 404 Form

2002-07-17 Thread Fabien Penso
Hi. I got a trouble I don't know if Apache or PHP is in fault. Let's say I got something like : ErrorDocument 404 /engine.php If I make a form which use POST and redirect to something which doesn't exist, then a phpinfo() in engine.php won't show the variables. Am I wrong thinking it should ?

Re: [PHP] Of Jobs and Certs

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Martin Clifford wrote: I'd like to get everyone's input on Jobs and Certs. I know there are a couple Certifications for web developers out there, such as the CIW and CWP certifications. I don't know if this is what you want to hear, but I can tell you that as a rule, I

Re: [PHP] Of Jobs and Certs

2002-07-17 Thread Danny Shepherd
I agree - nothing beats a good portfolio. Danny. - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: Martin Clifford [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, July 17, 2002 6:55 PM Subject: Re: [PHP] Of Jobs and Certs On Wed, 17 Jul 2002, Martin Clifford

Re: [PHP] php Similar to C in Pointer Memory Accessing or not?

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Kondwani Spike Mkandawire wrote: Just for interest sake, for those of you who have messed with C know about Pointers hence probably know that one can access stuff from Memory Locations in very wierd ways via pointers and Arrays: int * ptr; ptr = array[0]; ptr=ptr-1;

RE: [PHP] Someone Help please

2002-07-17 Thread John Holmes
File() will read the file into an array, each element of the array will be a line from the file. Explode() will then split that line by the delimiter you choose... So something like this: $file = file(filename.txt); foreach($file as $line) { $part = explode(',',$line); //now you have an

Re: [PHP] Opening and Editing Quark Binaries

2002-07-17 Thread Miguel Cruz
On Wed, 17 Jul 2002, Justin French wrote: I've attached a file I received with Quark 3.32, which has sample text complete with Quark Xpress tags. XPress Tags is a great format, and easy to work with for auto-generated content. However, all you can do with it is prepare text for a single

[PHP] how many requests can php serve?

2002-07-17 Thread Andy
Hi there, I am wondering how many requests at one time php can serve before the site brakes down. Someone told me that my site has been down yesterday for a while after I did anounce it through a university email list going to 2500 users. Maybe there is a smart artikle on that. Thanx for any

  1   2   >