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

[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] Unexpected $end error?

2003-01-05 Thread Michael J. Pawlowsky
look at your loop. you have mis matched 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 >Group\Apache2\htdocs\pr

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

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

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: and it works fine Mike *

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

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

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 t

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. $numtoguess) $message="Your guess was too high."; else $message="That is the correct number."; if(isset($_POST['guess'])) $guess=(int)$_POST['guess']; else

Re: [PHP] counter problem

2003-01-04 Thread Michael J. Pawlowsky
Use this... enjoy $numtoguess) $message="Your guess was too high."; else $message="That is the correct number."; if(isset($_POST['guess'])) $guess=(int)$_POST['guess']; else $guess=0; print_r($_POST); ?> Guess number: Type y

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: *** REPLY SEPARATOR *** On 04/01/2003 at 4:43 PM Michael J. Pawlowsky wrote: >try > >if(stristr($_SERVER['REREQUEST_URI'], "register.php"){ > echo "at register"

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

[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: http://www.ph

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

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 1

Re: [PHP] No Global Code Fixing

2003-01-04 Thread Michael J. Pawlowsky
- 1 Array ( [0] => 2 [1] => 3 ) 3 This is the key And that actually worked... I can live without the unset()'s. Just need to add the same for POST and do an include with it. Anyone have a better idea? *** REPLY SEPARATOR *** On 04/01/2003 at 1:22 PM Mic

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

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

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

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

[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

[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

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:

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

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

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

[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 () 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 code wor

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

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

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

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

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

[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

[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

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

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

  1   2   >