Re: [PHP] allow_url_fopen ini directive not enough

2004-12-10 Thread KJ
Basically this particular case boils down to: files that are included and should not a be called directly should not be allowed to be called directly. You can do this at the application level whereby each included file checks whether it was called directly and refuse to run when that is so. Or

RE: [PHP] PHP4 mysqli with mysql 4.1.7?

2004-12-10 Thread Francis Mak
What happens in your application if you just do: mysql_query(SET CHARACTER SET utf8, $connection) or die(mysql_error()); right after you connect to the database? Thank you, by adding mysql_query(SET CHARACTER SET utf8, $connection), it works now. However, I am still confused on some issue:

Re: [PHP] ISP snippet

2004-12-10 Thread Danny Brow
On Thu, 2004-12-09 at 18:17 -0600, Brad Ciszewski wrote: i need help to figure out the isp of a user. can anyone help me with this? http://www.arin.net/whois/ It will give you the owner of the IP address, i.e. Bell, AOL, etc. Whats the reason you need the uses ISP? -Brad

[PHP] Removing a return character

2004-12-10 Thread Shaun
Hi, I have a system that scans through a CSV File and inserts each row into a database. I have just noticed that some rows have a return character in them - a small square - and this is causing errors in the mysql query. Does anyone know how I can remove such chracters? -- PHP General

RE: [PHP] Forms and viewing Text Area

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 09 December 2004 22:41, Ben C wrote: I have a form which has a text box which then stores in MySQL. When I write seperate paragraphs and try and then view what I wrote it

RE: [PHP] baffled - please explain

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 December 2004 00:06, Malcolm Mill wrote: Hi, I just came across a sniplet of code in a book I'm reading and I'm not sure what point the author is trying to make. The

RE: [PHP] baffled - please explain

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 December 2004 00:15, adwin wijaya wrote: but { ? My function was called ?php } is not correct :) Why do you say that? Looks perfectly fine to me. Cheers!

RE: [PHP] I'm Back i'm beginner and i couldn't solve the prob lem

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 December 2004 02:57, Mecnun wrote: hi again, I tried all the corrections that you showed me. Nothing worked and I uploaded my scripts to a web hosting server and I saw

[PHP] full http request

2004-12-10 Thread Mirek Novak
Hello people, is it possible to see full http request as it has arrived on server? I mean including all headers and etc. thanx -- Mirek Novak -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Question:maybe urldecode

2004-12-10 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: Please, stop giving us vague, generalized descriptions of your application, and how it is or isn't working right, and vague, generalized descriptions of the data it's supposed to be working with. I don't believe that the description of my issue was

RE: [PHP] Forms and viewing Text Area

2004-12-10 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: echo nl2br(htmlspecialchars($text)) is my usual mantra for this. nl2br will give you back the correct formatting, but will leave br/'s in the output. I just went through this issue the other day, what I found worked for me was:

Re: [PHP] Question:maybe urldecode

2004-12-10 Thread Jason Wong
On Friday 10 December 2004 18:59, Stuart Felenstein wrote: I don't believe that the description of my issue was vague. I provided not only what was expected but an example. It's still reasonable to believe that there could only be a limited number of factors involved as to what is missing

Re: [PHP] Removing a return character

2004-12-10 Thread Greg Donald
On Fri, 10 Dec 2004 10:10:20 -, Shaun [EMAIL PROTECTED] wrote: I have a system that scans through a CSV File and inserts each row into a database. I have just noticed that some rows have a return character in them - a small square - and this is causing errors in the mysql query. Does

Re: [PHP] Launch windows application and fle

2004-12-10 Thread Greg Donald
On Fri, 10 Dec 2004 05:38:34 -0400, Chris Mason [EMAIL PROTECTED] wrote: I have an internal application requirement to generate a webpage that lists media files (movies) on our linux server and when the user clicks the name of the file on the webpage, launch the application on the local machine

[PHP] Why it doesnt work

2004-12-10 Thread Aalee
Hi ive tried this script and it doesnt seem to work for me. I have typed exactly the same username and password in the script..it keeps on asking for the username and password..pls help...cud this be due to a setting in the php or apache server...am using php 4.3 and apache 1.3.33...the code is

[PHP] File upload problems using Apache 1.3 on Debian stable

2004-12-10 Thread [EMAIL PROTECTED]
Hi, I have been having problems trying to get file uploads working with PHP in a Debian Linux enviroment. I have ensured that both the temporary directory PHP uploads use has the appropriate permissions set, as well as the folder I am attempting to copy the images into. When I called

[PHP] Re: Why it doesnt work

2004-12-10 Thread M. Sokolewicz
register_globals? :) Aalee wrote: Hi ive tried this script and it doesnt seem to work for me. I have typed exactly the same username and password in the script..it keeps on asking for the username and password..pls help...cud this be due to a setting in the php or apache server...am using php 4.3

Re: [PHP] full http request

2004-12-10 Thread M. Sokolewicz
Raditha Dissanayake wrote: Mirek Novak wrote: Hello people, is it possible to see full http request as it has arrived on server? I mean including all headers and etc. There is an extension for firefox that gives you the headers that are sent by the browser. At the other end the $_SERVER

Re: [PHP] Question:maybe urldecode

2004-12-10 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Now in an earlier response I asked you to track your variables and see at which point they cease to contain what you expect them to contain. Did you do that? If you're not doing *your* part to help solve *your* problem then what are you expecting

Re: [PHP] Removing a return character

2004-12-10 Thread M. Sokolewicz
John Nichel wrote: Greg Donald wrote: On Fri, 10 Dec 2004 10:10:20 -, Shaun [EMAIL PROTECTED] wrote: I have a system that scans through a CSV File and inserts each row into a database. I have just noticed that some rows have a return character in them - a small square - and this is causing

RE: [PHP] Question:maybe urldecode

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 December 2004 13:27, Stuart Felenstein wrote: --- Jason Wong [EMAIL PROTECTED] wrote: Now in an earlier response I asked you to track your variables and see at which

RE: [PHP] Question:maybe urldecode

2004-12-10 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: AARRGGHHH! Vague, generalized, woolly!! SHOW US the relevant bits of code. SHOW US what you get printed out, especially anything that isn't what you expect, and tell us exactly what you did expect. SPECIFICS, man, SPECIFICS!! SHOW US the

[PHP] recompiling php

2004-12-10 Thread blackwater dev
I am a linux newbie and I have php 4.3.8 and Apache 2 installed that ws installed with the Fedora 2 install. I am getting errors that php wasn't compiled with mysql support so now I am trying to do that but get this error when I try to compile: Sorry, I cannot run apxs. Possible reasons follow:

Re: [PHP] Removing a return character

2004-12-10 Thread tg-php
All the suggestions made earlier make sense. You could use a regular expression or a str_replace() if you knew what you were looking for. And as someone mentioned, depending on your data set, you might want to use trim() (or the left or right variety thereof). When dealing with a single line

[PHP] Multiple Inheritance

2004-12-10 Thread Chris Boget
What are some of the things you guys do to get around the fact that classes in php4 can't do multiple inheritance? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question:maybe urldecode

2004-12-10 Thread KJ
Just want to double check that you're using the correct array in $_POST! Are you using form method=post..? If not then you should be using $_GET, not $_POST. $_SERVER['REQUEST_METHOD'] will have the method that you are using, remember to use the corresponding pre-defined variables. KJ Stuart

Re: [PHP] Question:maybe urldecode

2004-12-10 Thread Jason Wong
On Saturday 11 December 2004 00:19, Stuart Felenstein wrote: tdform name=form1 id=form1 method=get OK, you're telling the form to use the GET method ... $queryString = ($_SERVER['QUERY_STRING']); What is in $queryString after this? var_dump() it and show us the result. This is the

[PHP] grabbing source of a URL

2004-12-10 Thread Adam Williams
Hi, I don't know what functions to use so maybe someone can help me out. I want to grab a URL's source (all the code from a link) and then cut out a block of text from it, throw it away, and then show the page. For example, if I have page.html with 3 lines: htmlheadtitlehi/title/head body !--

Re: [PHP] How to make a PHP Socket client crash-proof?

2004-12-10 Thread René Fournier
I managed to solve the problem with the socket client hanging when the Server disappears. Actually, it is not hanging. What I discovered is that once the other end of the connection drops, it starts/continues reading on that socket ad infinitum. (I put a little counter in it, and can watch it

Re: [PHP] array_merge_recursive

2004-12-10 Thread Richard Lynch
Sebastian wrote: Hi. I am using this array_merge_recursive to merge two arrays, the array looks like this: Array ( [0] = Array ( [animal] = Dogs [total] = 5 ) [1] = Array ( [animal] = Cats [total]

RE: [PHP] grabbing source of a URL

2004-12-10 Thread Vail, Warren
I suspect that you don't really want to cut out everything but the text (since you plan to display it) but check out; http://us2.php.net/manual/en/function.strip-tags.php Now, keep in mind that since you are getting the source from the url, and I'm guessing that the web server serving up the

Re: [PHP] array_merge_recursive

2004-12-10 Thread Sebastian
actually, what i mean is i need to get the animal name as well.. ie: echo $animal . ' : ' . $total would output: animal name : total animal name : total etc. thanks. - Original Message - From: Sebastian [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 10, 2004 12:24 PM

RE: [PHP] Multiple Inheritance

2004-12-10 Thread Justin Palmer
I am sorry for you Richard for the vast miss-understanding of OO. Regards, Justin Palmer __ KISS (Keep It Simple, SEARCH)! Google::getUri( http://www.google.com ); Archives::getUri( http://marc.theaimsgroup.com/?l=php-general ); -Original Message- From: Richard

RE: [PHP] Multiple Inheritance

2004-12-10 Thread Mike
Richard, Thank you for that. I've been writing PHP apps for a while now but would not concider myself an expert. I just enjoy doing it and I know a fair bit about what I'm doing. One thing I never quite got into (with PHP) is OO. Why - because nothing I ever did really seemed to make sense as

Re: [PHP] grabbing source of a URL

2004-12-10 Thread Darren W
What about using just the file command and then looping through the array? I do this to scrape sites for content (pics, midi's, fonts) by getting the links from within the html code and using the wwwcopy function in the php docs. I am sure there is a better way to do the pattern recognition but

[PHP] user password managment

2004-12-10 Thread Josh Howe
Does anybody have any tips or links for creating a system for managing user's passwords. I want to make it so that when a user is created, an email is sent with a link that allows them to set their password. The link should only work for a set amount of time. I have ideas for implementing

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Richard Lynch
What are some of the things you guys do to get around the fact that classes in php4 can't do multiple inheritance? What I do is not use classes. At all. :-) As a Lisp programmer of over a decade, I think I can safely say I am an OO proponent. Yet, every time I sit down to program a web

Re: [PHP] Re: PHP Security

2004-12-10 Thread rogerk
Quoting I l [EMAIL PROTECTED]: And finally, file management is much much easier when you store the files in a database. There is a kind of database that is perfectly designed and equipped to store files, and their very specific metadata properties, optimized for the correct sort of access.

Re: [PHP] File upload problems using Apache 1.3 on Debian stable

2004-12-10 Thread Richard Lynch
[EMAIL PROTECTED] wrote: Hi, I have been having problems trying to get file uploads working with PHP in a Debian Linux enviroment. I have ensured that both the temporary directory PHP uploads use has the appropriate permissions set, as well as the folder I am attempting to copy the images

Re: [PHP] Question:maybe urldecode

2004-12-10 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Nothing is printing out on $_POST['var'] or $var s makes sense. Now why are you looking in $_POST for your form values? They're in $_GET. You said earlier that you understood POST and GET? I made the correction , using $_GET now. Values are

Re: [PHP] Re: PHP Security

2004-12-10 Thread John Nichel
I l wrote: Lets say you want to store someones picture. In the database, you would insert the picture, who owns that picture, maybe the ip address and request headers of where that picture came from, the category, sub-category, sub-sub-category in which the picture belongs to, etc. You can

RE: [PHP] Confused - $GLOBALS

2004-12-10 Thread Richard Lynch
I always forget, because they changed it around on POST/GLOBALS/etc at some point, but only on some of them. Grrr. The built-in arrays with names beginning $_ are superglobals, i.e. always global anyway. The only other superglobal is $GLOBALS, which is a anming exception because it

Re: [PHP] Re: PHP Security

2004-12-10 Thread I l
I never said that this method wouldn't cause you overhead. With all respect, I am simply stating that this method is much simpler. Sometimes you must choose simplicity over processing costs. What if there was another programmer editing your code? Or, you came back to the same code after one

Re: [PHP] Re: PHP Security

2004-12-10 Thread rogerk
Quoting I l [EMAIL PROTECTED]: Lets say you want to store someones picture. In the database, you would insert the picture, who owns that picture, maybe the ip address and request headers of where that picture came from, the category, sub-category, sub-sub-category in which the picture

RE: [PHP] PHP4 mysqli with mysql 4.1.7?

2004-12-10 Thread Richard Lynch
Francis Mak wrote: What happens in your application if you just do: mysql_query(SET CHARACTER SET utf8, $connection) or die(mysql_error()); right after you connect to the database? Thank you, by adding mysql_query(SET CHARACTER SET utf8, $connection), it works now. However, I am still

Re: [PHP] allow_url_fopen ini directive not enough

2004-12-10 Thread Richard Lynch
KJ wrote: Basically this particular case boils down to: files that are included and should not a be called directly should not be allowed to be called directly. You can do this at the application level whereby each included file checks whether it was called directly and refuse to run when

Re: [PHP] Re: PHP Security

2004-12-10 Thread rogerk
Quoting I l [EMAIL PROTECTED]: So, you would prefer storing the uploaded file in your directory than a database? Have you tried either method? And, by the way, once you upload it into a database, it's not a file. It's just a data field. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Friendly URL

2004-12-10 Thread Bruno B B Magalhães
Hi guys, As part of my framework I have a URI decoder so it explode, remove unnecessary data (as GET query) amd put it into an array... Is there any better way of doing this (faster?), just wondering. if(isset($_SERVER['REQUEST_URI']) === true) {

Re: [PHP] Configuring PHP 5.0.2 on OpenBSD 3.6: png.h not found

2004-12-10 Thread Richard Lynch
Raymond C. Rodgers wrote: Having previously built PHP 4.x on OpenBSD 3.x in the past, I'm running into some difficulties configuring PHP 5.0.2 currently. On a fresh install of OpenBSD, I have confirmed installation of libpng 1.2.5p5, but no matter what png related switch (--with-png-dir= and

Re: [PHP] Close all open tags in HTML text

2004-12-10 Thread Richard Lynch
Matt Palermo wrote: I would like to leave any HTML in there, Do you *TRUST* the people typing the HTML to not attack your server, or others, with cross-site scripting attacks? If not, go re-read the manual about strip_tags, and pay particular attention to the second, optional, argument. but

Re: [PHP] Spurious newlines when requesting empty php file

2004-12-10 Thread Richard Lynch
Carl Michael Skog wrote: Some strange results with spurious newlines inserted in the response when requesting a php file has led me to investigating what happens when a completely empty php-file is requested. I would have thought that the response from a empty php file would also be empty,

Re: [PHP] Re: PHP Security

2004-12-10 Thread Richard Lynch
I l wrote: the best security practice is to store the jpg file or any other uploaded file in your mySql database. This way you never have to worry about someone executing php by the url like www.example.com/pic.jpg. To view the file, the user would type

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Greg Donald
On Fri, 10 Dec 2004 10:32:30 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: What I do is not use classes. I agree. Some of the worst arguments for OO I've heard recently: OO programming lets you organize your code better. So what you're saying is that you're not capable of organizing

Re: [PHP] Re: PHP Security

2004-12-10 Thread I l
Yeah, with any luck at all, your binary file will corrupt itself, and then make your entire database unreadable by anybody, even you. really? Then my companies database should be corrupt by now...right? Haven't had any problems yet. Well, its only been running for 2 years now. I l wrote: the

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Greg Donald
On Fri, 10 Dec 2004 13:04:49 -0800, Justin Palmer [EMAIL PROTECTED] wrote: What if you were to build an application around the MySQL database. You have just finished the project and you are taking it to your boss. You get there and then your boss says, you know what I would rather use Oracle

Re: [PHP] allow_url_fopen ini directive not enough

2004-12-10 Thread Richard Lynch
KJ wrote: OK, apologies on my part, I did not correctly explian the problem which can and has arisen from remote includes. I'll try to explain the problem that I have come across twice in the last couple of years both with popular software packages that I downloaded like thousands of others

Re: [PHP] Friendly URL

2004-12-10 Thread Richard Lynch
Bruno B B Magalhães wrote: Hi guys, As part of my framework I have a URI decoder so it explode, remove unnecessary data (as GET query) amd put it into an array... Is there any better way of doing this (faster?), just wondering. if(isset($_SERVER['REQUEST_URI']) === true)

Re: [PHP] Re: PHP Security

2004-12-10 Thread Richard Lynch
Yeah, with any luck at all, your binary file will corrupt itself, and then make your entire database unreadable by anybody, even you. really? Then my companies database should be corrupt by now...right? Haven't had any problems yet. Well, its only been running for 2 years now. Search the

RE: [PHP] Spurious newlines when requesting empty php file

2004-12-10 Thread Michael Sims
Richard Lynch wrote: Carl Michael Skog wrote: I would have thought that the response from a empty php file would also be empty, but, to my surprise, they consist of 3 newlines !!! I just tried this with an empty PHP file, and got exactly what I expected. A valid response with no content at

Re: Re: [PHP] Close all open tags in HTML text

2004-12-10 Thread John Holmes
From: Richard Lynch [EMAIL PROTECTED] Matt Palermo wrote: but just make sure that ending tags exist, so it doesn't screw up the rest of the page. Strip tags would just wipe out the HTML rather than allowing it and ending it safely. Strip tags will allow you to wipe out *DANGEROUS*

Re: [PHP] Forms In PHP

2004-12-10 Thread Richard Lynch
Wil Hitchman wrote: I created a web form in PHP and used a couple of email addresses. The only email address that worked when I submitted to the form (for testing purposes) was my Yahoo address. My AOL, hotmail and other work addresses did not work. Can someone tell me why? Technically,

[PHP] flash data grid + php

2004-12-10 Thread blackwater dev
Is anyone using one of the flash data grids within their php application? I am looking to do the same thing but didn't know if it is more work than it's worth. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] encrypt/decrypt sqlite data

2004-12-10 Thread Richard Lynch
Shawn McKenzie wrote: This is my first adventure with mcrypt and also the sqlite stuff. Via file upload I am getting a SQL dump file and running it as a query to insert data into a sqlite db. This works great. Then I am trying to use an update query to encrypt fields in all rows by using

Re: [PHP] Question:maybe urldecode

2004-12-10 Thread Richard Lynch
Stuart Felenstein wrote: --- Jason Wong [EMAIL PROTECTED] wrote: Nothing is printing out on $_POST['var'] or $var s makes sense. Now why are you looking in $_POST for your form values? They're in $_GET. You said earlier that you understood POST and GET? I made the correction , using

Re: [PHP] Apache - MySQL connection via PHP

2004-12-10 Thread Richard Lynch
Mike Francis wrote: Hi, I am having a problem connecting to a MySQL database via PHP. I have Apache 2.0.52, PHP 5.0.2 and MySQL 4.1 installed and working OK individually. I have copied phpmysql.dll and mysqli.dll at different times to Windows/System32. I have set up a successful MyODBC

Re: [PHP] user password managment

2004-12-10 Thread Richard Lynch
Does anybody have any tips or links for creating a system for managing user's passwords. I want to make it so that when a user is created, an email is sent with a link that allows them to set their password. The link should only work for a set amount of time. I have ideas for implementing

Re: [PHP] Re: PHP Security

2004-12-10 Thread rogerk
Quoting Richard Lynch [EMAIL PROTECTED]: Actually, internally, it *is* a file, or part of a file, depending on the database implementation details. (*) Part of a file? Usually. A file? Rarely. And as part of a file, it is likely to be accessed using a more poorly chosen I/O model than if it

Re: [PHP] Launch windows application and fle

2004-12-10 Thread Richard Lynch
Chris Mason wrote: I have an internal application requirement to generate a webpage that lists media files (movies) on our linux server and when the user clicks the name of the file on the webpage, launch the application on the local machine playing the correct file. How can I accomplish

Re: [PHP] allow_url_fopen ini directive not enough

2004-12-10 Thread KJ
Richard Lynch wrote: Now in each instance register globals was on and all that was needed to You should turn register_globals off, first of all. True, ideally register globals should be off. Secondly, something is very very very wrong in your analysis. No it isn't. If this line of code gets

Re: [PHP] Not quite PHP, but related...

2004-12-10 Thread Jonel Rienton
could header(Location: urlhere) be an alternative? jonel http://www.road14.com http://www.filipinosrus.com -- I not know English well, but I know 7 computer languages. anonymous On Dec 10, 2004, at 4:16 PM, Bruno B B Magalhães

Re: [PHP] array_merge_recursive

2004-12-10 Thread Sebastian
thanks for the help. i do have a question.. say instead of 2 keys in the array there are 3 or 4.. how would that be done? i do not know much about arrays so i am trying to learn. thanks. - Original Message - From: Craig Slusher [EMAIL PROTECTED] To: Sebastian [EMAIL PROTECTED] Cc:

Re: [PHP] Close all open tags in HTML text

2004-12-10 Thread Matt Palermo
I realize that I can use the strip_tags function to remove HTML. But I don't want to remove HTML tags. I just want to make sure all open HTML tags are closed. For example if they user submits HTML with a table tag and never closes it, then the rest of the page will look screwed up. I still

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Ryan King
On Dec 10, 2004, at 4:17 PM, Greg Beaver wrote: The biggest hogs in php programming are: 1) unnecessary images and animated crap/unnecessary javascript 2) terrible database usage 3) too much complexity in the design I would like to add 0) Compilation. Many scripts take longer to compile than

Re: [PHP] ISP snippet

2004-12-10 Thread Brad Ciszewski
i need the script which will do this all automaticly.. i know there is a feature to get the server which the user is from. Danny Brow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Thu, 2004-12-09 at 18:17 -0600, Brad Ciszewski wrote: i need help to figure out the isp of a

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Ryan King
On Dec 10, 2004, at 3:50 PM, Greg Donald wrote: On Fri, 10 Dec 2004 10:32:30 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: What I do is not use classes. I agree. Some of the worst arguments for OO I've heard recently: OO programming lets you organize your code better. So what you're saying

Re: [PHP] Re: PHP Security

2004-12-10 Thread Richard Lynch
[EMAIL PROTECTED] wrote: Quoting I l [EMAIL PROTECTED]: So, you would prefer storing the uploaded file in your directory than a database? Have you tried either method? And, by the way, once you upload it into a database, it's not a file. It's just a data field. Actually, internally, it

Re: [PHP] recompiling php

2004-12-10 Thread Raditha Dissanayake
John Nichel wrote: blackwater dev wrote: Thanks John, I tried the rpm and it throws errors that it can't find the php package required by: php-mysql php-imap php-idap php-mbstring. Thanks! RPM and other binary informations suck. Remove them and install from source code. -- Raditha Dissanayake.

RE: [PHP] Multiple Inheritance

2004-12-10 Thread Michael Sims
Please note that I am specifically *not* weighing in on the OO vs. procedural religious war, but only wanted to make a couple of small comments. :) Richard Lynch wrote: I spend a *LOT* more time, digging through endless class files, of what are essentially name-spaces of singleton objects

[PHP] Re: alternating table entry colors

2004-12-10 Thread Jason Motes
Brad Ciszewski wrote: i need some assistance making my table (rows) change color for every other data. here is what i have so far, but i get a unexpected T_STRING error. this error's line is: if($thisRow mode 2 == 0){ I beleive you want if($thisRow % 2 == 0) not if($thisRow mode 2 == 0)

[PHP] PHP via DIAL-UP?

2004-12-10 Thread Police Trainee
Hello. I have a computer at my office running Apache that I use to run PHP scripts with using http://localhost. Is there anyway I can set up my computer to allow me to dial-in from home and use the webserver and my php applications? It is a win 98 system with tcp/ip.

[PHP] php mail

2004-12-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a dedicated Red Hat linux boxed leased from Interland and the php mail function does not work. I have found several articles on things to try and have tried everything I saw but to no avail. I set up a php script to mail and then print the return code and I get a 1 (success). But the

[PHP] php mail

2004-12-10 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I have a dedicated Red Hat linux boxed leased from Interland and the php mail function does not work. I have found several articles on things to try and have tried everything I saw but to no avail. I set up a php script to mail and then print the return code and I get a 1 (success). But the

Re: [PHP] Not quite PHP, but related...

2004-12-10 Thread Tom Rogers
Hi, Saturday, December 11, 2004, 8:16:44 AM, you wrote: BBBM Hi you all, BBBM is that possible using .htaccess to redirect every request to a BBBM specified script? BBBM for example if you have: BBBM http://www.yoursite.com/en/articles/blab.html BBBM where there isn't a en dir., so it would

Re: [PHP] Re: PHP Security

2004-12-10 Thread Paul Reinheimer
I beleive the performance hit is much higher than the %2 increase you are refering to: $ cat /.../loadtest.php ?php header('Content-Type: image/png'); readfile('placeholderimage.png'); ? $ ./ab -n 1000 -c 50 http://.../loadtest.php Time taken for tests: 1.653 seconds Complete requests:

[PHP] Re: How to post form-data to a host using PHP

2004-12-10 Thread Manuel Lemos
Hello, Minghua Yao wrote: Does anybody know how to post form-data to a host using PHP? Thanks for the answer. You may want to try this HTTP client class that can post forms including uploading files if necessary: http://www.phpclasses.org/httpclient -- Regards, Manuel Lemos PHP Classes - Free

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Greg Donald
On Fri, 10 Dec 2004 18:27:12 -0600, Ryan King [EMAIL PROTECTED] wrote: Yeah, but in the case of the Linux kernel there's no programming language that is both OO and close enough to the metal to program a kernel (other than maybe Forth??). C++, being a superset of C, would certainly be 'close

Re: [PHP] Php Mail not working properly

2004-12-10 Thread Matthew Sims
I have a dedicated Red Hat linux boxed leased from Interland and the php mail function does not work. I have found several articles on things to try and have tried everything I saw but to no avail. I set up a php script to mail and then print the return code and I get a 1 (success). But the

[PHP] Re: Php Mail not working properly

2004-12-10 Thread Manuel Lemos
Hello, Phpdiscuss - Php Newsgroups And Mailing Lists wrote: I have a dedicated Red Hat linux boxed leased from Interland and the php mail function does not work. I have found several articles on things to try and have tried everything I saw but to no avail. I set up a php script to mail and then

Re: [PHP] Re: PHP Security

2004-12-10 Thread Richard Lynch
I l wrote: Lets say you want to store someones picture. Okay. In the database, you would insert the picture, who owns that picture, maybe the ip address and request headers of where that picture came from, the category, sub-category, sub-sub-category in which the picture belongs to, etc.

Re: [PHP] PHP via DIAL-UP?

2004-12-10 Thread Sadeq Naqashzade
Hi, It is simple. Only you need setup an incoming connection in network connection. Note that this is not PHP/APACHE matter it is Windows matter. You can find detailed guide in Windows Forums. - Sadeq On Fri, 10 Dec 2004 17:34:56 -0800 (PST), Police Trainee [EMAIL PROTECTED] wrote: Hello. I

FW: [PHP] Multiple Inheritance

2004-12-10 Thread Justin Palmer
Sorry, Greg for sending this to you personally. I also forgot to leave a link of a PHP Unit Testing Suite. www.lastcraft.com/simple_test.php - Simple Test Regards, Justin -Original Message- From: Justin Palmer [mailto:[EMAIL PROTECTED] Sent: Friday, December 10, 2004 7:51 PM To:

Re: [PHP] allow_url_fopen ini directive not enough

2004-12-10 Thread Greg Donald
On Fri, 10 Dec 2004 22:00:43 +, KJ [EMAIL PROTECTED] wrote: Let me try to paint another simple senario: 1. You have a shared hosting account with example.com hosted on it. 2. You want a guestbook setup on it, and you've found one that you like. 3. You install phpMyFantasticGuestbook onto

Re: [PHP] user password managment

2004-12-10 Thread Brad Ciszewski
i have changed the script around a bit, now it actually shows something, but it doesnt alternate. $thisRow = 0; $query = mysql_query(SELECT * FROM security_images ORDER BY ID DESC, $conn); while($gt=mysql_fetch_array($query)){ extract($gt); if($thisRow % 2 == 0){ $backgroundColor = #CC;

[PHP] fsockopen https problem

2004-12-10 Thread Maycon de Oliveira
Hi, i have problem in my script, this error is Permission Danied (13) ? $host = 193.132.139.36; $port = 443; $path = /gatekeeper/ink/quexry.asp; //or .dll, etc. for authnet, etc. //you will need to setup an array of fields to post with //then create the post string $formdata =

RE: [PHP] user password managment

2004-12-10 Thread Justin Palmer
if($thisRow % 2 == 0){ Should be: if(($thisRow % 2) == 0){ Regards, Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Launch windows application and fle

2004-12-10 Thread Chris Mason
I have an internal application requirement to generate a webpage that lists media files (movies) on our linux server and when the user clicks the name of the file on the webpage, launch the application on the local machine playing the correct file. How can I accomplish that? I know the computers

RE: [PHP] Question:maybe urldecode

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 09 December 2004 20:10, Stuart Felenstein wrote: Sorry, I'm not following you. Where are my GET parameters ? The way I've built my present script is the reults page is

RE: [PHP] Confused - $GLOBALS

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 09 December 2004 20:41, Richard Lynch wrote: My best guess from skimming your code is that you need: global $_POST; No, he doesn't. in the function that uses $_POST.

RE: [PHP] Forms and viewing Text Area

2004-12-10 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 10 December 2004 11:30, Stuart Felenstein wrote: --- Ford, Mike [EMAIL PROTECTED] wrote: echo nl2br(htmlspecialchars($text)) is my usual mantra for this. nl2br will

Re: [PHP] full http request

2004-12-10 Thread Greg Donald
On Fri, 10 Dec 2004 11:57:23 +0100, Mirek Novak [EMAIL PROTECTED] wrote: is it possible to see full http request as it has arrived on server? I mean including all headers and etc. I use Ethereal: http://www.ethereal.com/ -- Greg Donald Zend Certified Engineer http://gdconsultants.com/

  1   2   >