Re: [PHP] Getting QUALITY text on an image

2002-03-27 Thread Rasmus Lerdorf
This is a bug in GD2 - When you use Truecolor images with GD2, anti-aliasing of ttf fonts break. This is fixed in GD-2.0.2. You don't seem to have all that many colours on those certificates. Try simply using an indexed image just to see the real quality you can get with GD+TTF before

Re: [PHP] Getting QUALITY text on an image

2002-03-27 Thread heinisch
At 26.03.2002 23:56, you wrote: Here's the situation. I run the website for a macintosh user folding@home team. We are providing certificates for users who have done a signifigant amount of work for the team. I have jpeg templates and I'm using ImageTTFBBox and ImageTTFText to write the

Re: [PHP] imap and POP3?

2002-03-27 Thread Jason Wong
On Wednesday 27 March 2002 16:25, Jason Caldwell wrote: Can anyone give me the quick and easy on IMAP and POP3 ? What I want to do is, check my POP3 server for messages, download those messages into my MySQL DB. I want to retrieve the FROM, SUBJECT, HEADER and BODY from the messages and

[PHP] Create table

2002-03-27 Thread Uma Shankari T.
Hello, Can anyone please tell me how to create a table in mysql using php code.. -Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I am new

2002-03-27 Thread S.Murali Krishna
This is not really PHP stuff anyway see here.. This is possible with Javascript which can be placed in your link to refresh the frames a href=javascript:some_js_function(); ... inside the function you can change source of one or more frames if you know javascript parent.frame1.src = ..

Re: [PHP] Create table

2002-03-27 Thread Jason Wong
On Wednesday 27 March 2002 16:51, Uma Shankari T. wrote: Hello, Can anyone please tell me how to create a table in mysql using php code.. sigh This is really basic stuff. Please take a look at the numerous tutorials out the on the world wide web. -- Jason Wong - Gremlins Associates -

Re: [PHP] Getting QUALITY text on an image

2002-03-27 Thread Michael A. Peters
I thought about that. I may do that if I can't clean it up another way. On Wed, 27 Mar 2002 02:01:16 -0600 (CST) Miguel Cruz [EMAIL PROTECTED] mentioned: I can't imagine you'll ever get results that are to anyone's satisfaction using JPEGs unless they aren't wearing their glasses. How about

[PHP] Re: Trans_sid

2002-03-27 Thread liljim
Hi Rick, I asked this same question to an ISP I'm with, and was told that it's only possible through a re-compile. The way I got around it is this: I created a function to check whether SID was present (it only is when the session is first invoked, and from there on if the user doesn't have

Re: [PHP] How to get user full name using PHP function?

2002-03-27 Thread gaukia 345
Thanx Miguel. The from-personal variable is an IMAP header to be sent out. I open a pipe to sendmail, but since I'm running Postfix, the sendmail -f (for fullname) option wouldn't work. As a result the receiver gets Apache User as value for the from-personal member. Do you know how to insert

[PHP] PHP-Compiling roxen and apache

2002-03-27 Thread Lothar Frank
hi folks, to compile PHP4 i need apache AND roxen being installed in my development distribution. BUT if i install apache AND roxen the same time it conflicts together and no webserver is running anymore. the building of PHP is working well if i have installed both. does anybody know a workaround

[PHP] xslt_set_sax_handlers

2002-03-27 Thread Alexey N.Kolomoets
Hello, Could you help me: I really need to use the follow function: xslt_set_sax_handlers I've not found documentation on this function. I use PHP version 4.1.1. Does this function work or not in this version? Thank you in advance, Sincerely, Alexey -- PHP General Mailing List

Re: [PHP] Using EditPlus with PHP

2002-03-27 Thread Sijan Khadka
This is what i have in EDITPLUS tools Menu text :PHP Syntax Check Command :c:\intraserver\php\php.exe Argument: -l -f $ (FileName) And I have checked 'Capture output' Sijan Khadka [EMAIL PROTECTED] -Original Message- From: Luca Grossi [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] Getting QUALITY text on an image

2002-03-27 Thread Michael A. Peters
Thank you. I sent an e-mail to them explaining my problem and asking for gd 2.0.2 On Wed, 27 Mar 2002 00:15:02 -0800 (PST) Rasmus Lerdorf [EMAIL PROTECTED] mentioned: This is a bug in GD2 - When you use Truecolor images with GD2, anti-aliasing of ttf fonts break. This is fixed in GD-2.0.2.

[PHP] Re: PHP, DB, images, ODBC

2002-03-27 Thread Cirstoiu Aurel Sorin
You will have to build another page that receive a parameter(let's say the index of the pic from the database) and return the image. In this page you'll have to set the Content-Type first using: header(Content-Type: image/jpeg) or header(Content-Type: image/gif) or header(Content-Type: image/png)

[PHP] how to close an http connection BUT carry on processing

2002-03-27 Thread Peter Clarke
I'm looking for a way to close the connection with the browser yet have the script carry on doing some processing. Any ideas? Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Comparrison

2002-03-27 Thread Ron
How would I compare to variables where I would want one variable to equal only part or some of the other variable? Here is the code ? if ($HTTP_USER_AGENT !== %MSIE 5.5%) { print You must upgrade your browser; } else { exit; } ? Any suggestions -- PHP General Mailing List

Re: [PHP] Comparrison

2002-03-27 Thread Edward van Bilderbeek - Bean IT
use regular expressions: if (ereg(MSIE 5.5, $HTTP_USER_AGENT)) { } Greets, Edward - Original Message - From: Ron [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 27, 2002 1:46 PM Subject: [PHP] Comparrison How would I compare to variables where I would want one

[PHP] Re: Comparrison

2002-03-27 Thread Adrian Ciutureanu
http://php.net/ereg Ron [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... How would I compare to variables where I would want one variable to equal only part or some of the other variable? Here is the code ? if ($HTTP_USER_AGENT !== %MSIE 5.5%) { print You

[PHP] Loop non-fixed sized array

2002-03-27 Thread Julio Nobrega Trabalhando
Hi All! Here's something I am trying to do, and I don't know if it's possible. I have a function that must register session variables, values that come from an array. But each of these values will be the value of an session array, of non-fixed size. Let me explain (w and d stands for

php-general Digest 27 Mar 2002 13:15:24 -0000 Issue 1251

2002-03-27 Thread php-general-digest-help
php-general Digest 27 Mar 2002 13:15:24 - Issue 1251 Topics (messages 90299 through 90357): Re: which php book 2 buy ? 90299 by: Vail, Warren (null) 90300 by: Vlad Kulchitski 90303 by: eric.coleman.zaireweb.com 90305 by: Miguel Cruz 90307 by: Vlad

RE: [PHP] how to close an http connection BUT carry on processing

2002-03-27 Thread Rick Emery
Why? -Original Message- From: Peter Clarke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 6:03 AM To: [EMAIL PROTECTED] Subject: [PHP] how to close an http connection BUT carry on processing I'm looking for a way to close the connection with the browser yet have the script

[PHP] Re: Followup: Loop non-fixed sized array

2002-03-27 Thread Julio Nobrega Trabalhando
Is there a way to make an array with only the key defined? That maybe will help me. $area = array('news' = array('admin')); print_r($area) gives me: Array ( [corporativo] = Array ( [0] = classificados ) ) The key is '0', I need key 'classificados' without a value, so I can make this:

[PHP] dfdf

2002-03-27 Thread lv87
dfdfdfdfdf

[PHP] dfdf

2002-03-27 Thread lv87
it's only a test. i'm a new subscribed

[PHP] File Upload

2002-03-27 Thread Jesse Warden
I am having a problem with a file upload. When I submit the file, I get an error saying Could not open the file for reading: No such file or directory exists.. However, when looking on the C drive (windows) where I have the file and browsed for it using the Browse button, it certainly is there.

[PHP] Keeping PHP out?

2002-03-27 Thread SpyProductions Support Team
Does anyone know if there is such a thing, maybe by writing in perl or even writing in a configuration file, as keeping PHP out of a certain directory or directory structure? I'm trying to figure out why PHP is not working in one of my directories; I can tell you there is a good amount of

RE: [PHP] Create table

2002-03-27 Thread J. Scott Johnson
Here you go: ? // // // EXAMPLE OF CREATING A MYSQL TABLE WITH PHP // // // // // include common routines -- gives the db variables for dbhost, dbuser, dbpassword, db

[PHP] Re: Keeping PHP out?

2002-03-27 Thread J Smith
What are the permissions like on that directory? Does the user/group that runs your PHP process have read permissions on that directory? J Spyproductions Support Team wrote: Does anyone know if there is such a thing, maybe by writing in perl or even writing in a configuration file, as

RE: [PHP] Re: Keeping PHP out?

2002-03-27 Thread Collins, Robert
Also make sure that the directory is below the doc_root that is set in the php.ini file ie: - php.ini - doc_root = /html - directory example - |-/root |-/http |-/cgi-bin (PHP will not run here)

Re: [PHP] Where is php.ini on Mac OS X?

2002-03-27 Thread Steve Cayford
On mine it's in /usr/local/lib, but I seem to recall discussion earlier about some OSX installations lacking the ini file. -Steve On Tuesday, March 26, 2002, at 04:53 PM, Chuck PUP Payne wrote: Can some one please tell me where php.ini is located on Mac OS X? Thanks, Chuck Payne Magi

[PHP] ping

2002-03-27 Thread Chris Grigor
Hey all has anyone written a script to check if a host is alive - like a ping script ? Chris Grigor 2nd Line Support Tel : +27 11 340 7390 Fax : +27 11 340 7345 E-Mail : [EMAIL PROTECTED]

[PHP] Re:[PHP]imap and POP3

2002-03-27 Thread Jon Farmer
What I want to do is, check my POP3 server for messages, download those messages into my MySQL DB. I want to retrieve the FROM, SUBJECT, HEADER and BODY from the messages and place them in the corresponding mysql fields. This script I wrote last summer may help you some what.. it handles

Re: [PHP] xslt_set_sax_handlers

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 04:11 AM, Alexey N.Kolomoets wrote: Hello, Could you help me: I really need to use the follow function: xslt_set_sax_handlers I've not found documentation on this function. I use PHP version 4.1.1. Does this function work or not in this version?

RE: [PHP] ping

2002-03-27 Thread Christoph Starkmann
Hi CHris! has anyone written a script to check if a host is alive - like a ping script ? Something like this? BTW, any hints to weak or wrong code are welcome, I'm not this experienced with PHP ;) Cheers, Kiko P.S.: There are some formatting strings and some variables stored in

RE: [PHP] ping

2002-03-27 Thread SHEETS,JASON (Non-HP-Boise,ex1)
Hi Chris, Have a look at http://www.hotscripts.com/PHP/Scripts_and_Programs/Networking_Tools/Ping/ There are 3 ping scripts there. Jason -Original Message- From: Chris Grigor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 8:48 AM To: Php-General-List (E-mail) Subject:

[PHP] post_max_size

2002-03-27 Thread Fabio Tordi
Hi I've this problem whit file uploading: if file size is greater than php.ini's post_max_size attribute my php script run, but all HTTP_POST_VARS is erased!! why this? I'd like to catch this event show a warning to user. How can I get that? Thanx ! Fabio -- PHP General Mailing List

[PHP] Question on eval()

2002-03-27 Thread heinisch
Hi Folks, I save an ascii-sentence, representing my vars and their values in the db after I request them, I try to eval them. here is what I get back from the db $scar=\3\;$anrede=\Herr\;$pf_name=\wert\;$pf_kontem=\tzrtzetrz\;$pf_kontel=\zuoioopöl\;$zeit=\\;$pf_wt=\löjlköjklö\;$sto=\2\; (values

[PHP] Re: OT Re: [PHP] Re: which php book 2 buy ?

2002-03-27 Thread Rasmus Lerdorf
Erik, I asked an editor at O'Reilly about this cover issue. Here is the response: We did switch to wite spines with black letters for a while, but now we've switched back to our original colored spines with white letters. Trust me, you don't want to know the sordid details... -Rasmus On

[PHP] Re: OT Re: [PHP] Re: which php book 2 buy ?

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 11:35 AM, Rasmus Lerdorf wrote: Erik, I asked an editor at O'Reilly about this cover issue. Here is the response: We did switch to wite spines with black letters for a while, but now we've switched back to our original colored spines with white letters.

[PHP] accessing a mysql column by number

2002-03-27 Thread Phil Schwarzmann
Is there a way to access a column in Mysql just by using a number? Like if you had three columns called column1, column2, and column3 and I wanted to access column3 just by using the number 3 Thanks! Phil

[PHP] Re: Question on eval()

2002-03-27 Thread Julio Nobrega Trabalhando
Maybe parse_str() will do the trick? I am using it in a close situation, I store: a=1b=1 And $a has value 1, $b has value 2. But I guess to work in your case you would need to stripslashes(); and str_replace(';', '', $string) before the parse_str(); -- Julio Nobrega. Um dia eu

[PHP] escaping PHP's closing tags

2002-03-27 Thread Erik Price
Hi -- I'm trying to use a string of XML data which includes the use of the ?xml ? tags. I've noticed that my editor (BBEdit) shows that \? will escape the tag so that PHP does not treat it as a true close the PHP code tag, but was hoping that someone here could give me an official ruling.

RE: [PHP] Question on eval()

2002-03-27 Thread Rick Emery
Note that vars[1] is created with ' ' so that the $-names are not interpreted. I assume that when the text is read from the file, it comes with the $s and the ending semi-colon (;). ?php $vars[1] = '$scar=\3\;$anrede=\Herr\;$pf_name=\wert\;$pf_kontem=\tzrtzetrz\;$pf

[PHP] Re: escaping PHP's closing tags

2002-03-27 Thread Julio Nobrega Trabalhando
Haven't seen it either, but you could use: echo '' . '?'; So is separated from ?. Or ? from for the matter. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho?

[PHP] Copying Column names into a row

2002-03-27 Thread Phil Schwarzmann
Is there a way to copy the column names in a MySQL table into a row ? Thanks!

[PHP] Question on eval()

2002-03-27 Thread heinisch
Hi Folks, I save an ascii-sentence, representing my vars and their values in the db after I request them, I try to eval them. here is what I get back from the db $scar=\3\;$anrede=\Herr\;$pf_name=\wert\;$pf_kontem=\tzrtzetrz\;$pf_kontel=\zuoioopöl\;$zeit=\\;$pf_wt=\löjlköjklö\;$sto=\2\; (values

RE: [PHP] accessing a mysql column by number

2002-03-27 Thread Rick Emery
$row = mysql_fetch_row($result); $val1 = $row[0]; $val2= $row[1]; $val3 = $row[2]; -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 10:51 AM To: [EMAIL PROTECTED] Subject: [PHP] accessing a mysql column by number Is there a way to

RE: [PHP] Question on eval()

2002-03-27 Thread Rick Emery
why did you re-post this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 9:33 AM To: [EMAIL PROTECTED] Subject: [PHP] Question on eval() Hi Folks, I save an ascii-sentence, representing my vars and their values in the db after I

RE: [PHP] Copying Column names into a row

2002-03-27 Thread Rick Emery
mysql_field_name() mysql_list_fields() -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 10:55 AM To: [EMAIL PROTECTED] Subject: [PHP] Copying Column names into a row Is there a way to copy the column names in a MySQL table into a row

Re: [PHP] Re: escaping PHP's closing tags

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 12:03 PM, Julio Nobrega Trabalhando wrote: Haven't seen it either, but you could use: echo '' . '?'; So is separated from ?. Or ? from for the matter. That's a good workaround. I'll use that until I hear from above. Erik Erik Price

RE: [PHP] ping

2002-03-27 Thread Chris Grigor
Hey Christoph Thanks for your script, Ive just finished this one, its not that good but it works html head title /title /head style body, td { font-family: Verdana, Arial, Helvetica, Geneva, sans-serif; font-size: 8pt; color: black; font-weight: normal; } h1 { font-family: Verdana,

[PHP] syntax

2002-03-27 Thread John Fishworld
Can someone please remind me what the correct syntax for this is ! in a loop and want individual $ned_1_city = blah $ned_2_city = blur I've been trying this but its wrong $ned_.$i._city = $ned_city ; thanks john -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] syntax

2002-03-27 Thread Darren Gamble
Good day. I believe that one would have to use the eval() statement to construct that syntax. You probably would be much better off using an array to store this information. If you are trying to read form data, then construct your form names so that the results will be put into an array by

Re: [PHP] syntax

2002-03-27 Thread John Fishworld
Sorry I think I've badly explained this ! I'm getting results from mysql in a while loop but I need the results outside of the loops and so what I want to do is take the first variable from the db and rename it as variable 1 and then before the end of the while loop have a $i++; so i want

Re: [PHP] syntax

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002, John Fishworld wrote: so i want $newvar_$i = result 1 $newvar_$i = result 2 so I can use them outside the loops as $newvar_1 and $newvar_2 Why don't you use an array? That's what they're for. Nevertheless, $i = 1; $varname = newvar$i; $$varname = result 1;

Re: [PHP] syntax

2002-03-27 Thread Julio Nobrega Trabalhando
Make it this way: Looping first. I will loop with while: $i = 0; $array = Array(); while (list($value) = mysql_fetch_array($result)) { $array[$i] = $value; $i++; } Arrays are easier :-) Each $i will be a key. -- Julio Nobrega. Um dia eu chego lá:

RE: [PHP] syntax

2002-03-27 Thread Darren Gamble
Good day, In this situation, you should use an array to store the results. Please check PHP's documentation for more information on how to use arrays. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4

RE: [PHP] File Upload

2002-03-27 Thread Joel Caturia
This sounds similar to what I am having, but not exactly. What version of PHP are using, and on what platform? My problem is the files don't actually appear on the filesystem, yet all of the internal functions in PHP that allow me to manipulate the files appear to work. I'm using v4.1.2, and

[PHP] class question 2

2002-03-27 Thread Caspar Kennerdale
Sorry Another question- Do instances of classes remain in 'communication' with each other if declared my different functions in a case switch statement. At present I have an admin.php which is one long swtich statement. Wihin each is a list iof functions which created the elements of the page

[PHP] Class/ DB Question

2002-03-27 Thread Caspar Kennerdale
I'm in the slow process of transferring my contetn management system over to full object oreinted code. I have a function within a class which gets the field name and type information from a mysql table, puts this into an array and then returns a table with a form field for each field. I

RE: [PHP] Question on eval() SOLVED

2002-03-27 Thread heinisch
At 27.03.2002 10:54, you wrote: Rick thank you, the problem wasn´t ' ', but stripslashes. The data come from a database, so no ' s come with them. That´s good to see, if you send selects via terminal directly to mysql. Thanks again Oliver Note that vars[1] is created with ' ' so that the

[PHP] variables within variables - question

2002-03-27 Thread Phil Schwarzmann
Im having a VERY hard time trying to explain this Here is a bit of my code... for ($i = 0; $i $num_fields; $i++) { $field = mysql_field_name($result, $i); $field2 = .$field; $output = str_replace($field2, $field), $output); } The problem I'm having here is that the variable $field

RE: [PHP] class question 2

2002-03-27 Thread Rick Emery
Objects which are instantiated from classes on one page are not available on the next page. You have to use session functionality. -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 8:17 PM To: Php-General-List (E-mail) Subject: [PHP]

RE: [PHP] variables within variables - question

2002-03-27 Thread Rick Emery
$field2 = .$$field; -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 12:33 PM To: [EMAIL PROTECTED] Subject: [PHP] variables within variables - question Im having a VERY hard time trying to explain this Here is a bit of my

[PHP] Adding stuff to the end of strings

2002-03-27 Thread David Johansen
I was just wondering if there was a way to add new text to the end of strings. I tried doing $message += Some text here; but that just set $message to 0. I'm sure it's something simple but I couldn't find anything on it in the documentation. Dave -- PHP General Mailing List

RE: [PHP] Adding stuff to the end of strings

2002-03-27 Thread Johnson, Kirk
Close! $message .= Some text here; Kirk -Original Message- From: David Johansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 12:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Adding stuff to the end of strings I was just wondering if there was a way to add new text

RE: [PHP] Adding stuff to the end of strings

2002-03-27 Thread Rick Emery
$message .= Some text here; -Original Message- From: David Johansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 1:03 PM To: [EMAIL PROTECTED] Subject: [PHP] Adding stuff to the end of strings I was just wondering if there was a way to add new text to the end of strings.

[PHP] Nevermind I figured it out

2002-03-27 Thread David Johansen
I just user $message = $message . Some text; But is there a better way to do this with something like the += operator? Dave David Johansen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I was just wondering if there was a way to add new text to the end of

RE: [PHP] Adding stuff to the end of strings

2002-03-27 Thread J. Scott Johnson
Shouldn't this work: $string = $string . Some text added to the end; Or am I thinking your question is simpler than it really is? * * * * * * * * * * * * * * * * * * * * * * * * * * J. Scott Johnson PHP Consulting and Design Work * * * * * * * * * * * * * * * * * * * * * * * * * * Virtual:

RE: [PHP] Nevermind I figured it out

2002-03-27 Thread Darren Gamble
Good day. As you may have guessed by now, the .= operator does what you want. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: David Johansen

Re: [PHP] syntax

2002-03-27 Thread Jan Rademaker
On Wed, 27 Mar 2002, John Fishworld wrote: use this: ${ned_.$i._city} = $ned_city; after that you can use your new var as $ned_1_city, if $i was 1 ofcourse... But in this case you might be better off using arrays, as some have suggested. Can someone please remind me what the correct syntax

[PHP] Deleted Files

2002-03-27 Thread Jesse Warden
It seems that in using the PHP delete file function, I have inadvertently deleted the root folder instead, waxing the majority of my PHP files. Is there a recovery mechanism on Windows or am I getting burned by playing with fire? J ** Scanned for Viruses ** -- PHP General Mailing List

[PHP] TurboPHP ?

2002-03-27 Thread miguel valero
Dear friends, Is anyone familiar with TurboPHP and has anyone ever tried to develop a real application (perhaps in the accounting field) with this editor. I would like to know the feasibility and practicality of using this editor to develop an accounting application. I also would like to know

[PHP] Regex Form Filter Help

2002-03-27 Thread James Taylor
I have a site where users can type whatever they want in and it posts it to a database. I'm trying to eliminate whatever types of abuse I can think of, and, since I'm using nl2br on the posts, I'm afraid a user might just hold down enter for a couple of seconds and scroll everything off the

Re: [PHP] Deleted Files

2002-03-27 Thread Rogier Barendse
At 27.03.2002 14:27, you wrote: It seems that in using the PHP delete file function, I have inadvertently deleted the root folder instead, waxing the majority of my PHP files. Is there a recovery mechanism on Windows or am I getting burned by playing with fire? J Look in your wastebin or how

[PHP] Require variable declaration?

2002-03-27 Thread Kjell Hansen
Hi, I've just started making my database/PHP-scripts and I'm used to, from my earlier development, have my variables declared at the top of each routine. But I can't find the command that would force me to declare my variables and I can't find the declare statement either. Is there a way to do

RE: [PHP] Require variable declaration?

2002-03-27 Thread Rick Emery
PHP is weakly typed. Therefore, definitions are not needed. A variable may assume any guise depending upon its context. -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 2:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Require variable

RE: [PHP] Require variable declaration?

2002-03-27 Thread Demitrious S. Kelly
You don't need to do this with PHP... a variable is created when you assign a value to it. It is also unnecessary to assign a type. PHP will typecast automatically as necessary -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 12:47 PM To:

Re: [PHP] Require variable declaration?

2002-03-27 Thread Kjell Hansen
That's too bad, I used to do some ASP which is weakly typed too but I still could use Option Explicit to require variables to be declared. Then a small typo would produce very hard-to-find errors. Well, I guess I have to live with it. Can I add it to a PHP5-wishlist? Thanx /Kjell -

[PHP] cookies

2002-03-27 Thread Scott St. John
Help! I have not had a need to use sessions or cookies on PHP until now. My experience has been to use Sessions in ASP. I am building a system to have users log in and then drop a cookie on their machine so they can log onto other apps. It's an internal app. The cookie will contain a

RE: [PHP] Require variable declaration?

2002-03-27 Thread Rick Emery
There has been some discussion at zend.com to add this to PHP5/engine 2.0. However, the idea was rejected. -Original Message- From: Kjell Hansen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 2:54 PM To: Rick Emery; [EMAIL PROTECTED] Subject: Re: [PHP] Require variable

RE: [PHP] Regex Form Filter Help

2002-03-27 Thread Demitrious S. Kelly
Why not just limit it to one br? ?php $string=blahbrbrbrbrbrbrbrbrbrstuff; while ( stristr($string, 'brbr') ) { $string=str_replace('brbr', 'br', $string); } echo $string; ? something like that would wok well enough... -Original Message-

[PHP] Query bug

2002-03-27 Thread Daniel Ferreira Castro
I have a problem. I have those tables on my database: mysql use projeto; Database changed mysql show tables; +---+ | Tables_in_projeto | +---+ | ALGORITMO | | ATAS | | MANUAIS | | PROJETO | | REFERENCIAS | |

RE: [PHP] Require variable declaration?

2002-03-27 Thread Johnson, Kirk
You can catch typos by setting the error reporting level to E_ALL (in php.ini). PHP will then give you a warning whenever a variable is used before it has been assigned a value. Kirk That's too bad, I used to do some ASP which is weakly typed too but I still could use Option Explicit to

RE: [PHP] preventing back button usage?

2002-03-27 Thread Darren Gamble
Good day, This can be accomplished in a few ways. The easiest way is to tell the client not to cache the page. And yep, you do this via headers. In PHP (attempting to hit as many types of browsers as possible): header(Cache-Control: no-store, no-cache, must-revalidate); header(Pragma:

Re: [PHP] Query bug

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 04:00 PM, Daniel Ferreira Castro wrote: I want to select the fields nome,id_proj,arquivo FROM ALGORITMO and ATAS. But when I use the query below, I receive the error ERROR 1052: Column: 'nome' in field list is ambiguous. What is wrong on my query? query:

Re: [PHP] while loop: detect next loop?

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 04:11 PM, Matt Friedman wrote: When you have all your items in an array use implode to add a character in between every item. $str = implode($yourArray, $separator); This will add the separator to the end of each string except the last one. I like that

Re: [PHP] Query bug

2002-03-27 Thread Daniel Ferreira Castro
This way works, but not the way i would like to. Because it selects just the fields nome,id_proj and arquivo from the table ALGORITMO, and here my goal is to select those fileds of ALGORITMO and ATAS. Erik Price [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] imap problems

2002-03-27 Thread Duncan
Hi, i uploaded a script, which checks my inbox for new messages by using the imap extension for php. However, everything was working just fine, but now every time i try to access my script, i get a server not found error and the logs say: [Wed Mar 27 21:21:13 2002] [notice] child pid 11854

[PHP] Re: Comparrison

2002-03-27 Thread Steve Clay
Ron, You probably want strstr(). or stristr(). Just as a usability recommendation on you code below, please don't restrict your pages to IE only.. This would be better: if (!strstr($HTTP_USER_AGENT,MSIE 5.5) { print Please note this page has functionality designed for IE5.5; } Users of

Re: [PHP] Query bug

2002-03-27 Thread Erik Price
On Wednesday, March 27, 2002, at 04:28 PM, Daniel Ferreira Castro wrote: This way works, but not the way i would like to. Because it selects just the fields nome,id_proj and arquivo from the table ALGORITMO, and here my goal is to select those fileds of ALGORITMO and ATAS. Then why

[PHP] New php functions?

2002-03-27 Thread charlesk
I went to php.net wnating info on the date() function. To my surprise the word date was already in the search for field. Has PHP developed some new functions? Possible code ? $question = read_psychic_aura(user); $answer = answer_question($question); echo $answer; ? If not are these ever

RE: [PHP] New php functions?

2002-03-27 Thread Jason Murray
I went to php.net wnating info on the date() function. To my surprise the word date was already in the search for field. It was probably the last thing you looked for there. I know I constantly go back to look up Date() placeholders. :) J -- PHP General Mailing List

[PHP] odbc_fetch_array() Not Available?

2002-03-27 Thread eric.coleman
I am running php 4.1.1, and when i try to use odbc_fetch_array, it says Call to undefined function Why is this? Thanks, Eric

Re: [PHP] imap problems

2002-03-27 Thread Duncan
hm, maybe reinstall imap? Can i simply reinstall it, or do i also have to configure php again, if i do so? Regards, Hendrik

[PHP] serialize()

2002-03-27 Thread Rodrigo Peres
Hi list, I've already look at the php manual but couldn't figure out a way to use serialize to solve my problem. I have a form, with many fields like (name, age, adress, state), that I put a save button. This button allows my user to save the fields already filled in order to finish the form

RE: [PHP] how to close an http connection BUT carry on processing

2002-03-27 Thread Martin Towell
look at ignore_user_abort() http://www.php.net/manual/en/function.ignore-user-abort.php but make sure your script doesn't go into an infinate loop anywhere, otherwise you'll have to kill the process manually caught me once on a rare occasion.. :/ -Original Message- From: Rick Emery

RE: [PHP] class question 2

2002-03-27 Thread Martin Towell
once their instantiated, they're just like any other variable - that is: if a normal variable, declared in the same place as the object, is accessable in another function, then the object will be too. HTH Martin -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]

[PHP] preg_replace - regex for replace string

2002-03-27 Thread James Taylor
I'm trying to do something to the effect of this for a preg_replace statement: $string = Hello\n\n\n\n\n\n\nHow are you?\n\n\n\n\n\n\n\nHi; $string = preg_replace(/\n\n/, /\n/, $string); But, it appears the 'replace' portion of the function doesn't allow for regex. How can I do this so that

Re: [PHP] preg_replace - regex for replace string

2002-03-27 Thread Miguel Cruz
On Wed, 27 Mar 2002, James Taylor wrote: I'm trying to do something to the effect of this for a preg_replace statement: $string = Hello\n\n\n\n\n\n\nHow are you?\n\n\n\n\n\n\n\nHi; $string = preg_replace(/\n\n/, /\n/, $string); But, it appears the 'replace' portion of the function

  1   2   >