php-general Digest 17 Jul 2005 12:15:35 -0000 Issue 3572

2005-07-17 Thread php-general-digest-help
php-general Digest 17 Jul 2005 12:15:35 - Issue 3572 Topics (messages 218819 through 218828): Re: Trimming Text 218819 by: Al 218827 by: Ben-Nes Yonatan Session warning 218820 by: Thomas Bonham 218821 by: Jasper Bryant-Greene 218822 by: Thomas Bonham

php-general Digest 18 Jul 2005 00:31:03 -0000 Issue 3573

2005-07-17 Thread php-general-digest-help
php-general Digest 18 Jul 2005 00:31:03 - Issue 3573 Topics (messages 218829 through 218841): Re: Session warning 218829 by: Thomas Bonham Re: blob and long blob 218830 by: Ben-Nes Yonatan Re: Trimming Text 218831 by: Al 218834 by: André Medeiros searchbot

Re: [PHP] Echo array string index?

2005-07-17 Thread Ben-Nes Yonatan
Matt Darby wrote: I have an array setup as such: *$arr['generated text']='generated number';* What would be the best way to echo the key in a loop? Seems pretty easy but I've never attempted... Thanks all! Matt Darby Unless I didnt understood you.. you can easily use foreach() for that. If

Re: [PHP] Trimming Text

2005-07-17 Thread Ben-Nes Yonatan
André Medeiros wrote: On Fri, 2005-07-15 at 16:03 +0100, Richard Davey wrote: Hello André, Friday, July 15, 2005, 4:24:23 PM, you wrote: AM I am trying to trim some text containing HTML tags. What I want to AM do is to trim the text without trimming the tags or html entities AM like nbsp;

[PHP] blob and long blob

2005-07-17 Thread timothy johnson
I am building a database that houses photo, I thought everything was going fine til I went to upload a file that was bigger then 2MB. I check my HTML int he form I have it set to 10MB, in php.ini I have it set to 32MB, and then in mysql I am using a longblob so shouldnt that handle like 4GB.

Re: [PHP] Re: Session warning

2005-07-17 Thread Thomas Bonham
Thanks is for the help. That is a very good command. Here is what I have now. [EMAIL PROTECTED] property]$ od -c adminlogin.php | head 000 ? p h p s e s s i o n _ s 020 t a r t ( ) ; r e q u i r e ( 040 f u

Re: [PHP] blob and long blob

2005-07-17 Thread Ben-Nes Yonatan
timothy johnson wrote: I am building a database that houses photo, I thought everything was going fine til I went to upload a file that was bigger then 2MB. I check my HTML int he form I have it set to 10MB, in php.ini I have it set to 32MB, and then in mysql I am using a longblob so shouldnt

[PHP] Re: Trimming Text

2005-07-17 Thread Al
Al wrote: André Medeiros wrote: Greetings. I am trying to trim some text containing HTML tags. What I want to do is to trim the text without trimming the tags or html entities like nbsp; and such, wich completelly break the design. Has anyone succeded on doing such a thing? phpclasses.org

[PHP] searchbot script

2005-07-17 Thread jenny mathew
hello group, is it possible to make write a program in php ,so that only search bots can see the output of that program.i mean to say that a program echoes a line at the footer which only search bots can see,it will be invisible to general visitors.

Re: [PHP] searchbot script

2005-07-17 Thread Marco Tabini
You can--you need to check the signature of the visiting client and determine whether it is a spider (for example, Google indexers are called googlebots). This is in $_SERVER['HTTP_USER_AGENT']. Here's a thread on the subject: http://news.php.net/php.general/217460 You can also use the

Re: [PHP] Re: Trimming Text

2005-07-17 Thread André Medeiros
I've succeded on doing this task :) I had to make a few assumptions (like HTML is formatted correctly), but, other than that, it worked just fine. I'll post the code on monday. Thanks for all your help guys. You've been GEAT (you know... like Tony says ;) ) On 7/17/05, Al [EMAIL PROTECTED]

Re: [PHP] Question about apache-php concurrent process control

2005-07-17 Thread André Medeiros
I did something like that for a newsletter sending script. Basiclly, I had two scripts: a) AddEdit.php that would list the newsletter's items and allow it to send b) Send.php that was a script I ran on the background When pressed Send on AddEdit, it would do something like $tempName = tempnam(

Re: [PHP] Re: Displaying HTML safely

2005-07-17 Thread Lauri Harpf
Something like this (you might like to check the syntax, I'm working from memory here) might work: header('Content-Disposition: attachment; filename=somefile.html'); Thanks, I'll have to try that. As for security, looks like I will need to watch out for the extensions. Turns out that the

[PHP] Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
Hi, I'm running MySQL 4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system. I can run scripts with PHP and HTML statements and see correct output in my browser. But when I try to connect to MySQL I get nothing, including no error messages. One book I have says to run the following

Re: [PHP] Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
Using this at the top of your script will allow PHP and MySQL to interact. $_POST['dbconn']=mysql_select_db(database_name, mysql_connect(server_name,user_name,password)); It does sound like you have notices and warnings turned off in php.ini: Find php.ini (not sure where it installs to in

[PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
Thanks for the advice, Matt, but it doesn't seem to solve my problem. php.ini is in the C:Program Files/WINDOWS directory and error_reporting was set to E_ALL. I found php5ts.dll in the WINDOWS/system32 directory. I copied it to WINDOWS/system, just in case. My install instructions said to

Re: [PHP] Need help with PHP / MySQL connect problem

2005-07-17 Thread Mikey
Matt Darby wrote: Using this at the top of your script will allow PHP and MySQL to interact. $_POST['dbconn']=mysql_select_db(database_name, mysql_connect(server_name,user_name,password)); It does sound like you have notices and warnings turned off in php.ini: Find php.ini (not sure where it

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
Try this just for kicks: ? aslkdjfalsd; ? See if this will output errors. It's rather hard to debug without error messages ;) If I remember correctly, isn't php.ini supposed to be in c:/PHP? Linda H wrote: Thanks for the advice, Matt, but it doesn't seem to solve my problem. php.ini is

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
Try this just for kicks: ? aslkdjfalsd; ? Nope - nothing :-( See if this will output errors. It's rather hard to debug without error messages ;) No kidding! If I remember correctly, isn't php.ini supposed to be in c:/PHP? It came in c:/php5 as php.ini-recommended. My instructions

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Linda H
I added the following to the top of my script: ?php echo phpinfo(); ? Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything that looked obviously wrong, though I don't understand a lot of it. I ried reinstalling MySQL, Apache, and PHP. No change.

Re: [PHP] Install directions for Win2003 SP1??

2005-07-17 Thread disguised.jedi
On 7/13/05, Grosz, Steve (IPG IT) [EMAIL PROTECTED] wrote: Does anyone have a step by step, screenshots would be great, of how to install PHP 4.x on a Win2003 SP1 server? I've tried going through the install instructions on PHP.net's site for windows, but its still not working, so I think

Re: [PHP] Re: Need help with PHP / MySQL connect problem

2005-07-17 Thread Matt Darby
You should definitely see a listing for MySQL in phpinfo()... What order did you install MySQL/PHP/Apache? Linda H wrote: I added the following to the top of my script: ?php echo phpinfo(); ? Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything