Re: [PHP] Re: Ping on Win32

2002-12-04 Thread Christopher J. Crane
Oh man...it's always the simple things you over look...thank you. "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 05 December 2002 04:08, Christopher J. Crane wrote: > > This is the output I get a

Re: [PHP] Generating forms using OOP

2002-12-06 Thread Peter J. Schoenster
On 7 Dec 2002 at 0:43, Davy Obdam wrote: > I ve just started with some OOP programming in PHP and now i have to > build a set of classes that can generate a html form.. But i have a > problem with the thing I hope > someone can help me here or give me some pointers,... any help is > apreciate

[PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Brian J. Celenza
rrently running Apache with Mysql and PHP version 4 on Redhat 8. Any suggestions? Thank you. -- ------- Brian J. Celenza [EMAIL PROTECTED] ICQ: 100942424 AIM: BJCKnight -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Brian J. Celenza
p.general To: <[EMAIL PROTECTED]> Sent: Sunday, December 08, 2002 11:53 AM Subject: Re: [PHP] mysql_connect problem under RedHat 8.0 ? > On Monday 09 December 2002 00:29, Brian J. Celenza wrote: > > Hello! > > > > When trying to connect to a mysql database under my linux system

[PHP] Re: mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Brian J. Celenza
Found the problem... Somehow my version of mysql had become uninstalled, and I have no idea why that is. Thanks for all the help :) "Brian J. Celenza" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello! > > When trying to

[PHP] PHP/ldap - atomic attribute modification

2002-12-14 Thread Carl J Meyer
Hi all, Anyone out there have significant experience using the PHP/ldap interface? It appears to me that it's missing some important functionality, but I might just not be seeing how to do it. I have a user-management application which needs to manage an openLDAP user base of several thousand us

[PHP] Date Subtraction

2002-12-23 Thread Christopher J. Crane
I have two periods in time from a Cisco router that I would like to find the difference in seconds. I am not sure the best way to do this since it is not a date, but rather an amount of time since last reset. Here is the numbers 181 days, 7:11:06.66 //stands for 181 days, 7 hours, 11 minutes, 6.6

Re: [PHP] Photos and logos in MySQL + PHP

2002-12-26 Thread Michael J. Pawlowsky
Well the datatype would be a blob. But personally I would just have pointer to the photos on the server. In other words... you have the id of the row for that club and you can name the photo photo_$id.jpg and the logo logo_$id.jpg Here's a snippet you can take a look at for uploading the files

Re: [PHP] odd results inquiry

2002-12-26 Thread Michael J. Pawlowsky
Well the second one I can help you with.. it should be LIMIT 11,10 if you only want 10 rows You are asking for 20. For the fun of it try 1,10 on the first one. *** REPLY SEPARATOR *** On 26/12/2002 at 10:23 PM Tony Tzankoff wrote: >Here is a strange one (for me, anyway).

Re: [PHP] odd results inquiry

2002-12-26 Thread Michael J. Pawlowsky
id, pid from tree limit 0,3; SELECT id, pid from tree limit 3,3; SELECT id, pid from tree limit 6,3; *** REPLY SEPARATOR *** On 26/12/2002 at 10:32 PM Michael J. Pawlowsky wrote: >Well the second one I can help you with.. it should be LIMIT 11,10 if you >only want 1

Re: [PHP] executable

2002-12-27 Thread Michael J. Pawlowsky
Sure... with the use of the proper MIME type and if they have that MIME type mapped to that application. Think of a PDF.. it gets sent out with the header Content-type: application/pdf Your browser has a reference for that MIME type to link it to acrobat reader... so it opens up reader (or the plu

Re: [PHP] Nested Arrays

2002-12-27 Thread Michael J. Pawlowsky
Stop thinking of it as a multidimesional array. It is simply an two dimensional array of two dimensional arrays. *** REPLY SEPARATOR *** On 27/12/2002 at 11:29 AM Beauford.2002 wrote: >Great. now can you explain why this works. I'm confused at how PHP knows >this is a m

[PHP] Just need a link ;)

2002-12-27 Thread Brian J. Celenza
Hello! I'm looking for a link that contains a list/description of all the built in $PHP_ variables (the ones that show browser type, etc.). Can't seem to locate them, if the page exists. Thanks! -- --- Brian J. Celenza [EMAIL

Re: [PHP] Just need a link ;)

2002-12-27 Thread Michael J. Pawlowsky
4.0.1 PHP // echo "\n\nHTTP_SESSION_VARS\n"; // print_r ($HTTP_SESSION_VARS); echo "\n\nphp_errormsg\n"; echo "$php_errormsg\n"; echo ""; phpinfo(); ?> *** REPLY SEPARATOR *** On 27/12/2002 at

[PHP] Using strtotime on 'old' dates.

2002-12-28 Thread David J. Johnson
Is there any way to use strtotime on dates earlier than the Unix epoch? I'm using strtotime to reformat the date information for insertion into MySQL. I know that if strtotime is not accomodating, I can use a javascript to force the date to be entered in a certain format. But now I think that the

[PHP] Re: Using strtotime on 'old' dates.

2002-12-28 Thread David J. Johnson
Btw, I'm using PHP 4.2.3 on Win XP Pro. David "David J. Johnson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there any way to use strtotime on dates earlier than the Unix epoch? I'm > using strtotime to reformat

Re: [PHP] Sorry, really stupid question...

2002-12-28 Thread Michael J. Pawlowsky
Why not just put the carriage return before the names then. \nphil \nbob *** REPLY SEPARATOR *** On 28/12/2002 at 3:39 PM Phil Powell wrote: >I checked, and I am adding just "bob". Turns out to be a wacky logic >problem. > >nicknames.txt contains this: > >phil\n >bob\n > >Whe

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Michael J. Pawlowsky
The problem is that it can mean a bunch of things When I telnet to the server and request the document I get: 404 Not Found Not Found The requested URL /index-old.php was not found on this server. Apache/1.3.20 Server at www.vgates.com Port 80 I am probably getting that because the

Re: [PHP] file uploads double in size - help!

2002-12-28 Thread Michael J. Pawlowsky
This might help you... http://www.phpbuilder.com/columns/florian19991014.php3?page=4 *** REPLY SEPARATOR *** On 28/12/2002 at 2:00 PM [EMAIL PROTECTED] wrote: >I am having trouble with php file uploads where the files are arriving >corrupted and information in the file is re

Re: [PHP] Kerberos and AFS module

2002-12-28 Thread Michael J. Pawlowsky
This wont be much help to you but I use to write quite a few for ColdFusion. Basically the first one is a bit time consuming to see what it's looking for exaclty, after that it's a lot of cut and paste! Like I said... probably not very useful for you... But I say GO FOR IT! Especially if y

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Michael J. Pawlowsky
Actually I got the idea he was opening a file through http as in $fp = fsockopen ("192.168.1.1", 8080, $errno, $errstr, 5); And whatever he was trying to get at was not being allowed to be retrieved. But I may be wrong. Perhaps the server is behind a firewall and needs to get through the proxy.

Re: [PHP] how could a php script return a dns error ?

2002-12-28 Thread Michael J. Pawlowsky
Well at least now you know what your solution is... Time to move! :-) Have a good New Year, Mike >That proxy server is in our national backbone :))) So I need to change the >country, not only the ISP :))) > >Later all, >Hatem -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Form duplicate post problem

2002-12-28 Thread Michael J. Pawlowsky
You can close it with JavaScript. Something like function open_a_window_please(){ lovechild = window.open("childpage.htm"); Now we have a name that can tell the browser which window to close. We're ready to use the "window.close()" method. In the parent page add the following closing link:

Re: [PHP] Formatting text

2002-12-29 Thread Michael J. Pawlowsky
Two ways to do this... One just use echo ""; for($i=0; $i < sql->rows; i++){ echo $values['grade']; echo $values['admno']; } echo "; or create a table for($i=0; $i < sql->rows; i++){ $value['grade']$value['grade2']$value['grade3']$value['grade4'] }

Re: [PHP] Formatting text

2002-12-29 Thread Michael J. Pawlowsky
> if ($result=mysql_query($sql)) { > $numofrows=mysql_num_rows($result); > Print "Greengrass database has found the following result that matches >your search"; > print " \n"; > print " \n"; Add this line here ---> print "\n"; No longer need the BRs below

Re: [PHP] IIS Quit Working

2002-12-29 Thread Michael J. Pawlowsky
Wherever you want them... C:\windows\temp if you have that. win??? does not have a /tmp directory link *nix boxes do, so just give it a valid directory to write to where you don;t mind having a bunch of session files. > >session.save_path = /tmp > >What should it be for Windows XP Pro? > > >--

RE: [PHP] Form duplicate post problem

2002-12-29 Thread Michael J. Pawlowsky
2 ways around that.. make sure you send that before any other ouput... Even empty lines etc In other words nothing before Not ever a carriage return. or start of with ob_start() and end with ob_end_flush(); *** REPLY SEPARATOR *** On 29/12/2002 at 7:12 PM Pag wrote: >

Re: [PHP] Rookie mail() q's .. can't find answer after RTFM...

2002-12-29 Thread Michael J. Pawlowsky
You will need to edit it for your server, remove some stuff etc... But this should get you going... RC Online Canada - Feedback Form Contact RC Online Canada Create("rconline_ca"); // Lets get some info on who we have $sql->QueryRow("SELECT contact_fname, contac

Re: [PHP] Dropping Tables

2002-12-29 Thread Michael J. Pawlowsky
Basically just do a a php script the sends the sql "show tables"; Then do a strchr() to see if "a" is the first letter in the resuts and if so do a delete table. Just yo play safe do a dump of your db first. Cheers, Mike *** REPLY SEPARATOR *** On 29/12/2002 at 7:57

[PHP] Multi Language support

2002-12-30 Thread Michael J. Pawlowsky
Hello, I have a multi-lingual site and was wondering if anyone knew of a PHP function to detetct a browser's preferred laguages. I know I can parse it in the _SEREVR var [HTTP_ACCEPT_LANGUAGE] => fr, fr-ca;q=0.75, en-us;q=0.50, en;q=0.25 But I was just wondering if somewhere PHP already had a f

[PHP] Multi-lingual Language Support in PHP

2002-12-30 Thread Michael J. Pawlowsky
Keywords: Multiple, Language, PHP, $HTTP_ACCEPT_LANGUAGE I'm just shooting this one up here for the Archives. Since I could not find a built in PHP function to access the preferred languages on a user I came up with this. The original version acted as a http server in that you needed to have a

Re: [PHP] SQL Error

2002-12-30 Thread Michael J. Pawlowsky
I just tried this in MySQL and it inserted no problem INSERT INTO c_emotes VALUES (6, ':-)'); Mike *** REPLY SEPARATOR *** On 30/12/2002 at 7:14 PM Stephen wrote: I'm having some troubles. I have an install script which runs a lot of SQL statements to create tables then i

Re: [PHP] printing documents on printer

2002-12-30 Thread Michael J. Pawlowsky
Build a file on the disk and use a shell to send it with lpr. *** REPLY SEPARATOR *** On 30/12/2002 at 11:59 PM Larry Brown wrote: >Does anyone know where I might find specific information on methods of >sending documents to a printer from the web server to an attached printe

Re: [PHP] fwrite() debugging

2002-12-31 Thread Michael J. Pawlowsky
Try *** REPLY SEPARATOR *** On 31/12/2002 at 5:27 PM Alberto Brea wrote: >Could somebody please tell me what I'm doing wrong here? > >The code is: >$fd=fopen($filename, "a"); >fwrite($filename, "xyz"); >fclose($fd); ?> > >And I get the following error message: >"Warning: f

[PHP] Re: Using strtotime on 'old' dates.

2002-12-31 Thread David J. Johnson
Sorry to bug, but any ideas? "David J. Johnson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there any way to use strtotime on dates earlier than the Unix epoch? I'm > using strtotime to reformat the date information

[PHP] makeing an array

2002-12-31 Thread Philip J. Newman
--- Philip J. Newman. Head Developer. PhilipNZ.com New Zealand Ltd. http://www.philipnz.com/ [EMAIL PROTECTED] Mob: +64 (25) 6144012. Tele: +64 (9) 5769491. VitalKiwi Site: Philip J. Newman Internet Developer http://www.newman.net.nz/ [EMAIL PROTECTED] * Friends are like

Re: [PHP] makeing an array

2002-12-31 Thread Philip J. Newman
So in saything that I could do this ... $s = 10 $comment[1] = '$comment_1'; $comment[2] = '$comment_2'; $comment[3] = '$comment_2'; for($i = 0; $i <= $s; $i++) { echo $comment[$i].""; } - Original Message - From: "Timothy Hitc

Re: [PHP] Securing areas of a web site with PHP

2003-01-01 Thread Michael J. Pawlowsky
It's not a PHP thing but a browser thing. Basically you need to expire a page as soon as the browser has loaded it. This can be done using the meta key expires. As in If you are running an IIS server look at the server properties... you need to enable this in there. *** REPLY

Re: [PHP] error when conecting to mysql

2003-01-01 Thread Michael J. Pawlowsky
Sound like your ISP is at fault. MySql is not acceptind any more connection perhaps. Mike *** REPLY SEPARATOR *** On 01/01/2003 at 4:28 PM Paul Roberts wrote: >Hi > >my server started reporting an error when connecting to mysql > >Warning: Can't connect to local MySQL serve

[PHP] Bcc with mail....

2003-01-01 Thread Michael J. Pawlowsky
Has anyone successfully used BCC with mail... (on Linux with sendmail) If so are you using the header: "Bcc: My Name <[EMAIL PROTECTED]>\r\n" Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Bcc with mail....

2003-01-01 Thread Michael J. Pawlowsky
l("\"$toname\" <$tomail>", $subject, $message, $headers)) { echo "mail sent"; } *** REPLY SEPARATOR *** On 02/01/2003 at 4:17 AM Jason Wong wrote: >On Thursday 02 January 2003 03:01, Michael J. Pawlowsky wrot

Re: [PHP] Using mail() for mailist list app

2003-01-01 Thread Michael J. Pawlowsky
Personally I simply get the e-mail addresses spit out to me from the database and then I input them into a application made just for bulk mailingt. You can also easily write a quick perl or shell script to send it out from a file of names and this way you can "nice" the process so as not to bo

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
You don't need to accept cookies for sessions. That's the beauty of it. PHP automatically appends ?PHPSESSID=$sessid to URLs. If you do header("Location: abc") however you will need to add the seession ID to the URL. You cannot read a session var on the same page that you set it I found. To get

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
> >eeek, that's a whole lotta code for him to learn just to try and get >sessions working, don't you think?? > >[mega snip] > >Justin Most it is HTML output... But If I'm not mistaken... and I might be... but wasn't this a thread that started about securing web pages? So basically I gave him

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
OK let me give him something simpler to start with No Cookies needed.. Just to test... Make sure you have session.name set to PHPSESSID. Look at phpinfo() output to make sure. Lets have two pages Page 1 start (page1.php) ___

Re: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
Just so I know who started this thread, is he even still in this thread, or is this just amongst ourselves now. :-) Hey sorry, what do you expect on the 1st of January. Cheers, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

RE: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
OK so sessions are working... cool... So now you need to track down a your cookie problem. Start of by setting your browser to ask you to accept all cookies. EVEN session cookies. In IE it would be Internet Options->Privacy Tab Advanced... Prompt and override defaults... The take away the ?PH

RE: [PHP] Session Problem

2003-01-01 Thread Michael J. Pawlowsky
OK But did your browser ask you if it was ok to set a cookie? (You did do the changes in privacy) IE or Netsape (what version)? Start with a fresh browser.. meaning close all browser windows and the start up your browser again. We need to see if the problem is setting the cookie or reading it.

Re: [PHP] PHP Insert Data Form

2003-01-01 Thread Michael J. Pawlowsky
Here's what I suggest. go to http://www.vtwebwizard.com/tutorials/mysql/ This guys has a really nice tutorial along with a nice class for MySQL that makes inserting data nice and easy. Cheers, Mike *** REPLY SEPARATOR *** On 01/01/2003 at 11:35 PM Edson Waite wrote:

Re: [PHP] help with script!!

2003-01-01 Thread Michael J. Pawlowsky
Without the error message you are making it kind of tough. What's the response that you get. Also you should use long HYPERLINK >"http://host.makethewebsecure.com/~admin12/do_adduser.phps"http://host.m >akethewebsecure.com/~admin12/do_adduser.phps > > >can someone take a look at this >and see

Re: [PHP] help with script

2003-01-01 Thread Michael J. Pawlowsky
There's your answer... You do not have permission to insert into the database with that user. Contact your DBA! :-) and if that's you read the MySQL manual. Especially about the mysql.user table *** REPLY SEPARATOR *** On 01/01/2003 at 1:19 PM Karl James wrote: > >Access d

Re: [PHP] prevent session_replay

2003-01-02 Thread Michael J. Pawlowsky
It's called Session Hijacking. And that is the normal behaviour. Since you are supplying the session id it still thinks you are on the same session until it has expired. (expiry time set in php.ini) Mike *** REPLY SEPARATOR *** On 02/01/2003 at 12:48 PM scott wrote: >hi >

Re: [PHP] mail attachments

2003-01-02 Thread Michael J. Pawlowsky
Yes and no You need to add a "Content-type: multipart/mixed; boundary="Some_unique_string_here)" But then you also need to encode the documants and send them in the "message" of Mail. Look for multipart MIME types on the net to get an idea. Also if you find a nice class to encode bin files

RE: [PHP] mail attachments

2003-01-02 Thread Michael J. Pawlowsky
While on the subject of Multi-part Mime Type... I use to use it alot in the past in C cgi's (only Netscape supported at the time) to give status reports when doing long processes etc. This was back in the days when Netscaped ruled It was nice, since you could have a status message updated on

Re: [PHP] prevent session_replay

2003-01-02 Thread Michael J. Pawlowsky
The problem with that is, if you have a proxy farm you never know which IP might be used. For instance, if the user is on AOL, every request to the server will probably have a different IP. Mike *** REPLY SEPARATOR *** On 02/01/2003 at 3:25 PM Marek Kilimajer wrote: >This i

Re: [PHP] killing child process

2003-01-02 Thread Michael J. Pawlowsky
Actually to kill all of them would not be hard Try something like ps -eaf | grep httpd | awk '{print $2}' That will give you all the httpd processes...pipe that into kill Mike *** REPLY SEPARATOR *** On 02/01/2003 at 8:26 PM gamin wrote: >Hello, > > Running PHP

Re: [PHP] Index page

2003-01-02 Thread Michael J. Pawlowsky
in your http.conf file Add index.php in the list of default docs. Or if IIS in the IIS manager properties for that site. *** REPLY SEPARATOR *** On 02/01/2003 at 11:26 PM thkiat wrote: >Why by only typing http://localhost/ the index.php did not show up. I have >to type http:

Re: [PHP] killing child process

2003-01-02 Thread Michael J. Pawlowsky
/2003 at 4:51 PM Marek Kilimajer wrote: >Michael J. Pawlowsky wrote: > >>Actually to kill all of them would not be hard >> >>Try something like >> >>ps -eaf | grep httpd | awk '{print $2}' >> >> >actualy it will be named only oth

[PHP] 3 colums....

2003-01-02 Thread Michael J. Pawlowsky
n"; } } } print "\n\n"; print "\n"; print "\n\n\n\n"; print ""; print ""; print "$j"; print ""; pr

Re: [PHP] signal handler to ignore kill of parent

2003-01-02 Thread Michael J. Pawlowsky
You should get together with the the guy who's was looking for a way to kill the child processes after killing the parent. They weren't dying for him. (Which I dont understand why?) :-) *** REPLY SEPARATOR *** On 02/01/2003 at 7:05 PM Thomas Weber wrote: >Hi, > >i need some w

Re: [PHP] signal handler to ignore kill of parent

2003-01-02 Thread Michael J. Pawlowsky
Actually let me try to be a bit more helpful... nut not much though :-) Did you write the code for the fork(); Can you modify it? Read the fork, exec and clone man pages. This might help you a bit understand the behaviour. If so just call exec from the forked process... this will create a new

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Michael J. Pawlowsky
You will need to have everythng on the same page. Your program ends once the page does. Here are some examples straight from the manual. \n"; } else { fputs ($fp, "GET / HTTP/1.0\r\nHost: www.example.com\r\n\r\n"); while (!feof($fp)) { echo fgets ($fp,128); } fclose ($f

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Michael J. Pawlowsky
Cool... Maybe I will learn something.. :-) Well in that case (I already deleted you last mail), where are you keeping the file pointer? You will need to register the var somewhere.. In a session perhaps? Mike Send me your code... I will play with it... *** REPLY SEPARATOR **

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Michael J. Pawlowsky
Well I didnt try to write or read to it... But this works But all that's telling me is that the var is there.. not if it's still open.. will leave that to you to find out... Let us know --file s1.php --- Next"; ?> file s2

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Michael J. Pawlowsky
Two comments from the manual that are interesting: php dot net at domainofdarkness dot com 29-Jan-2001 04:26 OK, WRT to the p* functions opening a new connection when one already exists. It is my understanting that (under Apache anyways) this is on a per-process basis. If you do a 'ps auxw|gr

RE: [PHP] Some questions regarding pfsocketopen()

2003-01-02 Thread Michael J. Pawlowsky
Well if you do find the solution please let us know. I would also like to add it to my PHP lib archive. I suppose it would be there for stuff like command line PHP. Mike *** REPLY SEPARATOR *** On 02/01/2003 at 5:15 PM Gareth Hastings wrote: >Yes I saw those but what it mad

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread Michael J. Pawlowsky
Am I happy I'm not your hosting provider! :-) They will probably flip if they see you send out 7000 e-mails. Anyways crontab -e from a shell allows you to create a cronjob. from a shell just "man crontab" Cheers, Mike *** REPLY SEPARATOR *** On 02/01/2003 at 4:39 PM

RE: [PHP] mktime() and the format of the day number entry

2003-01-02 Thread Michael J. Pawlowsky
Well you are right.. I also get the same results... I guess you found a bug... did you look in the bug reports to see if it already exists? Results Thu, 2 Jan 2003 19:15:35 -0500 0,0,0,10,0,1998 => 907128000 0,0,0,10,00,1998 =

RE: [PHP] mktime() and the format of the day number entry

2003-01-02 Thread Michael J. Pawlowsky
of the next month, not the -1 day. " I wonder if 0 has some significance in the month also? Ok back to work :-) *** REPLY SEPARATOR *** On 02/01/2003 at 7:17 PM Michael J. Pawlowsky wrote: >Well you are right.. I also get the same results... >I

Re: [PHP] parse error

2003-01-02 Thread Michael J. Pawlowsky
You need to esape your quotes in the HTML as in echo(""); should be echo(""); Mike *** REPLY SEPARATOR *** On 02/01/2003 at 11:27 PM Ezequiel Sapoznik wrote: >Hi! >I am receiving a parse error in the following code. The file is located at >http://www.historiadelpais.

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Michael J. Pawlowsky
I'm not sure I totally understand... but... to pause... sleep(10); i.e. 10 second pause Everything stops... not just output you can buffer everything and only output it when you want look at ob_start But a warning... your server or the clients might change the expexted behaviour. Mik

[PHP] BreadCrumb Class

2003-01-02 Thread Michael J. Pawlowsky
I was wondering if anyone had a good BreadCrumb class. If not I will write my own, but thought surely there must be many out there. But quick searches only brought up "Poof" which is more than I want. Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] email/time question

2003-01-02 Thread Michael J. Pawlowsky
Well a few ways you can do it... how precise does it need to be? You can have PHP write the mails to files with the time to be sent in then or in the filename; like somerandomstring.200301021545 Run a script from cron that would look at the files, parse the time and if it's time to send them ju

Re: [PHP] way to insert timer / pause?

2003-01-02 Thread Michael J. Pawlowsky
Thank god the tag in HTML was removed. Don't know how long you've been working on sites, but I started at the same time the first NSCA Mosaic browser came out. About 10 years now. They had back then, and everyone starting using it just about everywhere! Imagine trying to read complete pages

Re: [PHP] Mass-mailing method

2003-01-02 Thread Michael J. Pawlowsky
Take a look at the sendmail.log for some clues... But I had something weird were it worked fine for me at home Linux 8 PHP 4.2.2 and when I sent it up to the prod server I had to change the ."\r\n"; to ."\n"; Which technically is wrong. Go figure! But take a look at the sendmail log to begin wi

RE: [PHP] Mass-mailing method

2003-01-02 Thread Michael J. Pawlowsky
I have the same problem with one of my clients. I use this... Just keep it well protected... you can cat, ls, find etc. no ps for some reason Might also depend on server security settings. But worth a shot. -- STart Here

Re: [PHP] include/require vs performance

2003-01-03 Thread Michael J. Pawlowsky
These files are parsed by the interpreter... They are not sent to the client, so I you are thinking bandwidth I dont see how it would affect it. Unless they all output a bunch of data. Of course there will be some overhead for PHP to interpret all that code. Mike *** REPLY SEPARATOR

Re: [PHP] PHP-Performance

2003-01-03 Thread Michael J. Pawlowsky
Get in touch with Zend. I bet they have benchmarks with their optimizer engine. http://www.zend.com/ Cheers, Mike *** REPLY SEPARATOR *** On 03/01/2003 at 3:56 PM Fatih Üstündað wrote: >Do you know any resource about php performance? > >I wonder that can I use php+apache+ora

Re: [PHP] Parsing a string

2003-01-03 Thread Michael J. Pawlowsky
Just use explode() and then dont use what you dont want. Mike *** REPLY SEPARATOR *** On 03/01/2003 at 9:49 AM Greg wrote: >Hi- >I'd like to parse the string returned by popen("uptime", "r");. The string >that is returned is: > >9:47am up 37 days, 16:24, 1 user, load average:

[PHP] Loading Module not in php.ini

2003-01-03 Thread Michael J. Pawlowsky
I doubt that I can do this... but as someone once told me, "There's no such thing as a stupid question". I guess they were never on any mailing lists! :-) So here it goes Is there anyway to load a module without having access to php.ini kind of like a ini_set("extension=mymodule.co"); th

[PHP] File Modification Date/Time

2003-01-03 Thread Christopher J. Crane
I am trying to parse through a directory and get the modification dates of the file. \n"; } closedir($handle); } ?> All the files are coming back with a date of December 31 1969 19:00:00. What am I doing wrong? The next step is I want to check if the file is older than 30 minutes and if

Re: [PHP] File Modification Date/Time

2003-01-03 Thread Christopher J. Crane
[EMAIL PROTECTED]... > you must prepend $DirToCheck to $file: > > filemtime($DirToCheck . $file) > > > > Christopher J. Crane wrote: > > >I am trying to parse through a directory and get the modification dates of > >the file. > > > > >$DirToCheck = &quo

[PHP] Bit manipulation

2003-01-03 Thread Michael J. Pawlowsky
I can't remember who wanted the bit manipulation stuff... But I was looking for something in my bookmarks when I saw this simple little class. I use bits to test for user permissions for specific function. as in if ((int)$user.permissions & (int)$permbit) {} I dont use that class but thought i

Re: [PHP] Re: threads (was "Re: [PHP] BreadCrumb Class")

2003-01-03 Thread Michael J. Pawlowsky
Unfortunately Calypso threads the messages by date etc. Not Mail IDs. It has a "Show references" command that creates threads but I don't keep these mails on my system for more than a day unless there's some really good info in it. So it had no effect for me. It's a great mailer if you have many

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Michael J. Pawlowsky
I have something that does it but only with gif since I have the old version of GDLib. But everthing is the same except for the output and the opening from a specific file.. It's not exactly what you are looking for but it will get you started I use a db clas for my db calls so dont try and us

Re: [PHP] ImageCreateFromPNG

2003-01-03 Thread Michael J. Pawlowsky
Oops... thought you wanted them to upload a file... So here something else... just modify it to your needs It' the code to the URL I sent you... *** REPLY SEPARATOR *** On 03/01/2003 at 11:58 AM Michael Weiner wrote: >Does someone have a script of php func

Re: [PHP] PHP intereferes with my Javascript

2003-01-03 Thread Michael J. Pawlowsky
It's not because of the splitting up... Because the browser does not even know about that. Save both files to disk and do a "diff" on them. I bet there will be a few lines... Mike *** REPLY SEPARATOR *** On 03/01/2003 at 5:21 PM Adam Wilson wrote: >I posted just before,

Re: [PHP] File Modification Date/Time

2003-01-03 Thread Christopher J. Crane
} closedir($handle); } ?> "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > you must prepend $DirToCheck to $file: > > filemtime($DirToCheck . $file) > > > > Christopher J. Crane wrote: >

RE: [PHP] Session Question

2003-01-03 Thread Michael J. Pawlowsky
I use both... and the way I see PHP handling it is like this... First call in it will add the SESSID to the hrefs. Next call (page load) if it finds the cookie it will not append SESSID to URL. However if it doesn't it will. There are a few instance were I need to get the SESSION ID and append

Re: [PHP] Excel to MySQL

2003-01-03 Thread Michael J. Pawlowsky
I think BiffWriter might do it... By why not simply output a comma delimited files from excel and import it in with a small php script. Mike *** REPLY SEPARATOR *** On 03/01/2003 at 2:20 PM Joe LoMoglio wrote: >Does anyone know of a FREE utility that will export data from a

Re: [PHP] PHP post size question

2003-01-03 Thread Michael J. Pawlowsky
Did you also set the file size in the HTML input tag? Also take a look at http://www.phpbuilder.com/columns/florian19991014.php3?page=4 Mike *** REPLY SEPARATOR *** On 03/01/2003 at 4:15 PM David Jeffress wrote: >Hi, > >I'm using PHP to implement a contract database for a

Re: [PHP] Create Online Test Program

2003-01-03 Thread Michael J. Pawlowsky
I've done a few... It all depends on how many question and how many answers. How often will they change. How many will you have. Mike *** REPLY SEPARATOR *** On 03/01/2003 at 2:47 PM Devin Atencio wrote: >Dear PHP Users, > >I am in the process of trying to create an Onlin

Re: [PHP] Help Needed

2003-01-03 Thread Michael J. Pawlowsky
Look at UPDATE at http://www.mysql.com/ *** REPLY SEPARATOR *** On 03/01/2003 at 6:37 PM Pushpinder Singh Garcha wrote: >hello all > I am using php and mysql in my web application. I am making use of >forms to accept data from the user and add it to the mysql database. I

Re: [PHP] Create Online Test Program

2003-01-03 Thread Michael J. Pawlowsky
ly having 4-5 answers. Do you have some code >I could look at? I have been trying to think about how to store the >customers response, then score that against the correct answers etc >in the database. > >Any help you could give me would be greatly appreciated. > >Devin A

Re: [PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Michael J. Pawlowsky
That's what I was thinking... or perhaps see it there's someway in Informix to have a trigger call a sql/c app to update your MySQL database. *** REPLY SEPARATOR *** On 03/01/2003 at 3:49 PM Philip Hallstrom wrote: >Any chance you can do a somewhat frequent export from inform

Re: [PHP] Re: query join 2 databases? or match up arrays?

2003-01-03 Thread Michael J. Pawlowsky
It's a field type called TIMESTAMP... just name it whatever you want and it will update anytime the row is altered. The just select that row item to get the timestamp. Mike *** REPLY SEPARATOR *** On 03/01/2003 at 5:52 PM Jeff Bluemel wrote: >actually - I believe that m

Re: [PHP] locally enabling register_globals?

2003-01-03 Thread Michael J. Pawlowsky
Why not just fix your code? *** REPLY SEPARATOR *** On 03/01/2003 at 2:50 PM Michael Greenspon wrote: >Our hosting provider installed PHP 4.2 and thus disabled >register_globals by default which our scripts depend on. We don't have >access to php.ini to change this. This is

Re: [PHP] Avoiding Repeat Posts

2003-01-04 Thread Michael J. Pawlowsky
Why not create a unique constraint with the userid, day (without time) and post content. Is it going in a DB? Mike *** REPLY SEPARATOR *** On 04/01/2003 at 3:26 AM OrangeHairedBoy wrote: >Hi all, > >It seems that there might be some basic solution on this that I never >receiv

Re: [PHP] PHP and MySQL bug

2003-01-04 Thread Michael J. Pawlowsky
I cant give you a solution, and I''m running on Linux. But I have pages were I do 6-7 queries on one page always using the same connection. Never had a problem with that. Mike *** REPLY SEPARATOR *** >I'm using PHP and MySQL to make my programs. But I think I discovered a bug >

Re: [PHP] REPOST: installation problems (php 4.2.3/mcrypt/curl)

2003-01-04 Thread Michael J. Pawlowsky
Might or might not be helpful.. but I had the same thing happend when I added --with-jpeg-dir=/usr/lib Everything looked fine... but I could not call imagejpeg. (PHP 4.3 - RH8 - apache2) Once I did a make clean, ./configure -with- ... , make, make test (to see if it had jpg), make install It

<    1   2   3   4   5   6   7   8   9   10   >