Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Roger Spears
John Nichel wrote: I haven't fully researched it yet, but our domains were just hacked, and from the looks of it, the attack came in thru phpBB. This morning, around 9:00am, I upgraded our webserver to php v4.3.10 from v4.3.9 due to potential security risks, and at 11:30 it looks as if the

Re: [PHP] PHP Exploit via phpBB?

2004-12-22 Thread Roger Spears
John Nichel wrote: I haven't fully researched it yet, but our domains were just hacked, and from the looks of it, the attack came in thru phpBB. This morning, around 9:00am, I upgraded our webserver to php v4.3.10 from v4.3.9 due to potential security risks, and at 11:30 it looks as if the

Re: [PHP] Convert Characters

2004-03-29 Thread Roger Spears
Reuben Sant wrote: Hi, Is there a way to convert any character to it's HTML #xxx; equivalent in PHP? For example #65; is the letter A where the number 65 represents it's ASCII code. This may help. It's a function from Tom Rogers, or was it Tim Rogers, I can't remember. function

Re: [PHP] Re: Local sysadmin DFW needed

2004-03-26 Thread Roger Spears
David Robley wrote: [EMAIL PROTECTED] (Frank Tudor) wrote in news:[EMAIL PROTECTED]: Hi folks, Sorry for the inturruption. I'm looking for a part time sysadmin in the DFW area. Just out of curiosity, where the hell is DFW? I gather it's not near Ridgehaven. I'm going to guess DFW is just

Re: [PHP] question

2004-03-25 Thread Roger Spears
Adam Voigt wrote: Actually this is not true. For example: $test = 22; if(is_string($test)) echo IS A STRING; Will print IS A STRING. Try $test = 22; The denotes a string and without quotes it denotes a value HTH, Roger -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] How to do this in PHP?

2004-03-18 Thread Roger Spears
Mike Mapsnac wrote: I have a table that has 5 cells and each cell has a link. So when I click on a cell , the visited cell will get background color. In other words, when I click on the cell the color of the cell changes. I often see post here that are not so PHP related. This is due to the

[PHP] Turn on E_ALL Error Reporting

2004-03-18 Thread Roger Spears
Hello, I changed the title of this email so it doesn't thread hijack... I use a simple function like this to turn on and show warnings and errors. It's my understanding though, if the error is catastrophic, it will not be displayed on the screen no matter what you do. Not sure about that

Re: [PHP] Turn on E_ALL Error Reporting

2004-03-18 Thread Roger Spears
Also, when I use that code in my scripts, if there are any variables (arrays too) that are in existence with no value: $someVariable = ; it will throw a warning on the screen. First time I saw that I went into panic mode thinking that I had a huge amount of errors/warnings... You are also

Re: [PHP] Get form name after submission

2004-03-18 Thread Roger Spears
You assign it to a hidden field in your form input type=hidden name=formName value=actualFormName in your PHP: $formName = $_POST['formName']; of course, this would have to be accomplished BEFORE the form is submitted. Not sure if that is what you are looking for or not... HTH, Roger -- PHP

[PHP] load a URL and trap output

2004-03-12 Thread Roger Spears
Hello, I have this application which is accessed via a web portal. The first thing my application must do is make sure the visitor is logged in via the portal. The only way to do this is by making a request to a specific URL. This URL (which includes the log in cookie id) will return XML

[PHP] load a URL and trap output

2004-03-12 Thread Roger Spears
Tom Meinlschmidt wrote: simple use fopen() or file() as $fp = fopen(http://somedomain/some.url?blablah,r;); and read via fread() Perhaps I was mistaken, I thought: $fp = fopen(http://somedomain/some.url?blablah,r;); fread(); Would just return the actual HTML code of the page and NOT the

Re: [PHP] load a URL and trap output

2004-03-12 Thread Roger Spears
Tom Meinlschmidt wrote: simple use fopen() or file() as $fp = fopen(http://somedomain/some.url?blablah,r;); and read via fread() Then I replied with: Perhaps I was mistaken, I thought: $fp = fopen(http://somedomain/some.url?blablah,r;); fread(); Would just return the actual HTML code of

[PHP] PHP, Cache Control and Mac IE

2004-02-18 Thread Roger Spears
Hello List, I am using the following in a PHP script: header(Expires: Mon, 26 Jul 1997 05:00:00 GMT); header(Last-Modified: . gmdate(D, d M Y H:i:s) . GMT); header(Cache-Control: no-store, no-cache, must-revalidate); header(Cache-Control: post-check=0, pre-check=0, false); header(Pragma:

Re: [PHP] Why we love Microsoft (0t) - JELLO

2004-01-23 Thread Roger Spears
Another big one is Jello It's a brand if I'm not mistakenthe product is gelatin Jello brand gelatin but all forms of pudding and gelatin are sometimes referred to as Jello... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] SOLVED = is ' or different in MS-Word then ascII?

2004-01-16 Thread Roger Spears
Here is a real code solution instead of my original posted client solution My original problem involved text submitted via the good old fashion textarea in a web form. If a visitor created their text in MS-Word and then cut and paste their text over to the web form and submitted, any

[PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Roger Spears
Hello, This question may border on OT... I have a web form where visitors must enter large amounts of text at one time (text area). Once submitted, the large amount of text is stored as a CLOB in an Oracle database. Some of my visitors create their text in Ms-Word and then cut and paste it

Re: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Roger Spears
)! R Roger Spears wrote: Hello, This question may border on OT... I have a web form where visitors must enter large amounts of text at one time (text area). Once submitted, the large amount of text is stored as a CLOB in an Oracle database. Some of my visitors create their text in Ms-Word

Re: [PHP] is ' or different in MS-Word then ascII?

2004-01-14 Thread Roger Spears
Marek Kilimajer wrote: I don't know what the character is but if you paste it into the textarea, ord() will tell you. When I run ord(), it returns the value of 19. I'm guessing that is a hex value. And when I look that up on the ascII table, it says: 19 DC3 (Device Control 3) For some

[PHP] SOLVED= is ' or different in MS-Word then ascII?

2004-01-14 Thread Roger Spears
Hello Everybody, I have found a solution and/or the root of the problem. I googled on the topic of MS-Word + smart quotes. That lead me to this site: http://www.rpgtimes.net/rpgtimes/guide.php?guide=1 It seems that the default for Word is to have smart quotes to on. When you have smart quotes

Re: [PHP] Not working?

2004-01-08 Thread Roger Spears
Jas wrote: I think I must be missing something but this command isn't renaming the file specified... Pointers, tips appreciated! system(rename('/path/to/new.sh', '/path/to/old.$today')); /to directory has permissions set to current user and is also owned by the current user (test_user)...

[PHP] Rename generates level 2 warning but works

2003-12-31 Thread Roger Spears
Hello, I have this magical script which uses rename. A visitor to the site uploads a file and I want to rename it to a timestamp. Oddly enough, the rename() function actually works, it renames the file AND then generates a level 2 warning: Error code: 2 Error message: rename() failed (No

Re: [PHP] Rename generates level 2 warning but works

2003-12-31 Thread Roger Spears
Lowell Allen wrote: Try using $HTTP_POST_FILES['uploadedFile']['name'] instead. I wasted a bunch of time yesterday with an upload script that did not recognize files when using $_FILES, but worked fine with $HTTP_POST_FILES -- PHP 4.3.4 on Linux. Thank you for the suggestion. Unfortunately, it

[PHP] SOLVED: [PHP] Rename generates level 2 warning but works

2003-12-31 Thread Roger Spears
Lowell Allen wrote So, I think you need to pass rename parameters that are file locations. HTH -- Lowell Allen Thank you!!! I was not in tune to what was happening. You are correct. You must pass file locations and not just file namesonce I passed the locations, the warning went

[PHP] preserving blank space padding when using fgetcsv

2003-12-03 Thread Roger Spears
Hello, I've been researching this for most of the day and am unable to find an answer. I'm using fgetcsv to read a comma delimited file (Microsoft Excel CSV). I'm trying to create a PHP application which will read a csv file line by line, remove the commas and preserve the padding that is in

[PHP] preserving blank space padding when using fgetcsv

2003-12-03 Thread Roger Spears
The first time I sent this message to the list, this is what bounced back... Hi. This is the qmail-send program at pb1.pair.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. [EMAIL PROTECTED]: This

Re: [PHP] [Stats] PHP Net List: October 2003

2003-11-05 Thread Roger Spears
That is funny stuff..I often wonder why no one ever cracks jokes or makes a connection... John W. Holmes wrote: John Nichel wrote: Hey, I beat John Holmes You mean you're bigger than 14 inc... err, nevermind, you're talking about something else... -- PHP General Mailing List

[PHP] Maeler Deamon Problem with PHP-DB list

2003-10-17 Thread Roger Spears
WTF does all this mean? Hi. This is the qmail-send program at pb1.pair.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. [EMAIL PROTECTED]: This message is looping: it already has my Delivered-To

[PHP] PDFlib Page Dimensions and Word Wrap

2003-10-08 Thread Roger Spears
Hello, I have read the http://us4.php.net/manual/en/ref.pdf.php and am unable to find a solution for what I'm trying to do. I've also tried googling for what I'm trying to do. No luck there either. I've also downloaded the PDFlib docs but no luck there. When using PDFlib you specify page

Re: [PHP] PDFlib Page Dimensions and Word Wrap

2003-10-08 Thread Roger Spears
Tried that. Unless I overlooked something, the PDFlib.com docs were of no help. Thanks, Roger Curt Zirzow wrote: * Thus wrote Roger Spears ([EMAIL PROTECTED]): Hello, I have read the http://us4.php.net/manual/en/ref.pdf.php and am unable to find a solution for what I'm trying to do. I've

[PHP] PHP Contest/Marathon at geek.org

2003-10-08 Thread Roger Spears
Sorry if this is a double post or if it's already been talked about. I just found out a few moments ago that http://www.dotgeek.org/ is having a php programming contest/marathon in November. Here's the link: http://www.dotgeek.org/?q=node/view/9 Thanks, Roger -- PHP General Mailing List

[PHP] Printer Functions

2003-10-03 Thread Roger Spears
Hello, I was wondering if anyone has had any level of success with printer functions. I'm trying to get the following code to work: ?php $handle = printer_open(); printer_start_doc($handle, Hello World); printer_start_page($handle); printer_end_page($handle); printer_end_doc($handle);

[PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread Roger Spears
Hello, I've googled to try to find an answer to this. I've also checked the php.net site. Perhaps I'm not using the correct search parameters. The only suggestion I've found is the following code: ?php header('Cache-Control: no-cache'); header('Pragma: no-cache'); ? But this doesn't seem to

Re: [PHP] Logged Out of Seesion, Then use back button

2003-09-23 Thread Roger Spears
_ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus -- Roger Spears Technology Project Coordinator College of Arts and Sciences Bowling Green State University 205 Administration Bldg. Bowling Green, OH 43403 419-372-2015 419

[PHP] email receipts

2003-09-18 Thread Roger Spears
and please, could we turn off the email receipt requested before sending messages to this list??? I find them most annoying and time consuming for a list this large. Thanks, R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 'while' not picking up on first DB record

2003-09-17 Thread Roger Spears
Hello, Can anyone from the lists please tell me why this bit of code is not picking up on the first record in the database? If the 'id' I'm looking for is '1' it doesn't populate the _SESSION variables. Any 'id' greater then '1' will populate the _SESSION variables. $q = SELECT * FROM

[PHP] SOLVED= 'while' not picking up on first DB record

2003-09-17 Thread Roger Spears
I'm sorry for the double post. Other then letting both lists know this was solved, it won't happen again. Sorry. Thank you for the solution! I new it was simple. I've been staring at it too long. Fresh eyes always helps! Thanks again, Roger You are making the fetch twice, and not using

[PHP] Test Please Delete

2003-08-14 Thread Roger Spears
test, please delete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php