[PHP] Power failure = php failure: HELP!

2004-09-14 Thread Justin Rietz
I am running Apache. Xoops, and Squirrelmail on a Fedora 2 server. I recently had a power failure - my daughter turned off my power strip :-( The network card was fried. Anyway, PHP does not seem to be working now. Apache serves static html pages fine, squirrelmail loads in the browser but can'

Re: [PHP] Image question

2004-09-14 Thread Jason Wong
On Wednesday 15 September 2004 08:43, Ed Lazor wrote: > Oop... spoke too soon. I was able to store the image into the database, > but now I can't pull it back out and manipulate it with the gd image > functions. Instead of using the imagejpeg function, I can just echo the > field and the image wil

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
ok, your the boss on this, i give up :) what does experience provide anyways.. the important thing is, i can connect to my mysql database :) Jason "Sam Hobbs" <[EMAIL PROTECTED]> wrote: > > And the relevant portion of that says "external access", which is not > applicable here. I do not see

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
There is an issue with sp2 and loopback, you can argue all you like, but many have had this problem, and many have resolved it. Mysql will not connect through udp, it will use tcp. If you supply a hostname in your connect function, it will use tcpip to connect over a port, if oyu dont supply a hos

Re: [PHP] Nevermind ... Re: OK ... WHY does this work ?????

2004-09-14 Thread -{ Rene Brehmer }-
At 07:30 15-09-2004, Curt Zirzow wrote: * Thus wrote -{ Rene Brehmer }-: > OK, obviously I wasn't awake last night ... figured out what I was actually > doing here ... specifying the index for the 2nd array instead of the value > in the first ... *sigh* *blushes* ... how do you say "tanketorsk" in

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
And the relevant portion of that says "external access", which is not applicable here. I do not see anything else on that page that is relevant. "Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > ok, well, i just posted a link for you to check out, it gives insight o

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jason Davidson wrote: >> The webpage of coarse, is not local, regardless of where its hosted, so >> a firewall will come into play when trying to connect. You dont have >> disable it, i should have been specifc i suppose

RE: [PHP] php - no results - display other message

2004-09-14 Thread Dennis Seavers
mysql_num_rows () will tell you how many rows return in the query > [Original Message] > From: Dustin Krysak <[EMAIL PROTECTED]> > To: PHP <[EMAIL PROTECTED]> > Date: 09/14/2004 9:37:24 PM > Subject: [PHP] php - no results - display other message > > Hi there... I have a simple search page (mysql

Re: [PHP] Nevermind ... Re: OK ... WHY does this work ?????

2004-09-14 Thread Curt Zirzow
* Thus wrote -{ Rene Brehmer }-: > OK, obviously I wasn't awake last night ... figured out what I was actually > doing here ... specifying the index for the 2nd array instead of the value > in the first ... *sigh* *blushes* ... how do you say "tanketorsk" in > English ??? scheißen or ges

Re: [PHP] Display data's from sql file

2004-09-14 Thread raditha dissanayake
T UmaShankari wrote: Hello, I have written a small code for retrieving the contents from the mysql database and display from the user. While display in the browser it is displaying some other contents from the previous row and appending with the original contents. If i give the same query in the

[PHP] Nevermind ... Re: OK ... WHY does this work ?????

2004-09-14 Thread -{ Rene Brehmer }-
OK, obviously I wasn't awake last night ... figured out what I was actually doing here ... specifying the index for the 2nd array instead of the value in the first ... *sigh* *blushes* ... how do you say "tanketorsk" in English ??? anyway, sorry for wasting bandwidth, I'll go hide in the c

Re: [PHP] php - no results - display other message

2004-09-14 Thread Gerard Samuel
Dustin Krysak wrote: Hi there... I have a simple search page (mysql database), and I can get it to display the results no issues, but i was wondering how I could display a message stating there were no results, instead of just having the field blank. I am familiar with IF and ELSE statements, bu

Re: [PHP] Capturing an Image of a web page

2004-09-14 Thread Thomas Goyne
On Tue, 14 Sep 2004 17:45:07 -0700, Vail, Warren <[EMAIL PROTECTED]> wrote: Has anyone run across a tool available to PHP that can render an image of a entire webpage from a URL, so that it can be reduced to a thumbnail and stored in a database? Warren Vail I suppose you could write a complet

[PHP] php - no results - display other message

2004-09-14 Thread Dustin Krysak
Hi there... I have a simple search page (mysql database), and I can get it to display the results no issues, but i was wondering how I could display a message stating there were no results, instead of just having the field blank. I am familiar with IF and ELSE statements, but I am not sure how

[PHP] Display data's from sql file

2004-09-14 Thread T UmaShankari
Hello, I have written a small code for retrieving the contents from the mysql database and display from the user. While display in the browser it is displaying some other contents from the previous row and appending with the original contents. If i give the same query in the mysql prompt that tim

Re: [PHP] Displaying a pdf inline

2004-09-14 Thread Curt Zirzow
* Thus wrote Todd Cary: > Curt - > > Thank you for the quick response. The file is being sent and the PDF > reader does try to open it, but it is corrupted. When I change the > Disposition to > > header("Content-Disposition: attachment; filename=image.pdf") > > and save the file, it cannot b

Re: [PHP] Displaying a pdf inline

2004-09-14 Thread Todd Cary
Curt - Thank you for the quick response. The file is being sent and the PDF reader does try to open it, but it is corrupted. When I change the Disposition to header("Content-Disposition: attachment; filename=image.pdf") and save the file, it cannot be opened do to errors within the file. Yet,

Re: [PHP] Displaying a pdf inline

2004-09-14 Thread Curt Zirzow
* Thus wrote Todd Cary: > After reading the online documentation, it appears that I should be > using the following code, however it does not appear to work. Are there > some obvious errors? >... > header("Content-Type: application/pdf"); > header("Content-Disposition: inline

[PHP] Displaying a pdf inline

2004-09-14 Thread Todd Cary
After reading the online documentation, it appears that I should be using the following code, however it does not appear to work. Are there some obvious errors? if ($row) { $pdf_file = $row->CLM_IMG_FILE; $msg = $pdf_file; $SRC_FILE = "/tmp/" . $pdf_file;

Re: [PHP] Capturing an Image of a web page

2004-09-14 Thread raditha dissanayake
Vail, Warren wrote: Has anyone run across a tool available to PHP that can render an image of a entire webpage from a URL, so that it can be reduced to a thumbnail and stored in a database? Warren Vail nothing is impossible but you will be really really hard pressed to do that. Try java instead

Re: [PHP] Capturing an Image of a web page

2004-09-14 Thread Robby Russell
On Tue, 2004-09-14 at 17:45, Vail, Warren wrote: > Has anyone run across a tool available to PHP that can render an image of a > entire webpage from a URL, so that it can be reduced to a thumbnail and > stored in a database? > > Warren Vail > This would require that PHP act as a web browser..w

Re: [PHP] Security - Semi OT

2004-09-14 Thread Chris Shiflett
--- Dan Joseph <[EMAIL PROTECTED]> wrote: > I am in the process of wrapping up a site for a friend of mine. > It has logins, searching, account information, etc. I am > wondering, does anyone on the list do any security auditing on > the side? Chris, maybe you? Yes, but I might not be a good choic

Re: [PHP] something like an SID

2004-09-14 Thread Dennis Gearon
You make a good point, Marek. They CAN open a new window with different results. Maybe it's up to each page to keep track of where it is at, via form elements alone, instead of through session values. Hadn't thought of that, but it must be the only way. Adding and extra layer to that might end u

[PHP] Capturing an Image of a web page

2004-09-14 Thread Vail, Warren
Has anyone run across a tool available to PHP that can render an image of a entire webpage from a URL, so that it can be reduced to a thumbnail and stored in a database? Warren Vail

RE: [PHP] Image question

2004-09-14 Thread Ed Lazor
Oop... spoke too soon. I was able to store the image into the database, but now I can't pull it back out and manipulate it with the gd image functions. Instead of using the imagejpeg function, I can just echo the field and the image will display in a browser window. How do I restore the data from

[PHP] Security - Semi OT

2004-09-14 Thread Dan Joseph
Hello All, I am in the process of wrapping up a site for a friend of mine. It has logins, searching, account information, etc. I am wondering, does anyone on the list do any security auditing on the side? Chris, maybe you? I figured the best way to tighten it up is to have an outsi

RE: [PHP] Image question

2004-09-14 Thread Ed Lazor
Got it. Thanks Jason. > -Original Message- > > Imagejpeg($im); // successfully displays image > > Use the ob_*() functions to capture the output. See archives for details. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Reminder or answer to check if remote page is linking to you

2004-09-14 Thread Mag
> > I have been searching the archives for the past 2 > > hours without luck, I am looking for an older > thread > > which was discussed on how to connect to a remote > page > > and check if that page was linking back to > blah.com, I > > think it was done via fopen. > > > > If you can tell me eith

Re: [PHP] Image question

2004-09-14 Thread Jason Wong
On Wednesday 15 September 2004 08:05, Ed Lazor wrote: > PHP's creating an image and I'm trying to store it into MySQL. Instead of > raw binary data, all I'm getting is a resource reference. To test this and > keep things as simple as possible, I took and created an image with > createimagefromjpe

[PHP] Image question

2004-09-14 Thread Ed Lazor
PHP's creating an image and I'm trying to store it into MySQL. Instead of raw binary data, all I'm getting is a resource reference. To test this and keep things as simple as possible, I took and created an image with createimagefromjpeg. Here's some example code of what I'm talking about: $url

Re: [PHP] something like an SID

2004-09-14 Thread Marek Kilimajer
Dennis Gearon wrote: I'd like a value to be passed back from every page, if that page was originally passed that value. The two ways that I can think of it, are: 1/ Javascript with some sort of 'onSubmit()' function which causes a minimal form to be submitted via POST or GET 2/ A hidden form val

RE: [PHP] Session time out

2004-09-14 Thread Dan Joseph
Hi, Depending on the time out time set in the php.ini, they will expire after that many minutes of inactivity, or when the browser is closed. -Dan Joseph -Original Message- How do sessions 'time out'? Especially if using and SID in the query string (not a good idea, I know, but

[PHP] Session time out

2004-09-14 Thread Dennis Gearon
How do sessions 'time out'? Especially if using and SID in the query string (not a good idea, I know, but this bypasses cookie timeout and so removes it from timeout methods for this discussion) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] something like an SID

2004-09-14 Thread Dennis Gearon
I'd like a value to be passed back from every page, if that page was originally passed that value. The two ways that I can think of it, are: 1/ Javascript with some sort of 'onSubmit()' function which causes a minimal form to be submitted via POST or GET 2/ A hidden form value, and make every ac

Re: [PHP] php/MYSQL remove duplicate records

2004-09-14 Thread Jason Davidson
you could select out all the DISTINCT email addresses, and delete the table, and repopulate it with your selected rows add a constraint to the table to make email column unique afterwards maybe. Jason Dustin Krysak <[EMAIL PROTECTED]> wrote: > > Hi there - I have an extremely simple table that

[PHP] php/MYSQL remove duplicate records

2004-09-14 Thread Dustin Krysak
Hi there - I have an extremely simple table that has a unique Id and an email address. what I am looking for is an example of a PHP script that will poll the MYSQL database and delete the duplicate records leaving only 1 unique (email) record. can someone point me to the right place? thanks

[PHP] PHP to execute hyperlink?

2004-09-14 Thread Jack Gates
I use an application that has a web browser engine built in and every time I open the app there is some code executing a hyperlink and pulling up a HTML page to a specific place on the page. This action changes according to if it is AM or PM and the date. Example: from 00:00 to 11:59 during th

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
Note that there is a difference between the php_mysqli and the php_mysql extensions. I have both php_mysqli.dll and php_mysql.dll in my PHP501\ext directory, but I don't have the "extension=php_mysqli.dll" line in my php.ini file. Is that something that should be in the php.ini (with a ";" to c

Re: [PHP] OK ... WHY does this work ?????

2004-09-14 Thread Greg Donald
On Tue, 14 Sep 2004 22:32:54 +0200, -{ Rene Brehmer }- <[EMAIL PROTECTED]> wrote: > Unless I misunderstand how PHP make unspecified arrays (and I probably do > since this works), when you have an array of 3 elements on the first > dimenstion like I do, and then ask for $arrlevels[$lvl_guest]['level

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Greg Donald
> Of coarse, this may not be the issue he is having, but it is an issue i > have dealt with before, as retarded as you all seem to think it is. I lost track of who the original poster was, but anyway... Why not disconnect from the internet, turn off all the firewalls, and then see if it works. I

Re: [PHP] replace accents

2004-09-14 Thread -{ Rene Brehmer }-
At 17:51 14-09-2004, Diana Castillo wrote: Anyone know of any function to replace letters with accents with just the regular letter, for instance replace á with a, ç with c, ñ with n ? How about this ??? This is the one I made for this purpose function stripAccents($string) { $returnString = strt

[PHP] OK ... WHY does this work ?????

2004-09-14 Thread -{ Rene Brehmer }-
This is some experimental code I did to try and find a way to recycle the same query multiple times as efficient as possible. With the purpose of efficiently comparing the results of 2 queries where the resultset from both queries won't match in the size (in this sample test it coincidently doe

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
And for more testimonies, sinse i fear im getting absolutely no credit for having any knowledge of mysql and php.. :P (i say that in jest of coarse) search this in google and see how many people fixed the very problem by disabling or adjusting the firewall. http://www.google.ca/search?hl=en&ie=UT

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
Hey, i understand that, :) however, a firewall may restrict _any_ access to a port, and if you are connected thru TCP/IP, then that port may be restricted even if 'local'. It is still a client server relationship regardless where client and server reside. Of coarse, this may not be the issue h

Re: [PHP] Re: how to load extensions outside the extension_dir

2004-09-14 Thread Jasper Howard
when I did this in a shared hosting environment, I looked at phpinfo() running on the server in question, then changed all values in my new php.ini to be the same as the one on the server. You get most of what you need changed by doing that. Plus its almost always a standard install with shared hos

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
ok, well, i just posted a link for you to check out, it gives insight on how mysql connects on different platforms, this will of use to you i think, the last few bullets in the page i linked to are of some importance to your error msg which says, cant connect to localhost, and not, cant connect thr

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
Possible i should have checked your configurations, however, to itterate my point slightly, here is some documentation, you may find it usefull regardless of how you connect to your db. http://dev.mysql.com/doc/mysql/en/Can_not_connect_to_server.html Jason "Sam Hobbs" <[EMAIL PROTECTED]> wrote

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread John Nichel
Jason Davidson wrote: The webpage of coarse, is not local, regardless of where its hosted, so a firewall will come into play when trying to connect. You dont have disable it, i should have been specifc i suppose, you must allow for the mysql port to be open. :) Whats for others to confirm, try it

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
The firewall I am using is ZoneAlarm, the free version. I am nearly certain that it does not allow specific ports to be opened, at least not for specific addresses. So if this were a requirement, probably many others would have that specific problem. However if nothing else works, I will try to

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Also, a google on the error returns hundreds of results.. > http://www.google.ca/search?hl=en&ie=UTF-8&q=Can%27t+connect+to+++MySQL+server+on+%27localhost%27+%2810061%29&btnG=Search&meta= One thing I did find in t

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Chris Dowell
Sam Your problem probably does stem from the extension not being installed. You say you're using (IIRC) mySQL 4.1 This requires you to use the mysqli extension, not the mysql extension As you're on windows, it's probably just a case of uncommenting the extension=php_mysqli.dll line in your php.ini,

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Jason Davidson
The webpage of coarse, is not local, regardless of where its hosted, so a firewall will come into play when trying to connect. You dont have disable it, i should have been specifc i suppose, you must allow for the mysql port to be open. :) Whats for others to confirm, try it yourself and see if i

Re: [PHP] Re: mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
"Andrew Kreps" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 14 Sep 2004 10:11:24 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: >> Also, are the warning messages documented? As I asked in my original >> question, is 10061 an error code? > > 10061 is a generic winsock error fo

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Also, a google on the error returns hundreds of results.. > http://www.google.ca/search?hl=en&ie=UTF-8&q=Can%27t+connect+to+++MySQL+server+on+%27localhost%27+%2810061%29&btnG=Search&meta= Yes, I could have searche

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
"John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I don't know anything about WindowsXP or it's 'firewall', but you _may_ > have to open the port for which you have MySQL running on. I haven't > followed this thread, but if MySQL, and your php enabled webserver are o

Re: [PHP] Confused overSimple PHP mySQL date question

2004-09-14 Thread John Holmes
From: "Scott Miller" <[EMAIL PROTECTED]> I have a mysql database that has a date field and a time field. I want users to be able to enter a date and a time in text boxes on an html form and have them end up in the database. Code examples would be good here. Either way, the format for a DATE field

RE: [PHP] Confused overSimple PHP mySQL date question

2004-09-14 Thread Jay Blanchard
[snip] DATE field in a mysql database. What obvuios thing did I miss? Note I am not using the system date or time stamp, these are entered dates. [/snip] You're using a DATE field in the MySQL database. MySQL requires an ISO formatted date unless you manipulate it, such as 2004-09-14 http://dev.

[PHP] Confused overSimple PHP mySQL date question

2004-09-14 Thread Scott Miller
Hi, I have checked the recent list archives and looked up various PHP functions. I know what I want should be simple but, apparently not simple enought for me. I have a mysql database that has a date field and a time field. I want users to be able to enter a date and a time in text boxes on an

Re: [PHP] Re: mysql_connect does not connect

2004-09-14 Thread Andrew Kreps
On Tue, 14 Sep 2004 10:11:24 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: > Also, are the warning messages documented? As I asked in my original > question, is 10061 an error code? 10061 is a generic winsock error for a timeout, it's not PHP or MySQL specific. It means that the call couldn't conne

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread John Nichel
Sam Hobbs wrote: "Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Windows XP Firewall, or any other firewall for that matter must be off. Jason Can someone else confirm that this is correct? It's not correct. For one thing, when I use MySQL directly outside of a web p

Re: [PHP] Re: mysql_connect does not connect

2004-09-14 Thread John Nichel
Sam Hobbs wrote: When I do try mysqli_connect, I get: Fatal error: Call to undefined function mysqli_connect() So obviously I need to do something to enable that. I will look into that later, but I am still trying to get mysql_connect to work. mysqli : http://us4.php.net/mysqli What error a

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
"Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Windows XP Firewall, or any other firewall for that matter must be off. > Jason Can someone else confirm that this is correct? For one thing, when I use MySQL directly outside of a web page, it works. The sample C pr

[PHP] Re: mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
"Janbro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi I connect to a MySQL 4.1 with the following String: > > > if > ($db_verbin=mysqli_connect("$mysql_host","$mysql_user","$mysql_passw","$DB_n > ame")) > > watch the i in mysqli_connect! > > I think I've read somewhere that you

RE: [PHP] Benchmarking a script

2004-09-14 Thread Gryffyn, Trevor
You will still get the benchmark of the functions, you just declare them outside of your benchmarking loop so they don't get re-declared. Pardon my syntax, I'm just going to try to demonstrate (using the "getmicrotime" function from the PHP manual): Every time you call "dosomething" and "dosom

[PHP] Re: mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
"Janbro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi I connect to a MySQL 4.1 with the following String: > > > if > ($db_verbin=mysqli_connect("$mysql_host","$mysql_user","$mysql_passw","$DB_n > ame")) > > watch the i in mysqli_connect! > > I think I've read somewhere that you

Re: [PHP] replace accents

2004-09-14 Thread Rick Fletcher
Diana Castillo wrote: Anyone know of any function to replace letters with accents with just the regular letter, for instance replace á with a, ç with c, ñ with n ? found this on the strtr() manual page (http://php.net/strtr): 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Œ'

Re: [PHP] replace accents

2004-09-14 Thread Marek Kilimajer
Diana Castillo wrote: Anyone know of any function to replace letters with accents with just the regular letter, for instance replace á with a, ç with c, ñ with n ? $string = str_replace(array('á', 'ç', 'ñ'), array('a', 'c', 'n'), $string); -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] ZIP

2004-09-14 Thread Marek Kilimajer
Juan Pablo Herrera wrote: HI! I need catch many files in my server and make a zip file. In pear i not see nothing. I think use exec for contruction a zip file. Any idea? Regards, JP There are some classes (not in pear) that can create zip files w/out any special extension. google for "php zip clas

Re: [PHP] replace accents

2004-09-14 Thread Greg Donald
On Tue, 14 Sep 2004 17:51:00 +0200, Diana Castillo <[EMAIL PROTECTED]> wrote: > Anyone know of any function to replace letters with accents with just the > regular letter, for instance replace á with a, > ç with c, ñ with n ? str_replace(), eregi_replace() -- Greg Donald http://destiney.com/ -

[PHP] replace accents

2004-09-14 Thread Diana Castillo
Anyone know of any function to replace letters with accents with just the regular letter, for instance replace á with a, ç with c, ñ with n ? -- Diana Castillo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: need curl

2004-09-14 Thread Diana Castillo
I have windows 2000. And the reason I need that version of CURL to work is I need to use this: curl_setopt($curl_interface, CURLOPT_ENCODING, "gzip"); "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > On 09/14/2004 11:46 AM, Diana Castillo wrote: >> I need

RE: [PHP] Convert textarea post data from plain text to html using php..how?

2004-09-14 Thread Gryffyn, Trevor
I stand corrected. Nl2br() is still useful when dealing with outputting data from textarea form elements... If you're outputting to a browser at least. But yes, it only inserts a where there's a \n, it doesn't replace \n and doesn't do anything with \r's. -TG > -Original Message- > Fro

Re: [PHP] ZIP

2004-09-14 Thread Fernando Gutierrez
searching in php.net i found this... http://www.zend.com/zend/spotlight/creating-zip-files1.php On Tue, 14 Sep 2004 12:11:23 -0300 (ART), Juan Pablo Herrera <[EMAIL PROTECTED]> wrote: > HI! > I need catch many files in my server and make a zip file. In pear i not > see nothing. I think use exe

RE: [PHP] Re: image size?

2004-09-14 Thread Ed Lazor
> -Original Message- > Let me explain more fully: > I call a script like this: > > > > The script figures out if the image named in $_GET['file'] is portrait > or landscape, and creates a thumbnail of the same orientation. I would > like to get the x and y values of the image out of t

RE: [PHP] Communicate with Outlook

2004-09-14 Thread Gryffyn, Trevor
Ok, so I was bored.. Attached below is a PHP script that will connect to Outlook via COM and go through all the items in the Calendar, displaying the appointment name, location, FROM and TO date/times (adjusting for the weird assed MS timestamp.. Apparently # of seconds since some time in 1970), a

[PHP] ZIP

2004-09-14 Thread Juan Pablo Herrera
HI! I need catch many files in my server and make a zip file. In pear i not see nothing. I think use exec for contruction a zip file. Any idea? Regards, JP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: need curl

2004-09-14 Thread Manuel Lemos
Hello, On 09/14/2004 11:46 AM, Diana Castillo wrote: I need the latest version of curl , or at least version 7.10.5 , but the last version of php I have has libcurl 7.10.2, how can I upgrade CURL without upgrading php ? (Version 5.0 of php doesnt work) Depending on your system, it may be possible

[PHP] need curl

2004-09-14 Thread Diana Castillo
I need the latest version of curl , or at least version 7.10.5 , but the last version of php I have has libcurl 7.10.2, how can I upgrade CURL without upgrading php ? (Version 5.0 of php doesnt work) -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-3

RE: [PHP] convert degrees to heading

2004-09-14 Thread Gryffyn, Trevor
Very nice solution, Dave. I like simple, elegant and effective solutions like this. I was wracking my brain yesterday to come up with something like this, but my brain wasn't working. Hah. Good job! I think your compass directions are a bit off though.hah. West shouldn't be 0 degrees, it sho

RE: [PHP] Re: MSSQL, PHP and Linux

2004-09-14 Thread Dan Joseph
Hi, > Nope, not paying for it. I think it is just a trial...he has tried > for a few weeks to get the freetds library to work with redhat 9 with > no luck so I think he just now wants to try fedora for the heck of it. > > We have no idea as to why it won't work with Red Hat 9...must me > missing

[PHP] Re: mysql_connect does not connect

2004-09-14 Thread JanBro
Hi I connect to a MySQL 4.1 with the following String: if ($db_verbin=mysqli_connect("$mysql_host","$mysql_user","$mysql_passw","$DB_n ame")) watch the i in mysqli_connect! I think I've read somewhere that you are required to use that for the >4.1 Versions, but you better look that up, I might

[PHP] Re: mysql_connect does not connect

2004-09-14 Thread JanBro
Hi I connect to a MySQL 4.1 with the following String: if ($db_verbin=mysqli_connect("$mysql_host","$mysql_user","$mysql_passw","$DB_n ame")) watch the i in mysqli_connect! I think I've read somewhere that you are required to use that for the >4.1 Versions, but you better look that up, I might

[PHP] Re: mysql_connect does not connect

2004-09-14 Thread JanBro
Hi I connect to a MySQL 4.1 with the following String: if ($db_verbin=mysqli_connect("$mysql_host","$mysql_user","$mysql_passw","$DB_n ame")) watch the i in mysqli_connect! I think I've read somewhere that you are required to use that for the >4.1 Versions, but you better look that up, I might

Re: [PHP] Reminder or answer to check if remote page is linking to you

2004-09-14 Thread John Holmes
From: "Mag" <[EMAIL PROTECTED]> I have been searching the archives for the past 2 hours without luck, I am looking for an older thread which was discussed on how to connect to a remote page and check if that page was linking back to blah.com, I think it was done via fopen. If you can tell me either

[PHP] Reminder or answer to check if remote page is linking to you

2004-09-14 Thread Mag
Hi, I have been searching the archives for the past 2 hours without luck, I am looking for an older thread which was discussed on how to connect to a remote page and check if that page was linking back to blah.com, I think it was done via fopen. If you can tell me either, 1. the name of that thre

[PHP] finding string in string

2004-09-14 Thread JanBro
Hi, I've got the following little function: public function addText($pdf, $xPos, $yPos, $schriftgroese, $text){ /** * @description: Returning Text with automatic linebreak */ $heuhaufen = $text; for ($i=0; $i < substr_count($heuhaufen, "\n") + 1; $i++){ $posStr= stripos ($heuhaufen,"\n");

Re: [PHP] Problem creating a date before 1970 on Fedora

2004-09-14 Thread Wouter van Vliet
On Tue, 14 Sep 2004 11:45:51 +0200, Christophe Chisogne <[EMAIL PROTECTED]> wrote: > Wouter van Vliet a écrit : > >>Note: The valid range of a timestamp is typically from Fri, 13 Dec > >>1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the > >>dates that correspond to the minimum and

Re: [PHP] small query prob in Mysql

2004-09-14 Thread Wouter van Vliet
On Tue, 14 Sep 2004 05:37:30 +, Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Sagar C Nannapaneni: > > > > Hi everybody, > > > > I'm having a database named "items", inthat > > one field name is "itemname" and the contents of > > that field is as follows > > > > Monitor 15" - LG >

RE: [PHP] perl regex in php and multiple escape rules

2004-09-14 Thread Ford, Mike
On 14 September 2004 10:19, Christophe Chisogne wrote: > I'm looking for more detailed information about preg_replace > (and other perl regex functions) than in the php manual, > specifically about different escape rules interaction. [] > The 'pattern' argument is a string, but how does php

RE: [PHP] convert degrees to heading

2004-09-14 Thread Ford, Mike
On 13 September 2004 20:23, Gryffyn, Trevor wrote: > Nice! I didn't know you could do that with switch. I was > wondering why conditionals were left out of PHP's switch > statement, but hoped someone would prove me wrong. Thanks John! > Very helpful! > > -TG > > > -Original Message

Re: [PHP] Re: prob parsing Url

2004-09-14 Thread Wouter van Vliet
On Tue, 14 Sep 2004 13:21:09 +0300, Niklas Lampén <[EMAIL PROTECTED]> wrote: > Urlencode() and urldecode() should help you out. > > Niklas > > > > > Sagar C Nannapaneni wrote: > > Hi folks.. > > > > I'm using a form to send data from one page to another. > > > > one of the input fields in the

Re: [PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Wouter van Vliet
On Tue, 14 Sep 2004 18:32:50 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > On Tuesday 14 September 2004 18:06, Logan Moore wrote: > > Ok I think I figured out my own problem. The speechmarks in the Form break > > up the speech marks in the echo statement so I originally changed the echo > > statem

Re: [PHP] PHP: Supported OS

2004-09-14 Thread Wouter van Vliet
On Tue, 14 Sep 2004 12:12:16 +0200, FireSnake <[EMAIL PROTECTED]> wrote: > Thanks for ur reply. > > I was looking for ports for these OS. > server-side OS, not client-side. > > But i guess Php doesnt support severs with these OS then, > at least i could not find any downloads like i did for Perl.

Re: [PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Jason Wong
On Tuesday 14 September 2004 18:06, Logan Moore wrote: > Ok I think I figured out my own problem. The speechmarks in the Form break > up the speech marks in the echo statement so I originally changed the echo > statements speechmark to a ' which worked but was informed that this was > considered ba

[PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Niklas Lampén
First of all, I'd use something like this: -- CODE -- . Foo -- END -- But the actual error is in the echo. You're having quotation marks inside it. You need to do it my way, or write the form like echo "..."; ?> Niklas Logan Moore wrote: I am currently coding a cms. So f

[PHP] Re: prob parsing Url

2004-09-14 Thread Niklas Lampén
Urlencode() and urldecode() should help you out. Niklas Sagar C Nannapaneni wrote: Hi folks.. I'm using a form to send data from one page to another. one of the input fields in the form has a quotation mark Ex.: samsung 15" monitor in the next page i cant get the text after the " symbol in the fi

[PHP] prob parsing Url

2004-09-14 Thread Sagar C Nannapaneni
Hi folks.. I'm using a form to send data from one page to another. one of the input fields in the form has a quotation mark Ex.: samsung 15" monitor in the next page i cant get the text after the " symbol in the field. I've tried both GET and POST methods. what might b the problem /sagar

Re: [PHP] PHP: Supported OS

2004-09-14 Thread FireSnake
Thanks for ur reply. I was looking for ports for these OS. server-side OS, not client-side. But i guess Php doesnt support severs with these OS then, at least i could not find any downloads like i did for Perl. Marlen "Dan Joseph" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECT

[PHP] Re: Simple Problem about forms and sending info to db

2004-09-14 Thread Logan Moore
Ok I think I figured out my own problem. The speechmarks in the Form break up the speech marks in the echo statement so I originally changed the echo statements speechmark to a ' which worked but was informed that this was considered bad syntax and that maybe I should add a \ in front of all speech

[PHP] Simple Problem about forms and sending info to db

2004-09-14 Thread Logan Moore
I am currently coding a cms. So far I have completed the security login/password system but have now moved on to a new area of php. Uploading info to a database. This is the code as it stands now. Full Name: Email: UserName:

  1   2   >