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] fsockopen https problem

2004-12-10 Thread Maycon de Oliveira
Hi, i have problem in my script, this error is Permission Danied (13) "full", "originator" => "33", "urn" => "2528", "surname" => "appleton", "submit" => "submit" ); //build the post string foreach($formdata AS

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

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 "phpMyFantasticGuestbo

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: 'G

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 h

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

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

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 'clo

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

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 $ ./ab -n 1000 -c 50 http://.../loadtest.php Time taken for tests: 1.653 seconds Complete requests: 1000 ... Requests per second:604.96 [#/sec] (mean) Time per request:

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 w

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

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

[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] 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) http://us

[PHP] Php Mail not working properly

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 mail

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" tr

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: Re: [PHP] Close all open tags in HTML text

2004-12-10 Thread Greg Donald
On Fri, 10 Dec 2004 17:38:13 -0500, John Holmes <[EMAIL PROTECTED]> wrote: > strip_tags() is a rather worthless function, if you ask me. strip_tags() is pretty handy when scraping another site. Like the other day I was asked to grab some links off a site where there was no RSS feed available.. I

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

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 sayi

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

[PHP] Re: encrypt/decrypt sqlite data

2004-12-10 Thread Shawn McKenzie
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 the sqlit

[PHP] alternating table entry colors

2004-12-10 Thread Brad Ciszewski
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){ +=+=+ SCRIPT BELOW +=+=+ $thisRow = 0; $query = mysql_query("SELECT * FROM security_images ORDER

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 execut

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 tag and never closes it, then the rest of the page will look screwed up. I still want

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

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 wr

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 execute

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

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

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

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

RE: [PHP] Multiple Inheritance

2004-12-10 Thread Justin Palmer
Hi, Have you ever written a project and then moved to the next noticing that you are doing some of the same things from last project (connecting to a database, reading a file, writing to a file, etc...)? Have either of you ever written a for loop? Of course, you have. Have you ever written the f

RE: [PHP] Multiple Inheritance

2004-12-10 Thread Richard Lynch
> Have you ever written a project and then moved to the next noticing that > you are doing some of the same things from last project (connecting to a > database, reading a file, writing to a file, etc...)? Not quite the same thing. When it is exactly the same thing, I just copy & paste the code.

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

Re: [PHP] recompiling php

2004-12-10 Thread Khan
blackwater dev wrote: 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. Poss

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 *D

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

2004-12-10 Thread Khan
Yao, Minghua wrote: Hi, Does anybody know how to post form-data to a host using PHP? Thanks for the answer. -Minghua http://www.tizag.com/phpT/forms.php Enyoj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 c

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

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Greg Donald
On Fri, 10 Dec 2004 17:17:53 -0500, Greg Beaver <[EMAIL PROTECTED]> wrote: > yep, unless the function names happen to conflict with ones you've > already written. for file in *.php; do cp $file $file.tmp sed -e "s/bad/good/g" $file.tmp >$file rm $file.tmp done -- Greg Donald Zend Certified Engi

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

2004-12-10 Thread Jay Blanchard
[snip] Does anybody know how to post form-data to a host using PHP? Thanks for the answer. [/snip] Yes. You're welcome. You may want to Google for PHP tutorials. They're easy and go step by step. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsu

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']) === tru

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

2004-12-10 Thread Bruno B B Magalhães
Hi you all, is that possible using .htaccess to redirect every request to a specified script? for example if you have: http://www.yoursite.com/en/articles/blab.html where there isn't a en dir., so it would be redirected to public_html/site I could use error page, but it won't receive post, get, c

Re: [PHP] Multiple Inheritance

2004-12-10 Thread Greg Beaver
Greg Donald wrote: with it, but I will go grab a PEAR module if it fits my needs. Code re-use may be the only redeeming quality of OO programming, and honestly I can re-use your code from a non-OO include file just as easily. yep, unless the function names happen to conflict with ones you've alrea

Re: [PHP] Re: PHP Security

2004-12-10 Thread Greg Donald
On Fri, 10 Dec 2004 14:07:21 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > And, by the way, once you upload it into a database, it's not a file. It's > just > a data field. And the data fields are just files on the file system. Look at the way Postgres stores data. The filesystem itsel

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 ot

Re: [PHP] allow_url_fopen ini directive not enough

2004-12-10 Thread KJ
OK, I don't think you've read my posts in much detail at all. I looks as though you have skimmed over them and got a pre-determined idea of my issue in your head. Not once have I mentioned anything about "customers" in my posts. I'm not a web host. I'm not talking about people who have access t

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 >

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 b

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 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 www.example.com/veiw.php?fileID=3

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

2004-12-10 Thread Yao, Minghua
Hi, Does anybody know how to post form-data to a host using PHP? Thanks for the answer. -Minghua

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

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

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

Re: [PHP] Re: PHP Security

2004-12-10 Thread rogerk
Quoting I l <[EMAIL PROTECTED]>: > 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 ca

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

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

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

Re: [PHP] Removing a return character

2004-12-10 Thread Richard Lynch
Shaun 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 anyone know how I can remove such chracters? Might I

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 bec

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 gathe

Re: [PHP] Re: PHP Security

2004-12-10 Thread I l
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 gather and store

Re: [PHP] Re: Why it doesnt work

2004-12-10 Thread Richard Lynch
M. Sokolewicz 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

[PHP] encrypt/decrypt sqlite data

2004-12-10 Thread Shawn McKenzie
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 the sqlite_create_function to r

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

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 im

[PHP] Apache - MySQL connection via PHP

2004-12-10 Thread Mike Francis
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 connection with the database

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] Re: PHP Security

2004-12-10 Thread I l
I agree with the fact that apache is very secure. I also agree with you that you shouldn't be 100% comfortable with apache security because there is always a chance of a security flaw. But, how many beginner and intermediate PHP developers really know how to configure Apache for optimal securit

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 app

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

Re: [PHP] array_merge_recursive

2004-12-10 Thread Craig Slusher
foreach ($animal_counts as $animal => $total) { echo $animal. ':' .$total. ''; } On Fri, 10 Dec 2004 13:51:36 -0500, Sebastian <[EMAIL PROTECTED]> wrote: > actually, what i mean is i need to get the animal name as well.. > > ie: > echo $animal . ' : ' . $total > would output: > > : > :

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 t

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

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 O

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] 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: : : etc. thanks. - Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 10, 2004 12:24 PM Subject: [PHP] array_merge_

RE: [PHP] grabbing source of a URL

2004-12-10 Thread Vail, Warren
Oops missed part of your question; > know what function to use to grab the page. for the string http://us2.php.net/manual/en/function.fopen.php There are some good samples on the page $dh = fopen("$url",'r'); $result = fread($dh,8192); Hope

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 sour

[PHP] array_merge_recursive

2004-12-10 Thread Sebastian
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] => 3 ) [2] => Arr

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

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

[PHP] Problems implementing encryption: mcrypt_cfb

2004-12-10 Thread Darren W
Hey, thanks for looking. I would like to implement some sort of encryption to mask user id's. I looked at the example on the PHP website: http://au.php.net/manual/en/function.mcrypt-cfb.php This is exactly what I need. It does not quite work as the top post in that page suggests. Can anyone sug

[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: hi this is line a this is line b

Re: [PHP] Question:maybe urldecode

2004-12-10 Thread Jason Wong
On Saturday 11 December 2004 00:19, Stuart Felenstein wrote: > > > $queryString = ($_SERVER['QUERY_STRING']); > > > > What is in $queryString after this? var_dump() it > > and show us the result. > > This is the var_dump of the query string after I've > made some selections in the page. > string(

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 ? 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 Felenstein wrote: --

[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] Removing a return character

2004-12-10 Thread John Nichel
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 errors in the mysql q

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

  1   2   >