Re: [PHP] The future of PHP

2001-08-25 Thread Greg Beaver
As a small business owner (partner, actually), I can address this question below: Manuel Lemos [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... AFAIK, it costs a lot more money to have any start and operate a e-commerce business than a telephone. What is the

[PHP] Error

2001-08-25 Thread Martin Kampherbeek
I still get this error. Can someone help me to solve this? MySQL Query Failed. Error 1030: Got error -1 from table handler $query = SELECT * FROM question WHERE answer'1' AND id250 ORDER BY id; $result = mysql_query($query) or die('MySQL Query Failed. Error '.mysql_errno().': '.mysql_error());

RE: [PHP] Error

2001-08-25 Thread Don Read
On 25-Aug-2001 Martin Kampherbeek wrote: I still get this error. Can someone help me to solve this? MySQL Query Failed. Error 1030: Got error -1 from table handler $query = SELECT * FROM question WHERE answer'1' AND id250 ORDER BY id; $result = mysql_query($query) or die('MySQL Query

Re: [PHP] Error

2001-08-25 Thread Martin Kampherbeek
This is what I get: allach.question repair error The handler for the table doesn't support check/repair - Original Message - From: Don Read [EMAIL PROTECTED] To: Martin Kampherbeek [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, August 25, 2001 9:32 AM Subject: RE: [PHP]

[PHP] Re: Displaying all variables currently set?

2001-08-25 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Ken) wrote: Is there a way to get PHP to list the names and/or contents of all variables? http://php.net/manual/en/function.get-defined-vars.php -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] global variable.

2001-08-25 Thread nafiseh saberi
hi. I want to use glabal variable. ? global $a; ? but it doesnot work?? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Re: send mail to mailing list using mail() or smtp?

2001-08-25 Thread Niklas Lampen
I'm sending a huge amount of mails with php. How can I send mail directly to the smtp server? Right now I'm using pipe to send each mail to sendmail. Works fine with about 35 000 mails, but it takes ages to run. What would be the smartest way? Thanks! -Original Message- From: Richard

[PHP] Re: File Upload and NT...

2001-08-25 Thread Adrian D'Costa
Hi, I had this problem. If you say that even without the getimagesize() it is not being uploaded. Then try this. If you declared $the_image in the input type=file name=the_image try using $the_image_name. From the manual this is what I figured out and it works (on linux) In PHP, the

[PHP] Re: text wrap in table

2001-08-25 Thread Adrian D'Costa
Hi, I got the answer from one earlier mail. I used nl2br(). It does just what I want. Adrian On Fri, 24 Aug 2001, Adrian D'Costa wrote: Hi, I am creating a program for a newspaper to publish their article online. There is a form what allows them to cut and past from their editors

[PHP] Re: HELP!!!

2001-08-25 Thread BRACK
I'm not sure if it's right solution but I did this - $ins_u = mysql_query(INSERT INTO users (name,email) VALUES ('$u_name','$u_email')); $userid = mysql_insert_id(); instead for this - $ins_u = @mysql_query(INSERT INTO users (name,email) VALUES ('$u_name','$u_email')); $userid =

[PHP] global variable again?

2001-08-25 Thread nafiseh saberi
hi. I use global in this form: ? global $a; $a=strtotime('now'); . . . echo $a; but in this line dont echo $a I dont know why?? thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] re:help!!!

2001-08-25 Thread nafiseh saberi
you must define port or connection. for example in postgres: $conn = pg_connect( host=localhost dbname=big user=postgres password=123); result = pg_exec($conn,select * from personel where name='$ID' and date='now'); I wish your problem solve. nafiseh. -- PHP General Mailing List

[PHP] ImageCopyResampled() versus ImageCopyResized()

2001-08-25 Thread dgoddard
Has anyone out there used ImageCopyResampled()? This function was added in PHP 4.0.6 and requires GD 2.0.1 or later. So I haven't been able to try it out yed. I'm just wondering if it will deliver better image quality when you use it to render a shrunk-version of a graphic than

Re: [PHP] global variable again?

2001-08-25 Thread Chris Hayes
Look in the manual: language.variables.scope.html 'global' is meant to use inside a function for accessing vars that are not in a function (the main part). I use global in this form: ? global $a; $a=strtotime('now'); . . . echo $a; but in this line dont echo $a Using global

[PHP] PHP Install Problem - Please Help

2001-08-25 Thread Martin Stephenson
Hi All, I'm running Suse Linux 7.1, Kernet 2.4 I have downloaded and installed the latest version of Apache and it's up and running OK It is installed in : /usr/local/apache To Install PHP, i have downloaded the Source and put it in: /usr/local/src/php-4.0.6 To Install PHP I have done

[PHP] How can I read the value of an existing cookie?

2001-08-25 Thread Pere
I am new to PHP (probably the question itself shows it...). I am setting up a cookie stating the language the user wishes to have the site written with. No problem up to here. Next time the user goes back to the site I want to read the cookie and, provided it exists, set up the site with the

RE: [PHP] The future of PHP

2001-08-25 Thread hassan el forkani
hi rasmus: PHP is not marketed the way Java and .NET is. There are no multi-billion dollar corporations behind PHP and asking us, and apparently me personally, to make that happen is unrealistic; true, but who can afford java and .net? oracle..., certainly not the small and medium size

Re: [PHP] AudioGalaxy-like stuff

2001-08-25 Thread Christian Dechery
yeah... but other then returning the image, can it do stuff with DB and all? BTW.. I saw how it's done... it's Javascript all the way... and there's no call to a php script to switch the image... At 03:35 23/8/2001 +0100, you wrote: See this is the lack of my explaining powers :) U click the

[PHP] sizeof(int)

2001-08-25 Thread Saurabh Kapoor
I am a C programmer, looking to migrate some code to PHP (Unusual, but my colleagues request it). Can someone tell me the size (in bytes) of the type int in PHP. I need a 16 bit (2 byte) storage unit (I use a lot of bitwise operations) Thanx... -- PHP General Mailing List

RE: [PHP] Re: send mail to mailing list using mail() or smtp?

2001-08-25 Thread hassan el forkani
use php for everything from subscription management to email authoring and use a perl script to effectively send the emails At 10:08 25/08/01, Niklas Lampen wrote: I'm sending a huge amount of mails with php. How can I send mail directly to the smtp server? Right now I'm using pipe to send

Re: [PHP] AudioGalaxy-like stuff

2001-08-25 Thread Andrew Brampton
well i've not looked how its done... but the PHP script that generates a image, will do DB stuff as well.. But I will go look how its done After looking its just how I said... They use a JSCript call to load a new image.. namly: www.AudioGalaxy.com/satQueue/ + SongID + ? + SID (Where SongID

[PHP] Re: global variable.

2001-08-25 Thread Hugh Bothwell
Nafiseh Saberi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi. I want to use glabal variable. ? global $a; ? but it doesnot work?? ... why do you think you need to use global here? global is used *in a function* to let it see external variables.

[PHP] Re: sizeof(int)

2001-08-25 Thread Hugh Bothwell
Saurabh Kapoor [EMAIL PROTECTED] wrote in message 001901c12d63$b1b62100$9e2823d9@killer666">news:001901c12d63$b1b62100$9e2823d9@killer666... I am a C programmer, looking to migrate some code to PHP (Unusual, but my colleagues request it). Can someone tell me the size (in bytes) of the type

Re: [PHP] The future of PHP

2001-08-25 Thread Christopher CM Allen
Good Morning(CST USA here :)) PHP is represented at every important technical conference right alongside Perl and Python. When you hear someone talk about scripting languages, they will usually say Perl, Python and PHP. I don't see any problem with the current state of PHP marketing in

Re: [PHP] local time v.s. server time

2001-08-25 Thread James, Yz
Hi Joe, GMT isn't affected by daylight savings (altough in the UK we are using British Summer Time at the moment, which is GMT +1), so that's the constant you can work from if you're not experiencing daylight savings schemes where you are. I have written out an example for you below. We get

RE: [PHP] The future of PHP

2001-08-25 Thread Miles Thompson
This is an aside ... At 02:08 AM 8/25/01 -0400, Cristopher Daniluk wrote: After following this thread for a while, it seems like there is a lot of discrepancy between what is success and what isn't for PHP. I do not believe PHP will ever become the ubiquitous web language, if for no other reason

Re: [PHP] How can I read the value of an existing cookie?

2001-08-25 Thread mike cullerton
on 8/25/01 6:20 AM, Pere at [EMAIL PROTECTED] wrote: I am setting up a cookie stating the language the user wishes to have the site written with. No problem up to here. Next time the user goes back to the site I want to read the cookie and, provided it exists, set up the site with the

RE: [PHP] local time v.s. server time

2001-08-25 Thread Joe Sheble \(Wizaerd\)
Thanx James for your answers... perhaps I'm missing a piece of the puzzle, but here is how I corrected or fixed it. In my included file that gets included in every app and every page, I placed: putenv( TZ=America/Phoenix ); and all my dates are now local time. SO saving to a mySQL

Re: [PHP] help

2001-08-25 Thread Tyler Longren
That will stop fread from producing errors. So, if you don't want to see any error's from fread, put a in front of it. This can also be done with other functions: $db = mysql_select_db(dbname); Tyler Longren On Sat, 25 Aug 2001 15:03:49 +1000 GaM3R [EMAIL PROTECTED] wrote: can anyone

[PHP] Images Download

2001-08-25 Thread Pereira Romulo
Hello, I want to create a script that would read the contents of an HTML file (I can use Snoopy class for that) and then, download some respective type of files from a page (let's say .zip files)... Any ideas how do I start or if anyone create something like that? Thank you and please, reply

Re: [PHP] How can I read the value of an existing cookie?

2001-08-25 Thread Pere
Thanks, Mike, for your help. Best regards, Pere Mike Cullerton [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... on 8/25/01 6:20 AM, Pere at [EMAIL PROTECTED] wrote: I am setting up a cookie stating the language the user wishes to have the site written

[PHP] regenerate variables?

2001-08-25 Thread Christian Springub
Hi, I know, the topic looks freaky, let me explain. I have a formular with many input fields called for example firm[0], firm[1] etc. Now I submit and have the values of this variables. But I have so many input fields, that I want to generate the variables by reading the names from a mysql

[PHP] $i % 2 ? 0:

2001-08-25 Thread BRACK
Hi Can someone explain to me what $i % 2 ? 0: means or what it does step by step? I was looking in PHP docs for ? and : and didn't find it there. I use this line in my script to assign different value for $bgcolor variable to color rows in result, but I want to understand what does it mean.

Re: [PHP] $i % 2 ? 0:

2001-08-25 Thread mike cullerton
it's an if/else shortcut. the part before the '?' is tested. '$i % 2' in your case. the part after the '?' is returned if the test evals to true. '0' in your case. the part after the ':' is returned if the test evels to false. i've never tried it with nothing after the ':' like in your case.

Re: [PHP] $i % 2 ? 0:

2001-08-25 Thread Hugh Bothwell
Mike Cullerton [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... it's an if/else shortcut. the part before the '?' is tested. '$i % 2' in your case. the part after the '?' is returned if the test evals to true. '0' in your case. Documentation at

Re: [PHP] help

2001-08-25 Thread Hugh Bothwell
Tyler Longren [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Sat, 25 Aug 2001 15:03:49 +1000 GaM3R [EMAIL PROTECTED] wrote: can anyone explain to me exactly what this would do differently? $data = fread($fp, filesize($file)); $data = fread($fp,

[PHP] Stripping line break characters

2001-08-25 Thread Rory O'Connor
I need to strip line break characters (or whatever the character is that results from users hitting their enter key inside a TEXTAREA form input) from a string. These characters will appear anywhere in the string, not just at the end. In perl, the regex would look something like this...

[PHP] Re: Stripping line break characters

2001-08-25 Thread jimw
Rory O'Connor [EMAIL PROTECTED] wrote: $sql2=str_replace(,\n,$sql2); $sql2=str_replace(,\r,$sql2); you've got the first two arguments backwards. $sql2=str_replace(\n,,$sql2); $sql2=str_replace(\r,,$sql2); or with php4.0.5 (or later): $sql2=str_replace(array(\n,\r),,$sql2); for

[PHP] relative filename /home/www... in stead of /www/.....

2001-08-25 Thread Chris Hayes
dear group, I use the $DOCUMENT_ROOT to make a complete file name. $fpname=$DOCUMENT_ROOT.'/includes/blocks/dynmenu.php'; It does not work on one site: the document root misses the /home/ start. I could just hardcode this but i'ld rather have a function that would work everywhere.

[PHP] Re: source of global variable

2001-08-25 Thread Dell Coleman
I'm not sure of the problem but something like ? if ($condition) { echo $time} else { //do something else} ? You can also print or echo html from php if that helps your program flow like ? echo Table TRTHtitle/TH/TR TRTD$data/TD/TR /Table; ? Often you will want to

[PHP] Echo/Print

2001-08-25 Thread Andy Ladouceur
I am fairly new to PHP Scripting, and I am learning from a book. Throughout the book, print is used as the basic command to output text/variables.. yet I see almost everyone in here uses echo. Might I ask what the differences of the two are, and if there are any benefits of using one over the

[PHP] Re: source of global variable

2001-08-25 Thread Dell Coleman
I think I did misunderstand -- php is not like C where you declare things global both in the main program and in subroutines. If you are not in a function everything is automatically global; in php functions you need to declare variables to be global. --so you don't need it the problem looks

[PHP] Re: Stripping line break characters

2001-08-25 Thread Chris Hayes
Hi! $sql2=str_replace(,\n,$sql2); $sql2=str_replace(,\r,$sql2); well that was easy: manual: string str_replace (string needle, string str, string haystack) and you did: str_replace (string str, string needle, string haystack) So better try

[PHP] Program to check for cookies

2001-08-25 Thread Sunil Jagarlamudi
Is there a program which will check for cookies before it allows access into the web site ? I want the user to enter the userid/password on a secure web server and pass the cookie information to the regular server. I don't want them to access regular web server without that cookie being enabled

Re: [PHP] multi-dimensional array won't echo

2001-08-25 Thread bill
Not only a good answer, but the best explanation. thanks, bill hollett Rasmus Lerdorf wrote: The first echo statement doesn't work, the second does. Anybody know why? $string1=15; $string2=27; $myarray[$string1][$string2]=syncopated; echo $myarray[$string1][$string2]br /\n;

Re: [PHP] Program to check for cookies

2001-08-25 Thread idesign
I have a form that submits data to a database, works great until someome puts in an apostrophe in the comments area...how do i escape this charecter upon insert? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] Re: escaping special charecters upon submit

2001-08-25 Thread idesign
I have a form that submits data to a database, works great until someome puts in an apostrophe in the comments area...how do i escape this charecter upon insert? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: [PHP] The future of PHP

2001-08-25 Thread Martin Wright
Hmmm. Manuel what's that you're smoking? Where can I get some? M -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Sent: 24 August 2001 20:30 To: [EMAIL PROTECTED] Subject: Re: [PHP] The future of PHP Hello, Egan wrote: On Fri, 24 Aug 2001 15:34:04 -0300,

Re: [PHP] konquerer and php

2001-08-25 Thread Scott
I should probably just forget I ever sent this post, but in case anyone is curious, the problem was that I was using the address cached in the address bar in Konqueror to open the home page of the application. For some reason this address was file: /var/ww/html/homepage.html instead of

[PHP] Re: escaping special charecters upon submit

2001-08-25 Thread Andy Ladouceur
http://www.php.net/manual/en/function.addslashes.php That should work fine. -Andy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have a form that submits data to a database, works great until someome puts in an apostrophe in the comments area...how do i

[PHP] last bit of help ....

2001-08-25 Thread Dan McCullough
I need to output an array to a text file, now I have created the text file now I just need to write to it, well I need to get the output of the browser to this text file. HOw can i do this, oh and return each line ... heres the code that gets the output array1.php ? // Mail text file

Re: [PHP] Re: escaping special charecters upon submit

2001-08-25 Thread idesign
Tried addslashes also urlencode, neither worked... the input is from a comment area in a form...that adds data to a mysql database...the comments contain commas and apostrphes, that when you try to subit, screw up the execution of the insert Any help would be very very very very

Re: [PHP] Echo/Print

2001-08-25 Thread Andy Ladouceur
Thanks! Helped a lot. -Andy Jeff Oien [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You can read the notes lower on the page here to get a good idea: http://www.php.net/manual/en/function.print.php Jeff Oien I am fairly new to PHP Scripting, and I am

Re: [PHP] Re: escaping special charecters upon submit

2001-08-25 Thread Don Read
On 26-Aug-2001 [EMAIL PROTECTED] wrote: Tried addslashes also urlencode, neither worked... the input is from a comment area in a form...that adds data to a mysql database...the comments contain commas and apostrphes, that when you try to subit, screw up the execution of the insert

Re: [PHP] Re: escaping special charecters upon submit

2001-08-25 Thread idesign
mine always says ask don lol...actually got it figured out right after muy last post rawurlencode worked great Thanks though! On 26-Aug-2001 [EMAIL PROTECTED] wrote: Tried addslashes also urlencode, neither worked... the input is from a comment area in a form...that adds data

Re: [PHP] The future of PHP

2001-08-25 Thread Manuel Lemos
Hello Rasmus, Rasmus Lerdorf wrote: So, it is very hard to convince the anybody to bet all the farm in PHP. You may have the technical arguments, but is not enough, I'm afraid. You in particular, may not need to convince others to bet on PHP, but it is nothing like that for most

Re: [PHP] Re: The secrecy of PHP code

2001-08-25 Thread Artyom Plouzhnikoff
If your php-code is on a web-server which gives access to other than you they can read your code. An example could be other people being hosted on the same server.. Not necessarily. You can enable safe_mode and/or set an open_basedir in order to prevent those people from doing that. You

[PHP] Safe mode + /usr/share/php

2001-08-25 Thread Artyom Plouzhnikoff
Is it possible to use safe mode yet allow all scripts to include any files from /usr/share/php? Normal users ain't gonna have *write* access to that directory, so it shouldn't be much of a security concern, I just don't know how to do this. I know that I can disable safe_mode and enable

Re: [PHP] Safe mode + /usr/share/php

2001-08-25 Thread Rasmus Lerdorf
A recent feature addition (4.0.7) is a safe_mode_include_dir php.ini directive where you can do exactly this. -Rasmus On Sun, 26 Aug 2001, Artyom Plouzhnikoff wrote: Is it possible to use safe mode yet allow all scripts to include any files from /usr/share/php? Normal users ain't gonna

[PHP] thanks Dell coleman!

2001-08-25 Thread nafiseh saberi
hi. thanks . can you describe more about a href=$PHP_SELF?params ??? nafiseh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] disable_functions....

2001-08-25 Thread Andy Ladouceur
Does anyone know if its possible to use disable_functions on only specified directories, and not all? Hopefully its possible.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] disable_functions....

2001-08-25 Thread Rasmus Lerdorf
Any php.ini directive can be used in your httpd.conf on a per-dir basis. See the manual.. -Rasmus On Sat, 25 Aug 2001, Andy Ladouceur wrote: Does anyone know if its possible to use disable_functions on only specified directories, and not all? Hopefully its possible.. -- PHP General

RE: [PHP] Re: escaping special characters upon submit

2001-08-25 Thread Navid Yar
Try this: $text = nl2br(htmlspecialchars(stripslashes($text))); With $text being the data outputted. It will replace apostrophes, quotes, etc. with their proper html formatting. Example: input: PHP is Cool! html output: quot;PHP is Cool!quot; Then if you don't want the $quot;, or

php-general Digest 26 Aug 2001 07:54:07 -0000 Issue 838

2001-08-25 Thread php-general-digest-help
php-general Digest 26 Aug 2001 07:54:07 - Issue 838 Topics (messages 64449 through 64478): Re: Stripping line break characters 64449 by: Rory O'Connor 64450 by: jimw.apache.org 64458 by: Chris Hayes relative filename /home/www... in stead of /www/.

Re: [PHP] POST without Content-Type?

2001-08-25 Thread Rasmus Lerdorf
Well, first of all, you are using an ancient version of PHP. That message was changed from a fatal error to a warning over a year ago. And if you really want to have PHP accept non-typed POST data, it's an obvious one-line change in main/SAPI.c -Rasmus On Sat, 25 Aug 2001, Chris Maresca

[PHP] Error while passing parameters as path

2001-08-25 Thread Anas Mughal
All, I read the article by John Coggeshall on building search engine friendly pages. Now, I trying to pass my script parameters as path (instead of ?param=valueparam2=value2). However, for some reason I keep on getting the following error: Fatal error: Unable to open

RE: [PHP] Error while passing parameters as path

2001-08-25 Thread Anas Mughal
yes, I am running as CGI. How should that matter? Actually, I need to run as CGI because I have customized extensiont to PHP that my hosting company will not imbed in their PHP-Apache module. I am totally fine with that. Bottom line is that I need to run PHP as CGI. Is there a way for this work