[PHP] Re: PHP not working in html

2002-11-07 Thread conbud
Hey there check out this URL http://www.php.net/manual/en/installation.php -Lee "Mike At Spy" <[EMAIL PROTECTED]> wrote in message news:GKEFLEHIPEGIFEECKBNEAEHCGMAA.spycobalt@;spyproductions.com... > > PHP isn't working in my html docs - what changes do I need to make to get it > to do so? Does

[PHP] sockets

2002-11-07 Thread Gareth Thomas
Hi, I am running 4.3.0pre2 on RH 7.2 and on Windows2k I am trying to implement a socket based client/server communication program with the server being on the Linux side and the current test client on windows (although it will be on Linux eventually). A series of commands is sent by the client sid

[PHP] ob_gzhandler

2002-11-07 Thread Serge Paquin
Hello, Is their anyway to use ob_gzhandler along with another callback? I've tried the following which does not work: function DoCache($buffer) { /* Do a bunch of stuff */ return ob_gzhandler($buffer); } ob_start("DoCache"); ... The program and such ... ob_end_flush(); Can anybo

Re: [PHP] Quick question

2002-11-07 Thread Todd Pasley
Realistically, there is no difference. It is *slightly* quicker to parse, but thats about it. I think it was introduced to satisfy those that have used this type of syntax in other languages, like C and Perl (which users elsif). I usually use elseif as its a bit nicer looking (IMHO) Todd. -

Re: [PHP] Graphics question

2002-11-07 Thread Todd Pasley
> Jeez, this is simple. The browser is caching the image. There's no real > way to fix that. There are some headers that may encourage the browser to > not cache, but there is no sure way to control whether the users will have > this setting overridden. I use srand((double)microt

[PHP] Quick question

2002-11-07 Thread Martin Towell
what is the technical difference between using else if and elseif ?? Are they interpretted the same internally? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Graphics question

2002-11-07 Thread Brendon G
If it's just the browser caching are you able to use something like graph.jpg?cachebust=something random here like a datetime or something. I'm not familiar with the way your doing it.. but I guess it has to be given a name to the browser somewhere doesn't it? I use this on pages and images as we

Re: [PHP] PHP not working in html

2002-11-07 Thread Jason Wong
On Friday 08 November 2002 05:35, Mike At Spy wrote: > There isn't any .htaccess file in the directory - I added one with the line > you specified, and my directory comes up with a 'server misconfiguration > error'. Any other ideas? :) You may have to put it inside a directory container: A

Re: [PHP] data verification trough _POST arrays

2002-11-07 Thread olinux
--- "Fernando M. Maresca" <[EMAIL PROTECTED]> wrote: > hello everyone, > first, is there a way of reloading a FORM with the > data that the user > have typed, after the action="validation.php" has > been determined that > some fields nedd to be reloaded? > what is the correct method for save >

Re: [PHP] Re: WAP resources for PHP

2002-11-07 Thread olinux
Like he said - basically just send a wap header and config your server. CONFIGURING SERVER http://www.verio.com/support/view_article.cfm?doc_id=1193 http://www.verio.com/support/view_article.cfm?doc_id=766 Tip: Leave this line out - you will need to add .wml to your list of extensions to be parse

RE: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Martin Towell
I remember reading somewhere (can't remember where though, maybe the php.net web site??) that if you use $this in a constructor (or any methods the constuctor calls), then you should instantiate the object using &new otherwise you get a copy of the object that's just been created and not the actual

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tim Molendijk
Hi all, First of all, thank you for the suggestions. Actually I accidently found a solution to the problem... Not that I understand it now, I just found a way to cope with it. By changing the first line of the first code snippet: $testContainer1 = new Container(TRUE); into:

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Mike Mannakee
This sounds like a matter that ought to make it to the programmers who code PHP itself. In the meantime can you code around it now that you know the bug is there? Mike "Marco Tabini" <[EMAIL PROTECTED]> wrote in message news:1036725595.21741.868.camel@;localhost.localdomain... > I'm not sure if

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tom Rogers
Hi, Friday, November 8, 2002, 12:36:03 PM, you wrote: TM> First of all I would like to say that I know this is a lot of text but I TM> would be very pleased if you take a little time to read it nevertheless. The TM> situation described below is not complicated at all... TM> ===

Re: [PHP] Most current non-beta version, and bcc

2002-11-07 Thread Rick Widmer
At 02:38 PM 11/7/02 -0600, Jill S wrote: so again I'll ask - Are the 4.2.3 downloads at the top of the page at: http://www.php.net/downloads/ "beta versions" or non-"beta" versions? 4.2.3 is currently the latest stable released version of PHP. Yes, that means NOT BETA. Anything that makes i

Re: [PHP] Graphics question

2002-11-07 Thread Mike Mannakee
Jeez, this is simple. The browser is caching the image. There's no real way to fix that. There are some headers that may encourage the browser to not cache, but there is no sure way to control whether the users will have this setting overridden. imagedestroy($pic); is only freeing the memory us

RE: [PHP] Graphics question

2002-11-07 Thread Robbert van Andel
That would cause an error like "call to undefined function." But thanks for the suggestion. On Thu, 2002-11-07 at 20:04, @ Darwin wrote: > The reason "imagedestroy()" may have not worked for you is that maybe > imagedestroy() is misspelled? If you misspelled it in the code then it won't > work. J

[PHP] RE

2002-11-07 Thread Karl James
Hey guys, Is there anyone online that can help in a real time chat session with my project. I need help with my forms, check boxes and htaaccess, then the php will come into Play.. For my fantasy football league. karl

RE: [PHP] Graphics question

2002-11-07 Thread @ Darwin
The reason "imagedestroy()" may have not worked for you is that maybe imagedestroy() is misspelled? If you misspelled it in the code then it won't work. Just a suggestion. - Darwin > -Original Message- > From: Robbert van Andel [mailto:robbert@;vafam.com] > Sent: Thursday, November 07, 20

Re: [PHP] file upload broken in my case?

2002-11-07 Thread sam clanton
That's it --- that will teach me not to read the last line in the documentation! argh... Thanks Sam On 7 Nov 2002, Marco Tabini wrote: > When are you checking that the file actually exists? PHP deletes the > temporary file once the script has finished executed. This means you > have to copy it

RE: [PHP] Graphics question

2002-11-07 Thread Marco Tabini
It's explained in the header() page of the manual: Marco - php|architect -- The Monthly Magazine For PHP Professionals Come visit us on the web at http://www.phparch.com! On Thu, 2002-11-07 at 22:35, Robbert van Andel wrote: > Is there a way I can keep the caching from happening

RE: [PHP] Graphics question

2002-11-07 Thread Robbert van Andel
Is there a way I can keep the caching from happening using PHP? On Thu, 2002-11-07 at 19:32, Martin Towell wrote: > sounds like a browser caching problem to me > dunno if that helps though :/ > > -Original Message- > From: Robbert van Andel [mailto:robbert@;vafam.com] > Sent: Friday, Nove

RE: [PHP] Graphics question

2002-11-07 Thread Martin Towell
sounds like a browser caching problem to me dunno if that helps though :/ -Original Message- From: Robbert van Andel [mailto:robbert@;vafam.com] Sent: Friday, November 08, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP] Graphics question I have created a webpage that builds a table and

[PHP] Graphics question

2002-11-07 Thread Robbert van Andel
I have created a webpage that builds a table and graph using the GD functions. When I switch to another page or select a different month to build the table for, the graph.jpg does not rebuild. I have to press reload to make the graph render using the new data. I have used imagedistroy($pic) in t

Re: [PHP] File locking problem

2002-11-07 Thread Charles Wiltgen
Marco Tabini wrote... > Ok, here's another possibly stupid solution. Not at all. My solution was not far from that -- I have to wait for the file to exist, and then to have something in it, and then include it. (See my "PHP fopen() bug + solution" post.) Thank you, -- Charles Wiltgen -- PH

Re: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Marco Tabini
I'm not sure if my answer is going to be of much help, but I think this has to do with the way PHP handles references and copies of objects--it uses what I understand is a lazy copy mechanism, and thus the results on object manipulations can yield odd results. There was a discussion on a similar pr

[PHP] Re: Notice problem...

2002-11-07 Thread conbud
Hey Use error_reporting = E_ALL & ~E_NOTICE that will display all errors except notices, I use if statements in a lot of my pages and if one of the variables in the if statement doesnt get defined, which some of them are ment to not get defined if a certain other variable is already define, so you

[PHP] Weird behaviour with references to objects...

2002-11-07 Thread Tim Molendijk
First of all I would like to say that I know this is a lot of text but I would be very pleased if you take a little time to read it nevertheless. The situation described below is not complicated at all... = Hello all, I'm dealing with this really weird problem

[PHP] Re: WAP resources for PHP

2002-11-07 Thread nicos
Well, PHP and WAP are fully compatible. You just need to ouput PHP in a wap format and not html. You should learn the wap tags in w3c.org. -- M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com Hébergement de sites internets. "Research And Development" <[EMAIL PROTECTED]> a écrit dans le messa

Re: [PHP] file upload broken in my case?

2002-11-07 Thread Marco Tabini
When are you checking that the file actually exists? PHP deletes the temporary file once the script has finished executed. This means you have to copy it somewhere else if you need to manipulate (or even to look at it after you posted), or you'll never find anything. I went nutz with this the first

[PHP] file upload broken in my case?

2002-11-07 Thread sam clanton
Hello, I was wondering if anyone could help me out with this. I am trying to use squirrelmail on my server and I haven't been able to get file uploading to work at all. It always thinks that it works, but POST file uploading never results in an actual file being created in the filesystem. you

[PHP] WAP resources for PHP

2002-11-07 Thread Research and Development
I need to make a site WAP ready in less than a month. What books or internet resources do you recommend for development of WAP in PHP. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to limit chars?

2002-11-07 Thread Marco Tabini
If you want to prevent the string from being posted unless the user writes it using less than 100 characters, the function you're looking for is strlen() http://ca.php.net/manual/en/function.strlen.php as in if (strlen ($string) > 1000) echo 'error'; Otherwise you can simply truncate t

Re: [PHP] Multple Form Values with Same Name

2002-11-07 Thread Marco Tabini
Yeah, PHP can do that for you. All you need to do is add the array indicator at the end of the variable name in your HTML code: That should make your PHP variable an array. Marco Marco - php|architect -- The Monthly Magazine For PHP Professionals Come visit us on the web at http:/

RE: [PHP] How to limit chars?

2002-11-07 Thread Martin Towell
use substr($str, 0, 1000) -Original Message- From: Håkan [mailto:hw2k@;barrysworld.com] Sent: Friday, November 08, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: [PHP] How to limit chars? Let's say I have a text field in my mysql database, and a where I write whatever, and I want to limit

[PHP] How to limit chars?

2002-11-07 Thread Håkan
Let's say I have a text field in my mysql database, and a where I write whatever, and I want to limit it to 1000 chars or something like that before I add it to the database, I know I can do it with javascript, but that's so messy and I don't have time to figure that out right now :) Håkan --

[PHP] Multple Form Values with Same Name

2002-11-07 Thread PHP Mailing List
I'm working on converting a pre-existing website for a company, from something called Lasso, into PHP. This domain name registration site uses the same form value, "$Suffix" as the checkbox values for all the TLDs they offer. I was originally under the impression PHP would put them all into an

Re: [PHP] File locking problem

2002-11-07 Thread Marco Tabini
Ok, here's another possibly stupid solution. Have you tried (a) setting a pause (like 2 secs) between when you end writing and include the file or (b) writing the file, then refreshing the page with a parameter and including it only then? In the latter case, terminating the script and refreshing it

Re: [PHP] Notice problem...

2002-11-07 Thread Marco Tabini
I guess the best solution would be to fix the error that the system is reporting... you're using a constance that is not defined. Now, this could mean that (a) you really meant to define a constant and you forgot (or didn't include the right file) or (b) you typed the name of a variable without the

[PHP] XSLT failing when DOCTYPE declaration present

2002-11-07 Thread Chris Wesley
I'm using the xslt capabilities in PHP 4.2.2 and running into an odd problem. I'm transforming an XML document which has a DOCTYPE declaration referencing an external DTD. http://my.host.org/foo.dtd";> When I have xslt_process() attempt to transform the XML document, with an XSL document I provi

Re: [PHP] Listing a few words from one sentence ??

2002-11-07 Thread conbud
Hey I guess I sort of worded my question wrong, if the sentance says Thank you for helping me with PHP I wanna be able to just have the first four words of the sentence printed so it says Thank you for helping... ".: B I G D O G :." <[EMAIL PROTECTED]> wrote in message news:1036685027.13268.108.ca

RE: [PHP] Notice problem...

2002-11-07 Thread John W. Holmes
> When i set display_errors = On and error_reporting = E_ALL in my > php.ini, > i get the next message for each variable that i use in the script: > "Notice: Use of undefined constant varname ." > > How is the best solution for this problem, setting error_reporting = > E_ALL > & ~E_NOTICE o

RE: [PHP] Mysql date format

2002-11-07 Thread John W. Holmes
> I'm using php with MySql. > I'm migrating an php-oracle application to php-mysql. I need to know if > exists any function in mysql similar to the "to_char" or "to_date" > functions > of oracle; or "format" function of access?. These functions make a date > format or numeric format. > > ex: to_c

[PHP] Reading unknown number of form variables -? need a hint/help..

2002-11-07 Thread Paul
Hi All: I have the following setup: The page contains multiple rows (something like a shoping cart) that consist of item_id, item_name, and item_quantity. Item Quantity is a text box that can be adjusted. I have a button to update all items..( I am using query and based on item_id I can update da

Re: [PHP] array_change_key_case() warning...

2002-11-07 Thread R B
Now it's working well. I was making a mistake with the while's loop. I saw my mistake using the print_r function. Thanks, RB From: Maxim Maletsky <[EMAIL PROTECTED]> To: "R B" <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [PHP] array_change_key_case() warning... Dat

[PHP] PHP fopen() bug + solution

2002-11-07 Thread Charles Wiltgen
Hello, Bug: When creating a file using fopen() with an FTP URL, the file may not be completely written even after you call fflush() and ffclose(). If you try to include() or require() the file you've just created, it may not work properly even if there's no warning or error generated. Solution:

[PHP] Reading unknown number of form variables -? need a hint/help..

2002-11-07 Thread Paul
Hi All: I have the following setup: The page contains multiple rows (something like a shoping cart) that consist of item_id, item_name, and item_quantity. Item Quantity is a text box that can be adjusted. I have a button to update all items..( I am using query and based on item_id I can update da

Re: [PHP] Warning! Spam to PHP mailing list

2002-11-07 Thread Maxim Maletsky
Here's the system I use: 1. I subscribe myself ALWAYS, RELIGIOUSELY with one single email address: [EMAIL PROTECTED] To clean it I simply delete the mailbox and recreate it again once every month as they get over 50.000 messages. 2. I set my reply-to as another, different address - the

Re: [PHP] Warning! Spam to PHP mailing list

2002-11-07 Thread Justin French
Yes, probably... the emails from this list are also on the PHP newgroup. Also, you're email address will be posted in archives of this list, and possibly auto-appear in address books of many subscribers -- these address books then become the target of virus spam. My advice is to create an email ad

RE: [PHP] How-to instal GD libary

2002-11-07 Thread .: B i g D o g :.
Is c:\program files\PHP\extensions in your path... if not then i would add it...also make sure to edit your php.ini file so that it loads when php is fired up... On Thu, 2002-11-07 at 23:20, Davy Obdam wrote: > Hi B i g D o g , > > > You need to download the php-version.zip file that contains

Re: [PHP] php

2002-11-07 Thread Maxim Maletsky
by restarting apache -- Maxim Maletsky [EMAIL PROTECTED] On Thu, 07 Nov 2002 21:02:34 + dk1eng <[EMAIL PROTECTED]> wrote: > hi there, > I just compiled a new version of php. > How do i tell apache to stop using my old version and start using the > new one? > peace dimitris > > > -- > PH

RE: [PHP] How-to instal GD libary

2002-11-07 Thread Davy Obdam
Hi B i g D o g , > You need to download the php-version.zip file that contains > all of the extensions in it... Yep i have installed PHP as a apache module(SAPI) > > there is the php_gd.dll and php_gd2.dll that you will need to > put in your path... Where do i move the php_gd.dll and php_gd2

Re: [PHP] Warning! Spam to PHP mailing list

2002-11-07 Thread Maxim Maletsky
On Thu, 07 Nov 2002 17:12:16 -0600 Jill S <[EMAIL PROTECTED]> wrote: > In case you're interested, I'm relatively sure this list > has a idiot spammer subscriber. I just received my first > spam message and subscribed to this list today. So, basicaly there someone or something that reads subscri

Re: [PHP] Warning! Spam to PHP mailing list

2002-11-07 Thread Jill S
In case you're interested, I'm relatively sure this list has a idiot spammer subscriber. I just received my first spam message and subscribed to this list today. Have been using this email address for about a year and Google search (and a couple of the other major search engines I just checked) pr

Re: [PHP] How-to instal GD libary

2002-11-07 Thread .: B i g D o g :.
You need to download the php-version.zip file that contains all of the extensions in it... there is the php_gd.dll and php_gd2.dll that you will need to put in your path... Then in your php.ini file you need to uncomment that dll out so that it can be loaded by php... On Thu, 2002-11-07 at 23:

[PHP] How-to instal GD libary

2002-11-07 Thread Davy Obdam
Hi people,. Can anyone tell me how to install the GD libary. I use Apache 2.0.40 and PHP 4.2.3 on a windows XP machine at home. Thanks already Best regards, Davy Obdam mailto:info@;davyobdam.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] specifying different port for db connections

2002-11-07 Thread .: B i g D o g :.
Which database are you using? MSSQL is what you said in your first email... Here is the information from php: Description int mssql_connect ( [string servername [, string username [, string password]]]) Returns: A positive MS SQL link identifier on success, or FALSE on error. mssql_connect() e

Re: [PHP] Apache 2 and PHP

2002-11-07 Thread conbud
Hi, I use Apache 2.0.4 and PHP 4.2.3 on Mandrake Linux and Win XP. On Linux its been extremely stable and havnt had a single problem yet, on XP I have a few minor problems to where the PHP was executing slow but nothing majorly noticable. "Davy Obdam" <[EMAIL PROTECTED]> wrote in message news:0

Re: [PHP] Listing a few words from one sentence ??

2002-11-07 Thread .: B i g D o g :.
perl regex to find the ones you want and then print them out... or you could explode then string and put each word in to one array and access the word by the array index... Example: $words = explode( " ", $sentence ); for( $i = 0; $i < 4; $i++ ) { echo "{$words[$i]}"; } On Thu, 2002

[PHP] PHP and UTF-8

2002-11-07 Thread Charles Wiltgen
Hello, How mature is PHP's support for UTF-8, real-world? Is it ubiquitous enough to use for commercial applications that'll be running on systems that you don't configure yourself? >From the notes in the documentation, it sounds like there are dependencies on the underlying OS, and that I would

Re: [PHP] specifying different port for db connections

2002-11-07 Thread heath boutwell
--- ".: B i g D o g :." <[EMAIL PROTECTED]> wrote: > Actually the remote file is used if you are trying to connect to a > remote system. Sybase uses remote files and that is how it works...i > know oracle does a similar way of connecting... > > IMHO, i would look into the interface file and chan

Re: [PHP] array_change_key_case() warning...

2002-11-07 Thread Maxim Maletsky
What does $result = mysql_fetch_array($this->stmt,MYSQL_BOTH); print_r($result); give you? --- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // PHP for Beginners www.maxim.cx // my Home // my Wish List: ( Get me something! ) http://www.amazon.com/exec/obidos/registry/2IXE7

Re: [PHP] File locking problem

2002-11-07 Thread Charles Wiltgen
Marco Tabini wrote... > 1) What OS are you using? Linux. > 2) Does the file include PHP code? Yes. > If it contains PHP code, are you sure that there aren't any errors in the PHP > code? Yes. The resulting XHTML validates when the include works (more than half the time). The rest of the tim

[PHP] Mysql date format

2002-11-07 Thread R B
I'm using php with MySql. I'm migrating an php-oracle application to php-mysql. I need to know if exists any function in mysql similar to the "to_char" or "to_date" functions of oracle; or "format" function of access?. These functions make a date format or numeric format. ex: to_char(sysdate,'

[PHP] Listing a few words from one sentence ??

2002-11-07 Thread conbud
Say I have a sentence that contains 8 words, how do I get PHP to list just 4 of those 8 words ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] publishing php > mysql website on cd-rom

2002-11-07 Thread .: B i g D o g :.
You can do a search on google for php and xml and xslt...i wrote a series of articles on it at phpbeginner.com http://www.phpbeginner.com/columns/ray/xml that should get you started... On Thu, 2002-11-07 at 22:26, Roger Lewis wrote: > This sounds pretty good, but I know absolutely nothing abou

Re: [PHP] Re: Most current non-beta version, and bcc

2002-11-07 Thread Manuel Lemos
Hello, On 11/07/2002 08:03 PM, Jill S wrote: Hello Manuel, Thank you for your response and the URLs. I'll check them out. I believe a newer version would be advantageous not only because of the bug fixes in the mail function but also because the developers advocate and advise upgrading when the

RE: [PHP] Apache 2 and PHP

2002-11-07 Thread Johnson, Kirk
Thanks for your reply, Davy. We are running *nix boxes, so I don't have any thoughts on XP and Apache. Kirk > -Original Message- > From: Davy Obdam [mailto:info@;davyobdam.com] > Sent: Thursday, November 07, 2002 3:29 PM > To: Johnson, Kirk; [EMAIL PROTECTED] > Subject: RE: [PHP] Apache 2

RE: [PHP] Apache 2 and PHP

2002-11-07 Thread Davy Obdam
Hi Kirk,. I run apache 2.0.40 and PHP 4.2.3 without no problem on my windows XP machine. I use it for testing, but i would think its stable enough for a production environment aswell. I actualy think that on a win32 platform Apache 2 is a better choice instead of 1.3.x. Whats your opinion about th

RE: [PHP] publishing php > mysql website on cd-rom

2002-11-07 Thread Roger Lewis
This sounds pretty good, but I know absolutely nothing about xml or xsl. Any literature, articles, links, or other resources you know of that could point me in the right direction. This would be worth researching. Roger -Original Message- From: .: B i g D o g :. [mailto:bigdog@;venticon.c

[PHP] Notice problem...

2002-11-07 Thread R B
When i set display_errors = On and error_reporting = E_ALL in my php.ini, i get the next message for each variable that i use in the script: "Notice: Use of undefined constant varname ." How is the best solution for this problem, setting error_reporting = E_ALL & ~E_NOTICE or other metho

Re: [PHP] Why this open_basedir warning?

2002-11-07 Thread Ernest E Vogelsinger
At 22:19 07.11.2002, Charles Wiltgen said: [snip] >Crap. Good and bad news. > >So I hardcoded "/home/.pix/cwiltgen/coremessaging.com/index.php" and it >worked every time. > >But then I hardcoded "/home/cwiltgen/coremessaging.com/index.php" (which is >what $

Re: [PHP] Re: Most current non-beta version, and bcc

2002-11-07 Thread Jill S
Hello Manuel, Thank you for your response and the URLs. I'll check them out. I believe a newer version would be advantageous not only because of the bug fixes in the mail function but also because the developers advocate and advise upgrading when they discovered serious security problems in the v

Re: [PHP] specifying different port for db connections

2002-11-07 Thread .: B i g D o g :.
Actually the remote file is used if you are trying to connect to a remote system. Sybase uses remote files and that is how it works...i know oracle does a similar way of connecting... IMHO, i would look into the interface file and change it there... On Thu, 2002-11-07 at 21:55, heath boutwell

Re: [PHP] specifying different port for db connections

2002-11-07 Thread heath boutwell
--- ".: B i g D o g :." <[EMAIL PROTECTED]> wrote: > Not a big mssql guy but if i remember correctly that should be set in > your interfaces file...but a valid server name should be used and that > is checked in the interfaces file... > I think the interfaces file is only used if you are accessi

Re: [PHP] File locking problem

2002-11-07 Thread Marco Tabini
Charles, 2 questions-- 1) What OS are you using? 2) Does the file include PHP code? Otherwise, can you keep its contents in a string and simply output that string? If it contains PHP code, are you sure that there aren't any errors in the PHP code? Ok, so it was a bit more than 2 questions :-)

Re: [PHP] array_change_key_case() warning...

2002-11-07 Thread R B
I'm making this: $result = mysql_fetch_array($this->stmt,MYSQL_BOTH); $result = array_change_key_case($result,CASE_UPPER); So the $result array is returned from a mysql function. I tried to put only MYSQL_ASSOC keys, but i get the same warning. I want to put all the keys in uppercase because i ma

Re: [PHP] File locking problem

2002-11-07 Thread Charles Wiltgen
Charles Wiltgen wrote... > I'm having file locking problems. > > I'm using fopen() to write a file via FTP. At the end, I'm doing... > > fflush($fp); > fclose($fp); > > ...and then I include it immediately after. But many times I only get part > of what I wrote to the file, which suggests

Re: [PHP] data verification trough _POST arrays

2002-11-07 Thread Kevin Stone
For validation purposes I always like to print the Form within the script that is doing the validation. It solves a lot of problems. As for coming back to the Form at a later date the method is going to depend on how long you want to keep the data. A Session will only last as long as the client

RE: [PHP] " getting changed to \" when pulled from a

2002-11-07 Thread John Meyer
yep, mea culpa, just thinking of MySQL. -Original Message- From: Marco Tabini [mailto:marcot@;inicode.com] Sent: Thursday, November 07, 2002 2:25 PM To: John Meyer Cc: Brandon Orther; PHP-General Subject: RE: [PHP] " getting changed to \" when pulled from a That's not "necessarily" true

RE: [PHP] " getting changed to \" when pulled from a

2002-11-07 Thread Marco Tabini
That's not "necessarily" true--if you're using MSSQL quotes are escaped with quotes, I think. Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmer Come visit us at http://www.phparch.com! --- Begin Message -

[PHP] php

2002-11-07 Thread dk1eng
ok, thanx recompilig right now! peace dimitris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP not working in html

2002-11-07 Thread Mike At Spy
There isn't any .htaccess file in the directory - I added one with the line you specified, and my directory comes up with a 'server misconfiguration error'. Any other ideas? :) Thanks! -Mike > > > In your .htaccess file remove anything that looks like this: > AddHandler server-parsed .html

[PHP] Re: Most current non-beta version, and bcc

2002-11-07 Thread Manuel Lemos
Hello, On 11/07/2002 05:48 PM, Jill S wrote: ... So, my questions are - Is the tech support guy correct? He is very correct but I would be even stricter. My advice is to never ever upgrade unless you need the new features and have tested the the new version thoroughly. and Is there a workar

RE: [PHP] " getting changed to \" when pulled from a

2002-11-07 Thread John Meyer
That's probably the way that you want it to be, if you're inserting the data into a database. When you retrieve it, you use stripslashes(). -Original Message- From: Brandon Orther [mailto:orther@;webintellects.com] Sent: Thursday, November 07, 2002 1:16 PM To: PHP User Group Subject: [PH

Re: [PHP] " getting changed to \" when pulled from a

2002-11-07 Thread Marco Tabini
There's actually a setting: http://ca.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc and a set of functions: http://ca.php.net/manual/en/function.get-magic-quotes-gpc.php http://ca.php.net/manual/en/function.set-magic-quotes-gpc.php Marco -- php|architect - The magazine for

[PHP] " getting changed to \" when pulled from a

2002-11-07 Thread Brandon Orther
Hello, When trying to save data from a form, the quotations (") get change to (\") Is there a function that will fix this? Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com

Re: [PHP] Warning! Spam to PHP mailing list

2002-11-07 Thread Daniele Baroncelli
Right, I get it. By the way, do any of you know an effective way to denounce spam abuses? So far I have been using the www.spamcop.net service, but I would be glad to receive some info on how the others cope with spam abuses. Cheers Daniele "Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] php

2002-11-07 Thread .: B i g D o g :.
It depends if you are compiling php as a DSO for apache...then no you just restart apache... if php is not a DSO then yes u need to recompile php... On Thu, 2002-11-07 at 21:10, dk1eng wrote: > i'm in a fresh install of redhat 8 and downloaded and compiled php4.2.3. > Do i need to recompile apac

Re: [PHP] PHP not working in html

2002-11-07 Thread Kevin Stone
In your .htaccess file remove anything that looks like this: AddHandler server-parsed .html And add this line: AddType application/x-httpd-php .php .htm .html Do a search for "parse html php" for more help. -Kevin - Original Message - From: "Mike At Spy" <[EMAIL PROTECTED]> To: <[EMAIL

Re: [PHP] PHP not working in html

2002-11-07 Thread Marco Tabini
What extension are your files? Your web server is probably not set up to handle your files as PHP files. Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmer Come visit us at http://www.phparch.com! --- Begi

Re: [PHP] Why this open_basedir warning?

2002-11-07 Thread Charles Wiltgen
Ernest E Vogelsinger wrote... >> I have a script that makes a file, and then includes it. Sometimes I get >> this error: [stuff deleted] >> >> But most of the time it works great. > Is this always the same source, or does some source fail, and others work? Always the same source. To test, I'

[PHP] PHP not working in html

2002-11-07 Thread Mike At Spy
PHP isn't working in my html docs - what changes do I need to make to get it to do so? Does it need to be recompiled? Can I do it without re-compiling? Thanks, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php

2002-11-07 Thread dk1eng
i'm in a fresh install of redhat 8 and downloaded and compiled php4.2.3. Do i need to recompile apache? and if yes how? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php

2002-11-07 Thread .: B i g D o g :.
If you compiled php with apache then you need to restart apache (DSO)...if you compiled php into apache as a module that is not dynamic then you need to recompile apache with the new php... Most likely you are using php as a DSO and all you need to do is restart apache... On Thu, 2002-11-07 at

[PHP] php

2002-11-07 Thread dk1eng
hi there, I just compiled a new version of php. How do i tell apache to stop using my old version and start using the new one? peace dimitris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting Newest

2002-11-07 Thread Miles Thompson
Lighten up! Participation here is voluntary. Maxim gave you a good answer, as you provided no information about the table structure. I'd be wondering why you are using three tables, but that's probably another discussion. Based on what he gave you, and a little study you should be able to figur

Re: [PHP] regular expression and exact word search...

2002-11-07 Thread rija
How about this one, $word_search = 'blablabla' ; echo eregi_replace("($word_search)","\\1",$html) ; // - Original Message - From: "BAROILLER Pierre-Emmanuel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 08, 2002 2:42 AM Subject: [PHP] regular expression and exact wo

Re: [PHP] Warning! Spam to PHP mailing list

2002-11-07 Thread Maxim Maletsky
and will conclude by this: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=ubimmc93%40libero.it&btnG=Google+Search -- Maxim Maletsky [EMAIL PROTECTED] Maxim Maletsky <[EMAIL PROTECTED]> wrote... : > Mailing lists get archived and the archives get crawled. That is how > your emai

[PHP] data verification trough _POST arrays

2002-11-07 Thread Fernando M. Maresca
hello everyone, first, is there a way of reloading a FORM with the data that the user have typed, after the action="validation.php" has been determined that some fields nedd to be reloaded? On other words, the user has no need to refill the entire form. Is a cookie needed? second one, what is the c

  1   2   3   >