php-general Digest 23 Feb 2005 10:47:44 -0000 Issue 3302

2005-02-23 Thread php-general-digest-help
php-general Digest 23 Feb 2005 10:47:44 - Issue 3302 Topics (messages 209200 through 209221): Re: Hi ALL 209200 by: Rory Browne Having problem with ob_start('gz_handler'); (seg fault) 209201 by: Chris W. Parker 209212 by: Burhan Khalid Re: ranking product based on

[PHP] Windows DB Connection

2005-02-23 Thread Feris Thia
Hi, I'm currently running Apache+PHP under Linux environment. And now trying to connect to Ms Access (.mdb) database file which is shared by a Windows station. What library I have to install use ? Thanks, Feris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] String validation

2005-02-23 Thread Bostjan Skufca @ domenca.com
or if you aren't into regex (which I find confusing and still am trying to learn): Read the book Mastering Regular Expressions or first 300 pages of it - trust me, it is worth the labour (personal experience)! On Wednesday 23 February 2005 07:44, Ligaya Turmelle wrote: if

Re: [PHP] Formatting e-mail using mail()

2005-02-23 Thread Jochem Maas
Burhan Khalid wrote: Jacques wrote: Can I format an e-mail message with html tags inside the mail() function? If not, how can I go about it? I would like to format the layout of the e-mail message using tables, colors and perhaps images. Please, FFS RTFM

[PHP] hiding password in form

2005-02-23 Thread William Stokes
Hello, How can hide the typed password in web form with *** (asterix)? I dont wan't everyone to seen evereone passwords in plain text. Thanks -Will -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: hiding password in form

2005-02-23 Thread M. Sokolewicz
William Stokes wrote: Hello, How can hide the typed password in web form with *** (asterix)? I dont wan't everyone to seen evereone passwords in plain text. Thanks -Will input type=password and it's an asterisk, not asterix (the comic) -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: hiding password in form

2005-02-23 Thread William Stokes
OK ;-) M. Sokolewicz [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] William Stokes wrote: Hello, How can hide the typed password in web form with *** (asterix)? I dont wan't everyone to seen evereone passwords in plain text. Thanks -Will input type=password and it's an

Re: [PHP] hiding password in form

2005-02-23 Thread Jochem Maas
William Stokes wrote: Hello, How can hide the typed password in web form with *** (asterix)? I dont wan't everyone to seen evereone passwords in plain text. use a form element with type=password e.g: input name=WilliesPwdField type=passwd / not really a php question this, also I'd put money on

[PHP] Copy?

2005-02-23 Thread Wiberg
Hi there! How do I copy a file from an URL to my server? I url fopen wrappers is NOT enabled, and I'm not allowed to do that. /G @varupiraten.se -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 2005-02-10 -- PHP

Re: [PHP] Copy?

2005-02-23 Thread Jochem Maas
Wiberg wrote: Hi there! How do I copy a file from an URL to my server? I url fopen wrappers is NOT enabled, and I'm not allowed to do that. do you have access to the cURL extension in your php build? www.php.net/curl if you do then you should be able to use to do what you want, might take a bit of

[PHP] password case sensitive

2005-02-23 Thread William Stokes
Hello, I got my little user authentication to work but now I would like to know how to make and check the (upper/lower) case in password. To put it simple. I want users password to be case sensitive. The authentication checks for returned number of rows from DB. If there is one matching row

Re: [PHP] Hi ALL

2005-02-23 Thread Jochem Maas
Rory Browne wrote: How to use this list best: Search the archives at lists.php.net for [NEWBIE GUIDE] It was written by Jay Blanchard earlier this year I believe. Read it. heh Rory, is this aimed at me or did you just reply to my mail for convienience? I happen to know the NEWBIE GUIDE quiet

[PHP] Re: password case sensitive

2005-02-23 Thread M. Sokolewicz
William Stokes wrote: Hello, I got my little user authentication to work but now I would like to know how to make and check the (upper/lower) case in password. To put it simple. I want users password to be case sensitive. The authentication checks for returned number of rows from DB. If there

[PHP] while loop

2005-02-23 Thread Reinhart Viane
Hey list I have a mysql table like this: Act_name Act_type_id Act_date Heyhey 1 22-06-05 Aloha 2 22-06-05 Tralala 2 22-06-05 Wuhu 1 22-06-05 Hehe 3 22-06-05 Olalal 3 22-06-05 Pompom 1 22-06-05 Wuhu 2 22-06-05 Now I retrieve all activities happening in the future

Re: [PHP] password case sensitive

2005-02-23 Thread Jochem Maas
William Stokes wrote: Hello, I got my little user authentication to work but now I would like to know how to make and check the (upper/lower) case in password. To put it simple. I want users password to be case sensitive. The authentication checks for returned number of rows from DB. If there

Re: [PHP] Putting Evaluated Contents Of Include File Into Varialble

2005-02-23 Thread Marek Kilimajer
Michael Stearne wrote: Hi, I have an file that contains PHP code..variables, db, etc. Is it possible to include the evaluted contents of that file into a variable in another, the calling PHP script? Essentailly I am looking to do something like include(myCode.php) - HTML Output - $myVariable. I

Re: [PHP] Copy?

2005-02-23 Thread Burhan Khalid
Wiberg wrote: Hi there! How do I copy a file from an URL to my server? I url fopen wrappers is NOT enabled, and I'm not allowed to do that. http://www.php.net/curl or use wget via system, exec, etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] help me

2005-02-23 Thread K Karthik
dear sir, i'd like to get a date from my database(mysql).and then show a combobox of calendar(date-month-year) with the retrieved data selected. can you help me doing this?? am new to php. thanks, karthikeyan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] while loop

2005-02-23 Thread Burhan Khalid
Reinhart Viane wrote: Hey list I have a mysql table like this: [ snipped ] Now I retrieve all activities happening in the future with this query: $sqlact=select * from activities where act_date = NOW() order by act_type_id; $getact=mysql_query($sqlact) What Im trying to do now is: From

[PHP] uploading files with a single quote in the filename

2005-02-23 Thread neil
Hi When uploading files using a type=file in a form, if a file is uploaded with a single quote the file gets truncated to whatever is after the quote eg. blah'sblah.txt will be uploaded as sblah.txt Is this a magic quotes issue? What is the best way to deal with it? Neil -- PHP General

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hi When uploading files using a type=file in a form, if a file is uploaded with a single quote the file gets truncated to whatever is after the quote eg. blah'sblah.txt will be uploaded as sblah.txt Is this a magic quotes issue? I don't think so, test it by turning it

[PHP] [Pear] go-pear.php

2005-02-23 Thread James Nunnerley
Hi, I'm having two problems: Firstly, the new update of go-pear.php I believe is not working. Does anyone know when a new fixed one is being released? Also, I'm having problems signing up to the pear.php.net lists - again, anyone any ideas? Cheers Nunners

[PHP] Strip alternating spaces in first word of paragraph

2005-02-23 Thread Aaron Gould
I have a series of paragraphs in which the first word contains alternating spaces. How can I strip out the spaces of only this first word, while leaving the remainder of the paragraph untouched? Here's an example: T h i s is the first paragraph. Only the first word is wacky. A n o t h e r

[PHP] wml help,please!

2005-02-23 Thread
Dear phpers, I'm new to wml. And I got such problem: I can browse my wml page with opera. But when I use my Nokia 7650, I always get unknown reply error. My server is redhat 9, My php is 4.2 The following is one of my test page. ?php Header(Content-type: text/vnd.wap.wml; charset=UTF-8);

Re: [PHP] Hi ALL

2005-02-23 Thread Rory Browne
Jocham: Uh??? First of all, no that was not intended at you. Dhanasekar asked a question, and I answered it. I don't think the rest of your message/attack is particularly relevent, with the above taken into account. I simply saw a question that I knew the answer to, and answered it as best I

Re: [PHP] handling large files w/readfile

2005-02-23 Thread Marek Kilimajer
A little late but: Robin Getz wrote: If this runs for awhile things go very bad. This seems to be related to a specific download manager called NetAnts that seems to be popular in China. http://www.netants.com/ Which attempts to open the same url for downloading 10-15 times at the same

Re: [PHP] Strip alternating spaces in first word of paragraph

2005-02-23 Thread Burhan Khalid
Aaron Gould wrote: I have a series of paragraphs in which the first word contains alternating spaces. How can I strip out the spaces of only this first word, while leaving the remainder of the paragraph untouched? This is not a solution, but something you can start off with. I haven't error

[PHP] URL encode

2005-02-23 Thread Bruno Santos
Hello. Im having some trouble when getting a query from a $_GET method the problem is, when using $_GET, i get some charaters decoded as html entities. if i submit the word %sara% (example), is ok but, if i submi the word %carlos%, i get Êrlos, witch is the translation of html entity %ca how

[PHP] Re: [Pear] go-pear.php

2005-02-23 Thread Jason Barnett
James Nunnerley wrote: Hi, I'm having two problems: Firstly, the new update of go-pear.php I believe is not working. Does anyone know when a new fixed one is being released? Not sure. What error are you getting? It is possible that it is trying to look for the PEAR scripts

[PHP] Re: Bug or undocumented functionality of unset()?

2005-02-23 Thread Jason Barnett
[EMAIL PROTECTED] wrote: Hi All, Does unset() create a copy of the array and then overwrite the original somehow destroying the reference? ... --- ?php $stuff = array(array('one','two'), array('one','two'), array('three','four'),

Re: [PHP] Hi ALL

2005-02-23 Thread Jochem Maas
Rory Browne wrote: Jocham: Uh??? First of all, no that was not intended at you. Dhanasekar asked a question, and I answered it. I don't think the rest of your message/attack is particularly relevent, with the above taken into no attack meant - please tell the russians its a false alarm :-) I

Re: [PHP] URL encode

2005-02-23 Thread Jochem Maas
Bruno Santos wrote: Hello. Im having some trouble when getting a query from a $_GET method the problem is, when using $_GET, i get some charaters decoded as html entities. if i submit the word %sara% (example), is ok but, if i submi the word %carlos%, i get Êrlos, witch is the translation of

Re: [PHP] User Passwords: checking for unique chars

2005-02-23 Thread Jochem Maas
Richard Lynch wrote: Jochem Maas wrote: Alex Gemmell wrote: On Mon, 14 Feb 2005 22:51:42 +0100, Jochem Maas [EMAIL PROTECTED] wrote: Alex Gemmell wrote: #Contain at least one number if ( !preg_match ('/\\d/', $password) ) return false; Im pretty sure the double backslash is a typo. nice

[PHP] Putting Evaluated Contents Of Include File Into Varialble

2005-02-23 Thread - - -=\(\( j0n3 \)\)=- - -
Try using a function to do that. My code looks like: anyPHP.php: your code stuff ... Include (yourCode.php) $variable=yourCodeFunction([params]); Then yourCode.php could be: function myFunction($param=0){ code

[PHP] Problem with ftp_get and ftp_put over SSL

2005-02-23 Thread Tim Boring
I need to transfer files between a server at my company and one of our vendors. The vendor's running a SecureFTP (FTPS) server. In order to automate this from our side, I've created a class that wraps the ftp functions in an object. When I test my class on a standard FTP server, everything

Re: [PHP] URL encode

2005-02-23 Thread Richard Lynch
Bruno Santos wrote: Hello. Im having some trouble when getting a query from a $_GET method the problem is, when using $_GET, i get some charaters decoded as html entities. if i submit the word %sara% (example), is ok but, if i submi the word %carlos%, i get Êrlos, witch is the translation

Re: [PHP] Problem with ftp_get and ftp_put over SSL

2005-02-23 Thread Richard Lynch
Maybe try the active/passive thing... Often-times, the client/server will/won't allow one or the other, based on their idea of what's safe/fast. Disclaimer: For all I know, FTPS doesn't even HAVE active/passive distinction; Just guessing based on regular FTP problems posted in the past. Tim

Re: [PHP] Strip alternating spaces in first word of paragraph

2005-02-23 Thread Richard Lynch
Aaron Gould wrote: I have a series of paragraphs in which the first word contains alternating spaces. How can I strip out the spaces of only this first word, while leaving the remainder of the paragraph untouched? Here's an example: T h i s is the first paragraph. Only the first word is

Re: [PHP] Many forms in one php file

2005-02-23 Thread Jochem Maas
Jay Blanchard wrote: [snip] I want to create a single php file which will be able to display multiple html forms. Like this: Form1 - Form2 - Form3. After the user completes and submits Form1, the script will process it and display a different form. etc... I am new to php, I would need some

Re: [PHP] help me

2005-02-23 Thread Richard Lynch
K Karthik wrote: i'd like to get a date from my database(mysql).and then show a combobox of calendar(date-month-year) with the retrieved data selected. can you help me doing this?? am new to php. http://www.google.com/search?q=PHP+date+combobox -- Like Music? http://l-i-e.com/artists.htm --

Re: [PHP] Strip alternating spaces in first word of paragraph

2005-02-23 Thread Aaron Gould
Burhan Khalid wrote: ?php $string = 'E n d l e s s insanity here!'; $letters = explode( ,$string); foreach ($letters as $key = $letter) { if (strlen($letter) == 1) { //Possible letter of our first word $word .= $letters[$key]; } else { $split_point = $key;

Re: [PHP] while loop

2005-02-23 Thread Richard Lynch
Reinhart Viane wrote: Hey list I have a mysql table like this: Act_name Act_type_id Act_date Heyhey 1 22-06-05 Aloha2 22-06-05 Tralala 2 22-06-05 Wuhu1

[PHP] link to specific position on page

2005-02-23 Thread Johannes
Hi, I am building a dynamic thumbnail gallery using php and HTML. All action occurs in the same document, no frames. When you click a thumb the same page reloads and shows a larger version of the thumb. Otherwise the page is identical. I have mainly two problems: *When the page reloads it scrolls

[PHP] link to specific part of page

2005-02-23 Thread Johannes
Hi, I am building a dynamic thumbnail gallery using php and HTML. All action occurs in the same document, no frames. When you click a thumb the same page reloads and shows a larger version of the thumb. Otherwise the page is identical. I have mainly two problems: *When the page reloads it

[PHP] Accents! Pls help. Still very confused.

2005-02-23 Thread mario
Hello, I am still very puzzled. If you a couple of minutes of spare time, pls give a look at http://www.chiari.org/help/ and suggest a way out. Thanks a lot. mario -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] password case sensitive

2005-02-23 Thread Richard Lynch
William Stokes wrote: I got my little user authentication to work but now I would like to know how to make and check the (upper/lower) case in password. To put it simple. I want users password to be case sensitive. The default compile settings for MySQL are case-insensitive. Usually, one

Re: [PHP] Windows DB Connection

2005-02-23 Thread Richard Lynch
Feris Thia wrote: I'm currently running Apache+PHP under Linux environment. And now trying to connect to Ms Access (.mdb) database file which is shared by a Windows station. What library I have to install use ? As I recall, you need to: Use ODBC library Set up DSN for the Access database I'm

[PHP] link to specific pos in page

2005-02-23 Thread Johannes
Hi, I am building a dynamic thumbnail gallery using php and HTML. All action occurs in the same document, no frames. When you click a thumb the same page reloads and shows a larger version of the thumb. Otherwise the page is identical. I have mainly two problems: *When the page reloads it

[PHP] sentence case

2005-02-23 Thread Diana Castillo
with php, HOW CAN I CONVERT SENTENCES LIKE THIS . TO BE UPPER AND LOWER CASE to become like this : How can I convert sentences like this. To be upper and lower case. -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 Ext 216 Fax :

Re: [PHP] while loop

2005-02-23 Thread Justin Lilly
Perhaps it is just me, but wouldn't it be easier to make individual mysql queries for each different act type? That would make the sorting -much- easier. I'm not sure if that's an option, but if it is, I'd consider exploring it. select * from activities where act_date = NOW() act_type_id = 1 or

[PHP] UDP

2005-02-23 Thread Jesper Goos
Hi I have for the last two days scanned the net for help on implementing a simple UDP server in PHP. I wan't to use it to wait for input, verify some userdata and then return som data. Can anyone help me or piont me in the right direction? Thanx Jesper -- PHP General Mailing List

RE: [PHP] sentence case

2005-02-23 Thread Jay Blanchard
[snip] with php, HOW CAN I CONVERT SENTENCES LIKE THIS . TO BE UPPER AND LOWER CASE to become like this : How can I convert sentences like this. To be upper and lower case. [/snip] http://www.php.net/ucfirst -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] how to select files from a directory and transfer to a different dir ?

2005-02-23 Thread Richard Lynch
Vaibhav Sibal wrote: I need to select around 200 files at random out of a file pool of 10k-15k files from a directory and then transfer them to another directory on my linux server which runs Apache 2.0.52, PHP 5.0.3 and Mysql. I will also be requiring to add the paths of all those files into

[PHP] link to specific position in page

2005-02-23 Thread Johannes
Hi, I am building a dynamic thumbnail gallery. When you click the thumbnail the larger image appears in the same document(not using frames). My two problems are: *When I click on the thumb I would like the page to reload and be scrolled to the exact same position as before the click (now with

Re: [PHP] link to specific position in page

2005-02-23 Thread John Nichel
Johannes wrote: snip 1) Please don't flood the list with the same message. 2) Your question has nothing to do with php. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] link to specific position in page

2005-02-23 Thread Jay Blanchard
[snip] ...client side stuff... [/snip] If you send this one more time you will earn a spot on the dev/null list. Everything you ask is as a result of client side HTML rendering. PHP is server side and cannot control these things. Currently, the anchor tag is your best bet for this, although I

RE: [PHP] while loop

2005-02-23 Thread Reinhart Viane
Well I'm able to do that, there are only 4 different types, but the 4 queries have exactly the same syntax so I think it's better to combine them. Not? -Oorspronkelijk bericht- Van: Justin Lilly [mailto:[EMAIL PROTECTED] Verzonden: woensdag 23 februari 2005 18:57 Aan:

RE: [PHP] help me

2005-02-23 Thread Reinhart Viane
This is how I would do it, don't know if it is the best way. A. get the date out of the database Let's say $maindate is that date you retrieved from the database B. split up the date into several parts for day month and year The day as a number (dd): $day=date (j, strtotime($maindate)); The

Re: [PHP] Writing PNG Images to File from Command Line

2005-02-23 Thread Richard Lynch
[EMAIL PROTECTED] wrote: Is it possible to limit the bit-depth or reduce the file size of a PNG image ? I haven't found anything in the manual about this as yet. http://php.net/imagetruecolortopalette There are User Contributed posts in there that also give suggestions for alternative

Re: [PHP] link to specific position in page

2005-02-23 Thread Richard Lynch
Johannes wrote: I am building a dynamic thumbnail gallery. When you click the thumbnail the larger image appears in the same document(not using frames). My two problems are: *When I click on the thumb I would like the page to reload and be scrolled to the exact same position as before the

Re: [PHP] sentence case

2005-02-23 Thread Aaron Gould
Diana Castillo wrote: with php, HOW CAN I CONVERT SENTENCES LIKE THIS . TO BE UPPER AND LOWER CASE to become like this : How can I convert sentences like this. To be upper and lower case. Sounds like you need a combination of ucfirst() and strtolower(). $newstring =

Re: [PHP] UDP

2005-02-23 Thread Richard Lynch
Jesper Goos wrote: I have for the last two days scanned the net for help on implementing a simple UDP server in PHP. I wan't to use it to wait for input, verify some userdata and then return som data. Can anyone help me or piont me in the right direction? Check in the 'streams' section of

Re: [PHP] sentence case

2005-02-23 Thread Leif Gregory
Hello Jay, Wednesday, February 23, 2005, 11:05:51 AM, you wrote: How can I convert sentences like this. To be upper and lower case. J http://www.php.net/ucfirst That won't work because it'll only capitalize the first letter of the string. Since his string contains more than one sentence he

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Bret Hughes
On Wed, 2005-02-23 at 06:49, [EMAIL PROTECTED] wrote: Hi When uploading files using a type=file in a form, if a file is uploaded with a single quote the file gets truncated to whatever is after the quote eg. blah'sblah.txt will be uploaded as sblah.txt Is this a magic quotes issue?

RE: [PHP] Having problem with ob_start('gz_handler'); (seg fault)

2005-02-23 Thread Chris W. Parker
Burhan Khalid mailto:[EMAIL PROTECTED] on Tuesday, February 22, 2005 11:21 PM said: I'm running Apache/2.0.40, MySQL 3.23.54, and PHP 4.2.2. You need to upgrade to the latest PHP version, which is 4.3.10 and while you are at it, consider upgrading MySQL to 4.0. Is this a known problem?

RE: [PHP] sentence case

2005-02-23 Thread Chris W. Parker
Leif Gregory mailto:[EMAIL PROTECTED] on Wednesday, February 23, 2005 10:31 AM said: I'm thinking something like: 1. strtolower() the string 2. explode() on the period 3. Loop through the resulting array a. trim() whitespace on each element b. ucfirst() on each element of the

RE: [PHP] sentence case

2005-02-23 Thread Jay Blanchard
[snip] That won't work because it'll only capitalize the first letter of the string. Since his string contains more than one sentence he needs to be able to capitalize the first letter of each sentence. [/snip] I was teaching the OP to fish instead of baiting the hook for her. -- PHP General

Re: [PHP] sentence case

2005-02-23 Thread Mattias Thorslund
Chris W. Parker wrote: Leif Gregory mailto:[EMAIL PROTECTED] on Wednesday, February 23, 2005 10:31 AM said: I'm thinking something like: 1. strtolower() the string 2. explode() on the period 3. Loop through the resulting array a. trim() whitespace on each element b. ucfirst() on each

Re: [PHP] sentence case

2005-02-23 Thread John Nichel
Jay Blanchard wrote: [snip] That won't work because it'll only capitalize the first letter of the string. Since his string contains more than one sentence he needs to be able to capitalize the first letter of each sentence. [/snip] I was teaching the OP to fish instead of baiting the hook for her.

[PHP] Can $_SERVER['REMOTE_ADDR'] be trusted?

2005-02-23 Thread SED
Is it possible for hackers to give a fake IP address when visiting a website running PHP? I want to allow certain IP addresses have access to a website (other IP addresses not), is it possible for someone (e.g. hacker) to give fake IP address? If so, how is the website returned to this someone?

Re: [PHP] sentence case

2005-02-23 Thread Leif Gregory
Hello Chris, Wednesday, February 23, 2005, 11:49:32 AM, you wrote: C And on top of that he'll need to convert all 'i' to 'I' because of C step 1. You and Mattias both have valid points. The only other thing I can think of is a regexp that is searching for a period and a space then does a

Re: [PHP] while loop

2005-02-23 Thread Marek Kilimajer
Reinhart Viane wrote: Well I'm able to do that, there are only 4 different types, but the 4 queries have exactly the same syntax so I think it's better to combine them. Not? Since mysql 4.1 you can use GROUP_CONCAT() function: SELECT Act_date, Act_type_id, LEFT( GROUP_CONCAT(Act_name

[PHP] TO Bret Hughes ---- Accents! Pls help. Still very confused.

2005-02-23 Thread mario
Bret, i have just seen your reply to me. Please, check link below. Thanks mario -- Hello, I am still very puzzled. If you a couple of minutes of spare time, pls give a look at http://www.chiari.org/help/ and suggest a way out. Thanks a lot. mario -- PHP General Mailing List

Re: [PHP] Can $_SERVER['REMOTE_ADDR'] be trusted?

2005-02-23 Thread Marek Kilimajer
SED wrote: Is it possible for hackers to give a fake IP address when visiting a website running PHP? I want to allow certain IP addresses have access to a website (other IP addresses not), is it possible for someone (e.g. hacker) to give fake IP address? If so, how is the website returned to this

Re: [PHP] sentence case

2005-02-23 Thread Mattias Thorslund
Leif Gregory wrote: Hello Chris, Wednesday, February 23, 2005, 11:49:32 AM, you wrote: C And on top of that he'll need to convert all 'i' to 'I' because of C step 1. You and Mattias both have valid points. The only other thing I can think of is a regexp that is searching for a period and a space

Re: [PHP] sentence case

2005-02-23 Thread Leif Gregory
Hello Mattias, Wednesday, February 23, 2005, 12:35:21 PM, you wrote: M Oh, and sentences may end with other characters, too. Notably ! M and ?. Nuh-u Prove it!(Oh dang..) grin -- Leif (TB lists moderator and fellow end user). Using The Bat! 3.0.2.3 Rush under Windows XP 5.1

Re: [PHP] Problem with ftp_get and ftp_put over SSL

2005-02-23 Thread Tim Boring
Hi, Richard! On Wed, 2005-02-23 at 08:45 -0800, Richard Lynch wrote: Maybe try the active/passive thing... Often-times, the client/server will/won't allow one or the other, based on their idea of what's safe/fast. Yes, I tried that, too. Sorry, I didn't mention that in my original post. I

[PHP] Web Browser Timeout on Upload Script

2005-02-23 Thread Matt Cassarino
Hi, I am running a simple Upload script in PHP using a HTML Form with a File field. The user can browse their computer and upload a file. It works great, except for large files, where the browser will timeout. The timeout appears to happen after about 5 minutes. Any ideas on how to get

RE: [PHP] Web Browser Timeout on Upload Script

2005-02-23 Thread Jay Blanchard
[snip] I am running a simple Upload script in PHP using a HTML Form with a File field. The user can browse their computer and upload a file. It works great, except for large files, where the browser will timeout. The timeout appears to happen after about 5 minutes. Any ideas on how to get

Re: [PHP] Hi ALL

2005-02-23 Thread Rory Browne
Sorry didn't mean to accuse you of attacking. Just had a more hectic day than usual, and maybe lost it a bit. Anyway, this is rapidly getting off topic, so.. On Wed, 23 Feb 2005 16:52:25 +0100, Jochem Maas [EMAIL PROTECTED] wrote: Rory Browne wrote: Jocham: Uh???

[PHP] Wierd PHP Problem

2005-02-23 Thread Ahmed Abdel-Aliem
Hi i use the following code as a login page for a restricted area it works fine on some servers when i enter the right username and password but it doesn't work on some servers when i enter the right username and password, and returns wrong username and password can any one tell me what possible

[PHP] Web Browser Timeout on Upload Script

2005-02-23 Thread Matt Cassarino
Thanks for your link to set_time_limit( ) Jay. However, I tried adding the set_time_limit code into my page that processes the uploaded file and I am still getting the timeout. I have also tried adding the set_time_limit code onto my page with the HTML form that calls the upload script

Re: [PHP] Wierd PHP Problem

2005-02-23 Thread Matthew Fonda
$HTTP_*_VARS is deprecated in PHP5, so if the server is running PHP5, this code won't work. Instead, you should use $_POST $username = $HTTP_POST_VARS['username']; $password = $HTTP_POST_VARS['password']; change to: $username = $_POST['username']; $password = $_POST['password']; --

Re: [PHP] Wierd PHP Problem

2005-02-23 Thread Will Beers
Matthew Fonda wrote: $HTTP_*_VARS is deprecated in PHP5, so if the server is running PHP5, this code won't work. Instead, you should use $_POST On this subject, is there anything 'wrong' with using $_REQUEST instead of specifying between $_POST and $_GET? Will Beers smime.p7s Description:

Re: [PHP] Wierd PHP Problem

2005-02-23 Thread Leif Gregory
Hello Will, Wednesday, February 23, 2005, 2:39:27 PM, you wrote: W On this subject, is there anything 'wrong' with using $_REQUEST W instead of specifying between $_POST and $_GET? $_REQUEST includes POST, GET, and cookies. It basically boils down to knowing where the information is coming

Re: [PHP] Web Browser Timeout on Upload Script

2005-02-23 Thread Marek Kilimajer
Matt Cassarino wrote: Hi, I am running a simple Upload script in PHP using a HTML Form with a File field. The user can browse their computer and upload a file. It works great, except for large files, where the browser will timeout. The timeout appears to happen after about 5 minutes. Any

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread neil
Thanks some answers: turning magic quotes on and off seemed to make no difference 1. single quotes aren't important to me but this application allows users to upload photos which often use descriptive filenames which sometimes have single quotes eg. my mum's car.jpg. I replace the spaces with

Re: [PHP] Web Browser Timeout on Upload Script

2005-02-23 Thread Tim Boring
On Wed, 2005-02-23 at 22:54 +0100, Marek Kilimajer wrote: Matt Cassarino wrote: Hi, I am running a simple Upload script in PHP using a HTML Form with a File field. The user can browse their computer and upload a file. It works great, except for large files, where the browser will

Re: [PHP] sentence case

2005-02-23 Thread Jochem Maas
Diana Castillo wrote: with php, HOW CAN I CONVERT SENTENCES LIKE THIS . TO BE UPPER AND LOWER CASE to become like this : How can I convert sentences like this. To be upper and lower case. here is something I hacked together for Smarty once, modified a bit to suit your need more (syntax-checked

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread neil
Thanks Bret I have tried turning all reporting on - error_reporting(E_ALL); but that doesn't reveal anything significant I have looked in the logs but there is nothing significant there. Because the type is file in the form it is not handled like a post - the values go into an array called

Re: [PHP] Wierd PHP Problem

2005-02-23 Thread Robby Russell
On Wed, 2005-02-23 at 16:39 -0500, Will Beers wrote: Matthew Fonda wrote: $HTTP_*_VARS is deprecated in PHP5, so if the server is running PHP5, this code won't work. Instead, you should use $_POST On this subject, is there anything 'wrong' with using $_REQUEST instead of specifying

Re: [PHP] Web Browser Timeout on Upload Script

2005-02-23 Thread dpgirago
I think there is a file size argument both in the html form tag and within php.ini (max_file_size...? or something like that). I would try to make both very large, just as a test. Anyway, I had a similar problem that was fixed by playing around with these settings. David Matt Cassarino

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Bret Hughes
On Wed, 2005-02-23 at 16:40, [EMAIL PROTECTED] wrote: Thanks Bret I have tried turning all reporting on - error_reporting(E_ALL); but that doesn't reveal anything significant I have looked in the logs but there is nothing significant there. Because the type is file in the form it is not

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread neil
Hi Brett My form is effectively identical to yours form enctype=multipart/form-data action=/uploadfiles.php method=post bUpload a file:/b input name=userfile type=file size=100 No the first part of the file name is just dropped and the file with the truncated name is saved in the correct place.

Re: [PHP] while loop

2005-02-23 Thread Jochem Maas
Reinhart Viane wrote: Well I'm able to do that, there are only 4 different types, but the 4 queries have exactly the same syntax so I think it's better to combine them. Not? what about using UNION on the four queries? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Thanks some answers: turning magic quotes on and off seemed to make no difference 1. single quotes aren't important to me but this application allows users to upload photos which often use descriptive filenames which sometimes have single quotes eg. my mum's car.jpg. I

Re: [PHP] uploading files with a single quote in the filename

2005-02-23 Thread Bret Hughes
On Wed, 2005-02-23 at 18:45, [EMAIL PROTECTED] wrote: Hi Brett My form is effectively identical to yours form enctype=multipart/form-data action=/uploadfiles.php method=post bUpload a file:/b input name=userfile type=file size=100 No the first part of the file name is just dropped and the

[PHP] hash issues

2005-02-23 Thread Erbacher Karl
I am creating a database where I need people to log in using a unique username and password. I would like to hash the passwords using the one-way function mhash(). However, when I try to do this, I have some issues that I cannot figure out. Here is what I have (I'll include every mention of

Re: [PHP] wml help,please!

2005-02-23 Thread Richard Miller
Does your page work in another phone? When you visit your page in a (B(normal, computer) web browser, do you see the WML code you expect? (B (BRichard (B (BOn Feb 23, 2005, at 7:33 AM, $B5m:%(B wrote: (B (B (B Dear phpers, (B (B I'm new to wml. And I got such problem: (B I can

[PHP] Word file to PDF

2005-02-23 Thread Kevin Javia
Hi there, How can I convert a Word file (*.doc) to PDF file? Are there any libraries available? Can you give me some hint how can I do that? Thanks. Kevin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >