[PHP] problems with PHP code (Please help!)

2002-11-18 Thread `Yan Grossman
Dear Friends, I run some PHP scripts to deal with sending forms data to my email adress. But, my "nice" Host provider upgraded the server to another version of PHP 4 and I notice that now the scripts are not working. I don't receive the emails anymore. They say I have to make sure all my code work

Re: [PHP] PHP Script to remove attachments from emails and store them on the server

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 06:39, Simon Chilmaid wrote: > Where would I need to add this line in, does it get added to the aliases > file or do I add it into the script that I already have for processing the > emails Not knowing exactly what you're trying to do, I would guess in your script as t

Re: [PHP] is this not possible?

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 06:36, Jeff Bluemel wrote: > well - now I understand why it is so difficult to make those 2 things work > together. it would be so much easier if php had some way of displaying an > inputbox etc. PHP can only output something, usually HTML, for the browser to interpre

Re: [PHP] overwrite .txt.file?

2002-11-18 Thread bahwi
http://www.php.net/fopen Just open the file like any other time, using w+ (I believe, check the link above) and then use fputs http://www.php.net/fputs That'll overwrite it. You may want to check it to see if it exists first, http://www.php.net/file_exists --Joseph Guhlin http://www.josephguh

[PHP] overwrite .txt.file?

2002-11-18 Thread Tox
i seeked for the command that would have let me overwrite .txt file, but i didn't find it. is there such an opportunity? Tox [EMAIL PROTECTED] Estonia, Tartu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] New commercial software needs beta testers

2002-11-18 Thread Jeremy Wilson
Well fine... by reading a bunch of your other posts when you talk to people, it looks like you are just a rude SOB... so I am really not offended. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 13, 2002 2:20 PM To: Jeremy Wilson Cc: [EMAIL

Re: [PHP] a conditionial insert

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 11:13, Justin French wrote: > Depends on hwo you want your logic to work, but I think what you have isn't > terribly accurate, because you're testing $result and mysql_num_rows() at > the same time -- if (A AND B) B only gets evaluated only if A is true, so it's qui

[PHP] How I Got PHP4.2.2, Apache 2.0, mySQL and RedHat 8.0 to work

2002-11-18 Thread Daevid Vincent
Well, it seems there are some glitches with and snags and other fun stuff to deal with when doing a straight RedHat 8.0 install. It turns out you have to edit your /etc/php.ini and uncomment out the "extension=mysql.so" line for starters. It also helps to set "short_open_tag = On". Another fun thi

RE: [PHP] RE: running php as cgi script

2002-11-18 Thread Peter Houchin
Hi > I'm trying to run a simple test php script as a cgi script on my ISP's > server > and haven't been able to get it to work, although according them it is > possible. > > I have an example from a book which gives the following steps: > > 1. Put the script in the cgi-bin > 2. run chmod 755 >

[PHP] RE: running php as cgi script

2002-11-18 Thread Jeremy Wilson
Change your ISP. For an ISP to be forcing you under this way is unrealistic. There are plenty of really good ISP's listed on the php site that all have the latest versions of php and have good setup packages. -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Friday, November

Re: [PHP] Getting info from users comp?

2002-11-18 Thread Justin French
I doubt it's possible with ANY language, but certainly not PHP. on 19/11/02 3:27 PM, John Yamokoski ([EMAIL PROTECTED]) wrote: > I am new to PHP but wanted to know if its possible to do the following with > PHP. > > I want to grab the size of the users RAM and the speed of the users CPU. Is > th

[PHP] Getting info from users comp?

2002-11-18 Thread John Yamokoski
I am new to PHP but wanted to know if its possible to do the following with PHP. I want to grab the size of the users RAM and the speed of the users CPU. Is this even possible with PHP since its a server side language?? And if its not possible with PHP, what language then? -- PHP General Mail

[PHP] Web Crawler

2002-11-18 Thread Jeremy Wilson
Does anyone know of a really good web crawler built in php using mysql for the database? I am looking to setup a php app that I can setup to crawl my own web site so I can have people search the site. I know there are plenty out there, but out of the ones I have tried, the results they return are

[PHP] IMAP_mailboxcreate problem

2002-11-18 Thread rija
What does this imap_errors() mean : mailbox is empty I tried to create new mailbox using this simple script: if (!imap_createmailbox($mbox, imap_utf7_encode("{192.168.0.1:110/pop3}INBOX.$newname"))) echo "Impossible de créer une nouvelle boîte aux lettres :".implode("\n>",imap_errors() ) ;

[PHP] Re: Distance Based on Zip Code

2002-11-18 Thread UberGoober
http://001034.samff.com/ Nice resource on the matter. "Ubergoober" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This seems to be a common question. > > You can buy this: > http://www.zipwise.com/ <- @ $130 its a total deal. I went thru the same > hassle to g

[PHP] Re: Distance Based on Zip Code

2002-11-18 Thread UberGoober
This seems to be a common question. You can buy this: http://www.zipwise.com/ <- @ $130 its a total deal. I went thru the same hassle to get the data from the post office/census data and it took me over a week to get everything. You have to spend endless amounts of time searching the web. Its a pa

Re: [PHP] a conditionial insert

2002-11-18 Thread Justin French
Depends on hwo you want your logic to work, but I think what you have isn't terribly accurate, because you're testing $result and mysql_num_rows() at the same time -- it's hard to explain.. perhaps you should actually do this: if($result) { if(mysql_num_rows($result) > 0) {

RE: [PHP] a conditionial insert

2002-11-18 Thread Peter Houchin
Hi just wanted to say thanks Justin.. I've got it working with your idea I needed to change this line if($result && mysql_num_rows($result) > 0) to if ($result && mysql_num_rows($result) < 1) and it works a treat. Thanks Peter > I'm no expert, but I think $result will return true

Re: [PHP] a conditionial insert

2002-11-18 Thread Justin French
Hi, on 19/11/02 1:51 PM, Peter Houchin ([EMAIL PROTECTED]) wrote: > function new_user() { > //check to see if the company is in the list > > > $result = mysql_query("SELECT * FROM resellers WHERE > company='$_POST[company]'"); > // if it's not then ... > if ($result == FALSE){ > blah > } > //if

[PHP] Re: be nice to newbies

2002-11-18 Thread Jason Friedland
Karl James wrote: This was a very professional statement. 90% of the time when I ask for help on a certain topic. I usally get my answer when I spell out what im trying to say. Although sometimes when you don't know what to ask, it becomes a difficult question And you get the treatment like you ar

[PHP] a conditionial insert

2002-11-18 Thread Peter Houchin
howdy have made up a script to insert stuff into my db but I want it to be conditionial as in I only want it inserterd if it matches the condition.. function new_user() { //check to see if the company is in the list $result = mysql_query("SELECT * FROM resellers WHERE company='$_POST[company]

Re: [PHP] Form Submitted without Submit Button????

2002-11-18 Thread Ernest E Vogelsinger
At 02:42 19.11.2002, vernon spoke out and said: [snip] >> In case you have them already available in your script, you could execute >> the geozip.pl using exec() or system(), and merging the result into your >> output. > >They are in the script. But how do I

Re: [PHP] Listing files and their details on a text file

2002-11-18 Thread Andrew Brampton
You would do it just like you would if you were outputing to the browser look up the following: dir, fopen and fwrite. Just be looking at the examples and user comments you will have all the source you need Andrew - Original Message - From: "Carlos Fernando Scheidecker Antunes" <[EMAIL PR

Re: [PHP] Problems with Caching

2002-11-18 Thread Adam Humphrey
Thanks for your help both Maxim and Marek...everything's working now! -Adam "Maxim Maletsky" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > try calling implicitly flush() function: > > > Example code: > Working... > flush(); > sleep ( 10 ); > ?> > > -- > Ma

Re: [PHP] Form Submitted without Submit Button????

2002-11-18 Thread vernon
> In case you have them already available in your script, you could execute > the geozip.pl using exec() or system(), and merging the result into your > output. They are in the script. But how do I use these exec() or system()? Are they javascript? Could you give me an example? Thanks -- PHP

Re: [PHP] Form Submitted without Submit Button????

2002-11-18 Thread Ernest E Vogelsinger
At 02:30 19.11.2002, vernon spoke out and said: [snip] >I've gotten Geozip, as was suggested here, and I need to return the value of >a form that contains two zip codes (one each from two different recordsets) >binded to hidden fields which is then submitted

[PHP] Listing files and their details on a text file

2002-11-18 Thread Carlos Fernando Scheidecker Antunes
Hello all, I need to do something that you might be able to advise me. I would like to list all the contents (files) of a directory in a text file. Each line/record must have the file name, date and size. Does anyone know how to do it? Thank you, C.F.Scheidecker Antunes. -- PHP General Maili

RE: [PHP] Phasing HTML

2002-11-18 Thread John W. Holmes
> OK I am trying to take some content from another site (I have total > consent) > and convert all the prices on the site to 5% more. I can get all the > content > off the site and display it where I want. I can ereg_replace all the money > to one price such as ($23.50) but I can't change the price

[PHP] Form Submitted without Submit Button????

2002-11-18 Thread vernon
I've gotten Geozip, as was suggested here, and I need to return the value of a form that contains two zip codes (one each from two different recordsets) binded to hidden fields which is then submitted to the "cgi-bin/geozip.pl" which then returns the distance between them. My problem is how do I g

Re: [PHP] check for \n

2002-11-18 Thread Vincent Vandemeulebrouck
> > $sql = 'SELECT id,ST FROM ccl.ccl_main'; > > ... > > $news = mysql_query($sql); > > while ($mydata = mysql_fetch_object($news)) > > { > > if ???$mydata->ST? > > echo "$mydata->id - $mydata->ST"; > > } > > Use strstr() with "\n" as the needle. Check out the "String funct

[PHP] Be Nice To Noobies

2002-11-18 Thread Karl James
This was a very professional statement. 90% of the time when I ask for help on a certain topic. I usally get my answer when I spell out what im trying to say. Although sometimes when you don't know what to ask, it becomes a difficult question And you get the treatment like you are a rookie. I th

[PHP] be nice to newbies

2002-11-18 Thread Karl James
This was a very professional statement. 90% of the time when I ask for help on a certain topic. I usally get my answer when I spell out what im trying to say. Although sometimes when you don't know what to ask, it becomes a difficult question And you get the treatment like you are a rookie. I thin

RE: [PHP] How to process data from forms

2002-11-18 Thread Ernest E Vogelsinger
At 01:45 19.11.2002, Van Andel, Robert spoke out and said: [snip] >Your variables are also available as plain old variables. For a newbie it >might be easier and more user frinedly to use it that way rather than the >array mentioned below. > >In your case, $

RE: [PHP] How to process data from forms

2002-11-18 Thread Van Andel, Robert
Your variables are also available as plain old variables. For a newbie it might be easier and more user frinedly to use it that way rather than the array mentioned below. In your case, $demand and $name would contain the information entered by the user. I generally use this method in my code.

Re: [PHP] How to process data from forms

2002-11-18 Thread Ernest E Vogelsinger
At 01:06 19.11.2002, one_gundam_war spoke out and said: [snip] >Ok. I am kind of new to PHP, but I have a question. I have a site, and it You've got a lot of questions then I'm sure :) Ok, let's start: >has a system where people can apply. However, the mail

Re: [PHP] speed comparison

2002-11-18 Thread Jeff Bluemel
I have not problem displaying variable - I do it all over my webpage, or how to handle them. you may want to check out my post above that has a weblink to the project, and a better explanation of exactly what I am doing. "Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED

[PHP] Phasing HTML

2002-11-18 Thread Brian Lee
OK I am trying to take some content from another site (I have total consent) and convert all the prices on the site to 5% more. I can get all the content off the site and display it where I want. I can ereg_replace all the money to one price such as ($23.50) but I can’t change the price based on

[PHP] Re: How to process data from forms

2002-11-18 Thread Gundamn
Sorry, forgot this. I am kinda new to the newsgroup stuff (btw, I am the same guy as the starter of the thread. I just didn't know it automatically capitalized the name). So if someone needs the code to explain it, I can post that. (and sorry for the double post) -- PHP General Mailing List

Re: [PHP] is this not possible?

2002-11-18 Thread Jeff Bluemel
here's the URL if case somebody decides to look at it; http://obi-wan.domintcom.com user: guest pass: domintcom go to customer service, prepaid pin, and then look up 3077876962 - activate, deactivate, and recharge this is for customer service of prepaid phone cards. now - when I reload this pa

[PHP] forgot this

2002-11-18 Thread Gundamn
Sorry, forgot this. I am kinda new to the newsgroup stuff (btw, I am the same guy as the starter of the thread. I just didn't know it automatically capitalized the name). So if someone needs the code to explain it, I can post that. -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] is this not possible?

2002-11-18 Thread Jeff Bluemel
thanks David - I'll look over it... Jeff "David Rice" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Jeff: > > Brent Ashley has written some cool stuff to make asynchronous remote > calls to server without client page refresh using javascript/iframe > etc. T

Re: [PHP] speed comparison

2002-11-18 Thread Jeff Bluemel
depends on my situation, but I use both techniques at times... "Justin French" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I think the difference would be immeasurable, but to me, I think it would > make sense if PHP didn't have to parse plain HTML... > > S

[PHP] How to process data from forms

2002-11-18 Thread one_gundam_war
Ok. I am kind of new to PHP, but I have a question. I have a site, and it has a system where people can apply. However, the mailto: system seems like it would be too much of a hassle, and I don't want to make users skip it just because they use webmail. So, does anyone know how to make the values

Re: [PHP] speed comparison

2002-11-18 Thread Ernest E Vogelsinger
As Maxim pointed out a couple of days ago, this is just a matter of nanosecs, it shouldn't be really noticeable from performance. The fastest was to display non-PHP output is to escape from PHP and enter plain HTML, like $a = 'World'; ?> Hello ! Hello World!'; Note the single quote

Re: [PHP] speed comparison

2002-11-18 Thread Justin French
I think the difference would be immeasurable, but to me, I think it would make sense if PHP didn't have to parse plain HTML... So IMHO, /should/ be slightly quicker than {$foo}"; ?> The general consensus on the list seems to be "go with whichever one you are more comfortable with, is more rea

[PHP] speed comparison

2002-11-18 Thread Chris Edwards
Which would run faster and generate less load on the server, or does it matter: -- OR - ... .. I find it sucks to try and put all the php tags around stuff, so I just include it all. -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EM

Fw: [PHP] Distance Based on Zip Code

2002-11-18 Thread Bret L Conard
// Function takes latitude and longitude of two places as input // and prints the distance in miles and kms. function calculateDistance($lat1, $lon1, $lat2, $lon2) // Convert all the degrees to radians $lat1 = deg2rad($lat1); $lon1 = deg2rad($lon1); $lat2 = deg2rad($lat2); $lon

Re: [PHP] is this not possible?

2002-11-18 Thread David Rice
Hi Jeff: Brent Ashley has written some cool stuff to make asynchronous remote calls to server without client page refresh using javascript/iframe etc. There is a PHP version. Go to: http://www.ashleyit.com/rs/main.htm And click on the link: Javascript Remote Scripting (JSRS). It works for most

Re: [PHP] decode

2002-11-18 Thread Steve Keller
At 11/18/2002 07:55 AM, you wrote: I have document in encryption type : B*C*N**N but I don't know how do abbab abbab Well, assuming that the above isn't someone sending you The Kinks, and flogging myself for replying to an off-topic post... A simple Google search should have directed you rig

RE: [PHP] PHP Script to remove attachments from emails and store them on the server

2002-11-18 Thread Simon Chilmaid
Where would I need to add this line in, does it get added to the aliases file or do I add it into the script that I already have for processing the emails -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 20:49 To: [EMAIL PROTECTED] Subject: Re: [PHP] PH

Re: [PHP] is this not possible?

2002-11-18 Thread Jeff Bluemel
well - now I understand why it is so difficult to make those 2 things work together. it would be so much easier if php had some way of displaying an inputbox etc. - Original Message - From: "BigDog" <[EMAIL PROTECTED]> To: "Jeff Bluemel" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: M

Re: [PHP] Be nice to newbies...

2002-11-18 Thread Jeff Bluemel
amen... "@ Nilaab" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello to all, > > I don't know about some of you, but I think PHP and the rest of the whole > open-source movement is the coolest thing in the world. I also personally > think it takes a lot of

Re: [PHP] is this not possible?

2002-11-18 Thread Ernest E Vogelsinger
At 22:39 18.11.2002, Jeff Bluemel spoke out and said: [snip] >I'm been ignored on this question for 4-5 days now. even if it is not >possible could somebody please verify this? > >is it possible to pass a variable from javascript directly to php WITHOUT >usi

[PHP] Be nice to newbies...

2002-11-18 Thread @ Nilaab
Hello to all, I don't know about some of you, but I think PHP and the rest of the whole open-source movement is the coolest thing in the world. I also personally think it takes a lot of effort and courage to make a transition from proprietory Windows Apps (Windows OS, SQL Server, IIS, VB, etc.), w

Re: [PHP] is this not possible?

2002-11-18 Thread rija
- Original Message - From: "Jeff Bluemel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 19, 2002 8:39 AM Subject: [PHP] is this not possible? > I'm been ignored on this question for 4-5 days now. even if it is not > possible could somebody please verify this? > > i

Re: [PHP] sunrise/sunset programs?

2002-11-18 Thread Adam
yes, have tried googling around... i came across one but the link no longer works: http://www.hotscripts.com/Detailed/4984.html if anyone knows of any, could they post the links here? thanks, adam. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Newsgroups: php.general To: <

Re: [PHP] is this not possible?

2002-11-18 Thread BigDog
No... Javascript need to send that data back to the server and how are you going to do that? You will have to use a form or a link or some method to send it to the server. Now you can use php to write your javascript code that can be used to link to a php file that can be run on the client side

Re: [PHP] is this not possible?

2002-11-18 Thread Leif K-Brooks
That, or an iframe. You can't pass variables on the same request, though. Jeff Bluemel wrote: I'm been ignored on this question for 4-5 days now. even if it is not possible could somebody please verify this? is it possible to pass a variable from javascript directly to php WITHOUT using eithe

Re: [PHP] http_get_var and isset() not working with script generated includes.

2002-11-18 Thread rija
Yep, You need make global every variable used in yout include. Maybe, you should declare- GLOBAL $_GET ; or do not call function to include your include just do simply like this, foreach ($sections as $key => $value) include "mod.section." . $value . ".php"; - Original Message - From:

[PHP] is this not possible?

2002-11-18 Thread Jeff Bluemel
I'm been ignored on this question for 4-5 days now. even if it is not possible could somebody please verify this? is it possible to pass a variable from javascript directly to php WITHOUT using either a link, or a form submit to pass the variables? I've gotten a work around to call an image that

RE: [PHP] Create Login Page

2002-11-18 Thread Van Andel, Robert
I recently set up a log in page. I'm doing it a little differently than you. First I establish a session and set up two session variables (sessusername and sesspassword). I check to see if these variables have been set, if they have, I then check the username and password with the database to ma

Re: [PHP] Create Login Page

2002-11-18 Thread Kevin Stone
Is To: <[EMAIL PROTECTED]> Sent: Monday, November 18, 2002 2:18 PM Subject: [PHP] Create Login Page > Hi All > > I am trying to create a login page using php and mysql database. > > This is the code that I am trying to use: > // File Name: auth04.php > // Check to see if $PHP_AUTH_USER already

Fw: [PHP] http_get_var and isset() not working with script generated includes.

2002-11-18 Thread Kevin Stone
Copy and pasted from the PHP manual: "If the include occurs inside a function within the calling file, then all of the code contained in the called file will behave as though it had been defined inside that function. So, it will follow the variable scope of that function." So in other words any s

[PHP] Create Login Page

2002-11-18 Thread Pushpinder Singh Garcha
Hi All I am trying to create a login page using php and mysql database. This is the code that I am trying to use: // File Name: auth04.php // Check to see if $PHP_AUTH_USER already contains info if (!isset($PHP_AUTH_USER)) { // If empty, send header causing dialog box to appear header('

[PHP] http_get_var and isset() not working with script generated includes.

2002-11-18 Thread Moo
I wrote a bug report but [EMAIL PROTECTED] bogusified my report without the least bit of information. My script uses multiple includes and the file names all have the same syntax. So instead of writing each individual include, I created an array which contains all the filenames function LoadSectio

Re: [PHP] PHP Script to remove attachments from emails and store them on the server

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 03:54, Simon Chilmaid wrote: > Thanks for your help Jason, have you got any examples that you might be > able to send me on how you have used reformime to decode email messages Basically if you want to extract and save all attachments then you just pipe the message to

Re: [PHP] Check Left 4 characters of Form Variable

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 03:48, vernon wrote: > I have a form that is acting like an email page where there Subject is > being submitted from one page to another and tagging the subject with "RE: > ". I want to be able tack the RE: on but only if it doesn't already have it > there. I know that I

Re: [PHP] check for \n

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 03:37, John Taylor-Johnston wrote: > Like I have a clue :) > > I want to convert some fields from TEXT to VARCHAR(255). > (Going from a textarea to an input type=text) > I've checked the length of each $mydata->ST, so I won't be losing data. > What I am worried about is

Re: [PHP] Distance Based on Zip Code

2002-11-18 Thread Jason Wong
On Tuesday 19 November 2002 04:21, vernon wrote: > Does anyone know how I can set something up that tells the distance between > one Zip Code and another? I'm needing to be able to set something up where > one user's record is compared to another and a distance is measured. Any > have any ideas? S

[PHP] Distance Based on Zip Code

2002-11-18 Thread vernon
Does anyone know how I can set something up that tells the distance between one Zip Code and another? I'm needing to be able to set something up where one user's record is compared to another and a distance is measured. Any have any ideas? -- PHP General Mailing List (http://www.php.net/) To un

[PHP] using mapquest with php

2002-11-18 Thread Alexander Ross
I want to make a very simple form which asks for a starting city/state and an ending city/state. When the user hits submit, the number of miles from city A to City B is displayed ... no directions, no maps, no exact locations .. just the milage. Can I use mapquest to do this? how? Is there anoth

RE: [PHP] PHP Script to remove attachments from emails and store them on the server

2002-11-18 Thread Simon Chilmaid
Thanks for your help Jason, have you got any examples that you might be able to send me on how you have used reformime to decode email messages -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 05:35 To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Script to

[PHP] Check Left 4 characters of Form Variable

2002-11-18 Thread vernon
I have a form that is acting like an email page where there Subject is being submitted from one page to another and tagging the subject with "RE: ". I want to be able tack the RE: on but only if it doesn't already have it there. I know that I can use and if statement, but how to I check the left 4

[PHP] check for \n

2002-11-18 Thread John Taylor-Johnston
Like I have a clue :) I want to convert some fields from TEXT to VARCHAR(255). (Going from a textarea to an input type=text) I've checked the length of each $mydata->ST, so I won't be losing data. What I am worried about is losing data if there are \n in any of the fields. How do I check to see i

[PHP] output compression

2002-11-18 Thread Chris Mason
I've enabled output buffering in php.ini with output_buffering = On output_handler = ob_gzhandler I have had one user in the UK email and say their browser is crashing, has anyone seen this with output compression? Any other comments about using ob_gzhandler? Chris Mason [EMAIL PROTECTED] Box

Re: [PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
I'd be willing to post the entire page, but it's 154 lines of embedded php. Here's the FORM block portion of the page. The $sqn_list_box variable contains the listbox. $export_form .=" Export Check file: $sqn_list_box "; On Mon, 2002-11-18

[PHP] Apache Module vs CGI, both??

2002-11-18 Thread Peter Janett
I'm setting up a new server that will host many different customer sites via Apache virtual hosts. I'm trying to decide if I should use SuExe with Apache, and run PHP and Perl with it, or just to run everyone as the web server user, and compile PHP (and/or Mod_Perl) as a module. I understand the

Re: [PHP] explicit dot in open_basedir

2002-11-18 Thread Marc Delisle
My question was: what is supposed to happen if there is no dot in the open_basedir path, for example: open_basedir = /www Should I be able to open a file in ./tmp ? The way I understand the open_basedir doc, I should not be able. But another PHP user is telling me that he can open a file in ./t

[PHP] enable-gd-native-ttf or tt?

2002-11-18 Thread adrian [EMAIL PROTECTED]
i know nothing about building php really but my isp recently upgraded(version 4.1.2) and now imagettftext() function doesn't work.the error i get is: Warning: libgd was not built with FreeType font support .. see phpinfo() http://217.114.163.70/info.php what i noticed was this bit of the configur

Re: [PHP] Post Problem

2002-11-18 Thread Maxim Maletsky
I think you should comment on this bug: http://bugs.php.net/bug.php?id=18648 provide the details about your system configurations and everything else that might help us to fix it. Though, it seems to be an Apache2 problem, so try upgrading that as well. -- Maxim Maletsky [EMAIL PROTECTED] "

[PHP] Why Yahoo chose PHP

2002-11-18 Thread Paul Wilczynski
I ran across this recently ... thought you might find it interesting ... http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.pdf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to use string as variable name?

2002-11-18 Thread Marek Kilimajer
Convert $day="2002-11-22" to just $day="d20021122" and $$day will be really $d20021122 -<[ Rene Brehmer ]>- wrote: Hi gang I'm suffering under the lack of an SQL, which would've made this loads easier, so instead I'm forced at using a bunch of arrays to keep track of the info instead... But h

Re: [PHP] How to use string as variable name?

2002-11-18 Thread Adam Voigt
$date = "2002-11-22"; $myvar = "a" . str_replace("-","",$date); $$myvar = "hi"; echo "$a20021122"; Enjoy. On Mon, 2002-11-18 at 13:05, -<[ Rene Brehmer ]>- wrote: > Hi gang > > I'm suffering under the lack of an SQL, which would've made this loads > easier, so instead I'm forced at using a bunc

[PHP] How to use string as variable name?

2002-11-18 Thread -<[ Rene Brehmer ]>-
Hi gang I'm suffering under the lack of an SQL, which would've made this loads easier, so instead I'm forced at using a bunch of arrays to keep track of the info instead... But here's the prob: I'm working on a list of premieredates for movies. Here's the HTML version I made to figure out how to

RE: [PHP] Post Problem

2002-11-18 Thread Ford, Mike [LSS]
> -Original Message- > From: Dave J. Hala Jr. [mailto:[EMAIL PROTECTED]] > Sent: 18 November 2002 17:30 > > I'm running php-4.2.2-8.0.5 on Redhat 8.0 > > Lately I've noticed that when doing a form, listbox variables > have funky > values in certain situations. Unfortunately, I haven't b

Re: [PHP] Post Problem

2002-11-18 Thread BigDog
but where is the form that you created... That was i can see what you have set up inside of the form tag... On Mon, 2002-11-18 at 17:51, Dave J. Hala Jr. wrote: > SQN: 4SQN=4 SQN: 4SQN=4 > > > > Nifcap - Export Checks > > > > > >Export Checks > > >

Re: [PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
SQN: 4SQN=4 SQN: 4SQN=4 Nifcap - Export Checks Export Checks https://122.192.204.199/payment/tmp/checks_4SQN=4.zip";>checks_4SQN=4.zip https://122.192.204.199/payment/pay_menu.php"

Re: [PHP] testing

2002-11-18 Thread Maxim Maletsky
just mail: [EMAIL PROTECTED] :) You succeded though :) -- Maxim Maletsky [EMAIL PROTECTED] [EMAIL PROTECTED] wrote... : > > > not sure how to post > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing Lis

Re: [PHP] echoing date of first and last day of current week.

2002-11-18 Thread Maxim Maletsky
probably, what you tried is the most elegant way. But, you got me: "mathematically" I did *this* for you: \n"; print_r($res); ?> Cheers, and thank my curiousity :) -- Maxim Maletsky [EMAIL PROTECTED] "Noodle Snacks" <[EMAIL PROTECTED]> wrote... : > I want to get the unix timestamps of the

Re: [PHP] Post Problem

2002-11-18 Thread BigDog
What does the entire form look like? On Mon, 2002-11-18 at 17:43, Dave J. Hala Jr. wrote: > I selected the option that would have the value "4", what I get is > "4SQN=4" I should get just the value "4" > > > On Mon, 2002-11-18 at 04:33, BigDog wrote: > > That is what you should be getting rig

Re: [PHP] echoing date of first and last day of current week.

2002-11-18 Thread BigDog
Probably the best way is to convert the times all into seconds and then do the math to get the last day of the week. Should be relatively easy... HTH On Mon, 2002-11-18 at 05:57, Noodle Snacks wrote: > I want to get the unix timestamps of the first and last days of this week... > > Currently I

Re: [PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
I selected the option that would have the value "4", what I get is "4SQN=4" I should get just the value "4" On Mon, 2002-11-18 at 04:33, BigDog wrote: > That is what you should be getting right? > > When you have a select statement that has a value as the first one then > that is what you will

Re: [PHP] Post Problem

2002-11-18 Thread Rick Emery
No, he's saying that: echo $sqn; displays SQN=4. it should say simply 4 - Original Message - From: "BigDog" <[EMAIL PROTECTED]> To: "Dave J. Hala Jr." <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, November 18, 2002 4:33 AM Subject: Re: [PHP] Post Problem That is what you s

Re: [PHP] explicit dot in open_basedir

2002-11-18 Thread BigDog
The explicit dot is to tell the system that you want the current working directory. So by saying "./tmp" you want the tmp (directory or file) that is located in the current working directory. If i understand what you are saying is that "./tmp" is a directory in the current working directory. If

Re: [PHP] Post Problem

2002-11-18 Thread BigDog
That is what you should be getting right? When you have a select statement that has a value as the first one then that is what you will get when you post or get the form. if you want a blank one then do and that should not pass anything in the post or get... On Mon, 2002-11-18 at 17:30, Dav

Re: [PHP] decode

2002-11-18 Thread Maxim Maletsky
where is that coming from? What encoding is that? Any info of the "b abbab abbab baaba" part? -- Maxim Maletsky [EMAIL PROTECTED] "Roman Duriancik" <[EMAIL PROTECTED]> wrote... : > Please Help me ! > This is not a php problem but if someone knows how to decode this : > I have document i

Re: [PHP] sunrise/sunset programs?

2002-11-18 Thread Maxim Maletsky
I saw some similar code once... But PHP does not have it installed by default. Try searching on Google, HotScripts and SourceForge... I'm sure you will come up with something -- Maxim Maletsky [EMAIL PROTECTED] "Adam" <[EMAIL PROTECTED]> wrote... : > Does anyone know if PHP has the capabilit

[PHP] Post Problem

2002-11-18 Thread Dave J. Hala Jr.
I'm running php-4.2.2-8.0.5 on Redhat 8.0 Lately I've noticed that when doing a form, listbox variables have funky values in certain situations. Unfortunately, I haven't been to determined what the certain situation is. Here's an example. Here is the listbox in the form: 4 6

Re: [PHP] Browsing directory

2002-11-18 Thread Maxim Maletsky
look at here: www.php.net/dir -- Maxim Maletsky [EMAIL PROTECTED] Helen Muller <[EMAIL PROTECTED]> wrote... : > > I would like to create a web page which allow people to browse the directory >structure and the files listed in every directory. If you have experience about that, >could you

Re: [PHP] PHP Newbie question

2002-11-18 Thread Maxim Maletsky
Steps: 1. Install PHP. Already installed? 2. make a file accessible via browser and call it test.php 3. put this into it: "; phpinfo(); ?> 4. Now, access that file. If you see "Hello World" outputted followed by a long blue-gray table with lots of server data -

  1   2   >