[PHP] Post URL ?

2005-07-17 Thread Joey
OK I understand the difference between a get & a post but if I just have a URL/link which is calling a function like so: abc.com/display_information?customer_number=$value It passes to the display_information the customer number visably, is there a way to do this where it's not visable? Thank

[PHP] Re: jpgs into database

2005-07-17 Thread Jasper Bryant-Greene
George B wrote: is it possible to put in a jpg file into a database? I am trying to make like a catalong and have all the files (including pics) and everyone can see. is this possible? Sure -- if you're using a MySQL database, just use a BLOB field and put the data in as you would a string o

[PHP] jpgs into database

2005-07-17 Thread George B
is it possible to put in a jpg file into a database? I am trying to make like a catalong and have all the files (including pics) and everyone can see. is this possible? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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: Got all sorts of environment and path info. Not anything about MySQL, but I didn't see anything that looked obviously wron

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 th

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: 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. Linda -- PHP General

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

2005-07-17 Thread Linda H
Try this just for kicks: 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 were to move it to c

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

2005-07-17 Thread Matt Darby
Try this just for kicks: 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 in the C:Program File

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 w

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

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

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

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 th

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: 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] 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 "googlebot"s). 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 browscap

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

[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   and such, wich completelly break the design. Has anyone succeded on doing such a thing? phpclasses.org won't h

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 tha

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

[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. Anyone

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   and

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 y