[PHP] Re: [PEAR] Re: PDFlib-Lite-6.0.1

2005-01-04 Thread Michael J. Pawlowsky
`phpize' failed Any ideas? Do you have php-devel installed? If not install it and try again. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Case Matching

2003-01-06 Thread Michael J. Pawlowsky
What field type did you make the usernames? TEXT types are case incensitives use VARCHAR *** REPLY SEPARATOR *** On 06/01/2003 at 2:09 PM [EMAIL PROTECTED] wrote: Not really sure if this would be a PHP or a MySQL issue. I'm using a database to store username for

[PHP] Good Linux Admin Mail List

2003-01-05 Thread Michael J. Pawlowsky
Perhaps a weird place to ask.. but, anyone have a really good (advanced without to many newbie questions) Linux System Administrators Mail List? Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unexpected $end error?

2003-01-05 Thread Michael J. Pawlowsky
look at your loop. you have mis matched ?php and a ? which starts one *** REPLY SEPARATOR *** On 05/01/2003 at 5:56 PM Vincent Bouret wrote: Can someone tell me why I keep getting that error: Parse error: parse error, unexpected $end in D:\Program Files\Apache

[PHP] Web Based PHP CVS

2003-01-05 Thread Michael J. Pawlowsky
Does anyone know of any decent PHP/Web front ends to CVS? Thanks Mike P.S. Still looking for a good Linux SysAdmin Mail list. I don't understand Romanian but thanks for the answer! :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 received

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

Re: [PHP] Re: PHP and MySQL bug

2003-01-04 Thread Michael J. Pawlowsky
Personally I say get yourself a good simple dbconnect class and make life easy. Also if you ever change users, database name etc, you onlu have one place to replace it in your code. I wrote mine based on http://www.vtwebwizard.com/tutorials/mysql/ Take a look at it. Nice and simple. Mike

[PHP] No Global Code Fixing

2003-01-04 Thread Michael J. Pawlowsky
Well I've been fixing up all my code (and other peoples which is worst) getting ready to do an upgrade to 4.3. and turning off globals and warnings on. I very often move parameters that were once POSTed as a GETs. For instance... some one does a search but is not logged in, they can see the

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Michael J. Pawlowsky
PM Michael J. Pawlowsky wrote: So just wondering if anyone had something really elegant to replace it. Cheers, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Michael J. Pawlowsky
Hey that's great... I didn't know about $_REQUEST I suppose the order of overlapping is set in php.ini I think I saw that somewhere. Thanks As for tunring it back on... in .htaccess I like the idea of having cleaner code *** REPLY SEPARATOR *** On 04/01/2003 at

Re: [PHP] Re: PHP and MySQL bug

2003-01-04 Thread Michael J. Pawlowsky
Personally I think the problem lies somewhere between the chair and the keyboard (Sorry, couldn't resist) :-) *** REPLY SEPARATOR *** On 04/01/2003 at 4:58 PM Stefan Hinz, iConnect (Berlin) wrote: It doesn't work because of the /* Some code including ... */ part ;-)

[PHP] You gotta love it...

2003-01-04 Thread Michael J. Pawlowsky
When doing a function seach at www.php.net I just got: Parse error: parse error in /local/Web/sites/phpweb/search.php on line 233 Twice in a row... Maybe they will be posting us a question soon!! :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] I can't code today to save my life! :(

2003-01-04 Thread Michael J. Pawlowsky
try if(stristr($_SERVER['REREQUEST_URI'], register.php){ echo at register; } else { echo Not; } Not tested but should work.. also case insensitive now... *** REPLY SEPARATOR *** On 04/01/2003 at 4:21 PM Phil Powell wrote: I have $REQUEST_URI that will take

Re: [PHP] I can't code today to save my life! :(

2003-01-04 Thread Michael J. Pawlowsky
I must be doibg drugs with all those typos... Typos removed: ?php if(stristr($_SERVER['REQUEST_URI'], register.php)){ echo at register; } else { echo Not; } ? *** REPLY SEPARATOR *** On 04/01/2003 at 4:43 PM Michael J. Pawlowsky wrote: try if(stristr

Re: [PHP] counter problem

2003-01-04 Thread Michael J. Pawlowsky
Use this... enjoy ?php $numtoguess=42; if (isset($_POST['num_tries'])) $num_tries = $_POST['num_tries'] + 1; $message=; if(!isset($_POST['guess'])) $message=Welcome to the guessing machine; elseif ($_POST['guess'] $numtoguess) $message=Your guess was too low.;

Re: [PHP] counter problem

2003-01-04 Thread Michael J. Pawlowsky
This also works with the ternary operator... I don't think it likes the ++ because it doesn't know the type yet. ?php $numtoguess=42; $num_tries = isset($_POST['num_tries'])?$_POST['num_tries']+1:0; $message=; if(!isset($_POST['guess'])) $message=Welcome to the guessing machine;

Re: [PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Michael J. Pawlowsky
I'm not sure I totally understand... But why not just call it like a web page using curl? *** REPLY SEPARATOR *** On 04/01/2003 at 6:43 PM Phil Powell wrote: I don't know how to post this one so I'm sorry for such bizarre cross-posting, but honestly I don't know where to

Re: [PHP] counter problem

2003-01-04 Thread Michael J. Pawlowsky
I won't keep it up long... but go here... you will see it works... http://rc.mikeathome.net:8080/test/index.php *** REPLY SEPARATOR *** On 04/01/2003 at 7:17 PM Anthony Ritter wrote: Michael J. Pawlowsky wrote in message: This also works with the ternary operator

Re: [PHP] web visitor viewing a script?

2003-01-04 Thread Michael J. Pawlowsky
or rename the file to .phps for PHP source. Many servers recognize this mime type as source and send you the file. But if you are thinking about security... the script is compiled and executed on the server. What you see are the results of the application. Get it? This is good and bad...

Re: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Michael J. Pawlowsky
I just installed 4.3 today... configured as ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mcrypt --with-zlib - -with-gd --enable-exif --with-jpeg-dir=/usr/lib --with-png --with-ttf --with-fre etype --enable-gd-native-ttf I run this code: ?php header(Content-type:

Re: [PHP] Second (Bizarre) Question regarding PHP and ASP

2003-01-04 Thread Michael J. Pawlowsky
http://www.php.net/manual/en/ref.curl.php have the page send back whatever info you need. *** REPLY SEPARATOR *** On 04/01/2003 at 8:33 PM Phil Powell wrote: CURL? I only understand CURL as a Vignette command, sorry, you lost me. Phil Michael J. Pawlowsky [EMAIL

RE: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Michael J. Pawlowsky
when you do a phpinfo() what are the compiled with options? *** REPLY SEPARATOR *** On 04/01/2003 at 6:24 PM Adam Plocher wrote: This encoded message has been converted to an attachment. Michael, thanks for the response.. Only prob is I'm using the win32 precompiled

RE: [PHP] Read-only gif support in 4.3.0

2003-01-04 Thread Michael J. Pawlowsky
If I look at my phpinfo I get: gd GD Support enabled GD Version bundled (2.0 compatible) FreeType Support enabled FreeType Linkage with TTF library GIF Read Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled Notice the GIF Read Support Why

RE: [PHP] Function to catch all mySQL errors?

2003-01-04 Thread Michael J. Pawlowsky
Also if you dont want ot to break you need to add the @ operator in front Mike *** REPLY SEPARATOR *** On 04/01/2003 at 6:47 PM Adam Plocher wrote: This encoded message has been converted to an attachment. How about something like this.. function runquery($query) {

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

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: 0.09,

[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); that

[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

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

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... ?php header(Content-type: image/gif); // Define some constants here (I know they are vars) $imagewidth = 400; $imageheight = 400; $img =

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, i

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

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

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 Online

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
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 Atencio. On Fri, 2003-01-03 at 15:14, Michael J. Pawlowsky wrote: I've done a few

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

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

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

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

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

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

Re: [PHP] killing child process

2003-01-02 Thread Michael J. Pawlowsky
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 other_script.php (it doesn't go through httpd). You can execute the scripts with a dummy

[PHP] 3 colums....

2003-01-02 Thread Michael J. Pawlowsky
I need some sleep right now, my brain is in low gear Here's what I'm trying to do. Basically have 3 HTML columns (td/td) printed to a web page but have them in alphabetical order from top to bottom and then continuing onto the next column. Like you would see in an index of a book. This

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 way

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. ?php $fp = fsockopen (www.example.com, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br\n; } else { fputs ($fp, GET / HTTP/1.0\r\nHost:

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 --- ?php session_start(); $sid

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

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

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
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 guess you found a bug... did you

Re: [PHP] parse error

2003-01-02 Thread Michael J. Pawlowsky
You need to esape your quotes in the HTML as in echo(table border=0 width=125 height=27); should be echo(table border=\0\ width=\125\ height=\27\); Mike *** REPLY SEPARATOR *** On 02/01/2003 at 11:27 PM Ezequiel Sapoznik wrote: Hi! I am receiving a parse error in

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.

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

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

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

2003-01-02 Thread Michael J. Pawlowsky
Thank god the blink 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 blink/blink back then, and everyone starting using it just about everywhere! Imagine trying to

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 with.

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 HTML

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. meta http-equiv=Expires content=expiration date As in META HTTP-EQUIV=Expires CONTENT=Mon, 01 Jan 1996 01:01:01 GMT If you are

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 server

[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
-MSMail-Priority: Medium\n; if (mail(\$toname\ $tomail, $subject, $message, $headers)) { echo pmail sent/p; } *** REPLY SEPARATOR *** On 02/01/2003 at 4:17 AM Jason Wong wrote: On Thursday 02 January 2003 03:01, Michael J. Pawlowsky wrote

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 bog

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 my

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:

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

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

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 ?php and not just ? Single quote your arrays as in $_POST['f_name'] and not $_POST[f_name] This will help if you ever move to a serve that's not so lax. *** REPLY

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

Re: [PHP] fwrite() debugging

2002-12-31 Thread Michael J. Pawlowsky
Try ?php $filename= tables/contacts.txt; $fd=fopen($filename, a); if(!($fd)){ die(Unable to open file); } fwrite($fd, xyz); fclose($fd); ? *** REPLY SEPARATOR *** On 31/12/2002 at 5:27 PM Alberto Brea wrote: Could somebody please tell me what I'm doing wrong

[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

[PHP] Multi-lingual Language Support in PHP

2002-12-30 Thread Michael J. Pawlowsky
by Michael J. Pawlowsky on 2002/12/30 | // | [EMAIL PROTECTED]| // +--+ // | Copyright (c) 2000-2001 The phpHeaven-team

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

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

Re: [PHP] Formatting text

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

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 br\n; print br\n; Add this line here --- print pre\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 ?php and nothing after ? Not ever a carriage return. or start of with ob_start() and end with ob_end_flush(); *** REPLY SEPARATOR *** On 29/12/2002

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... HTML HEAD TITLERC Online Canada - Feedback Form/TITLE link href=../style.html rel=stylesheet type=text/css /HEAD body center H1Contact RC Online Canada/H1 /center p center img

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 PM

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 When bob

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: !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN HTMLHEAD TITLE404 Not Found/TITLE /HEADBODY H1Not Found/H1 The requested URL /index-old.php was not found on this server.P HR

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

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 unsubscribe,

  1   2   >