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

[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 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

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 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] 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] 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] 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

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

[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

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

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

[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 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

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

[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
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] 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

[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

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

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] 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: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, $

[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

[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

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] 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] 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] 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] 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

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] 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] 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] 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

[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]

[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

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] 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] 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
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) {

[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

[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] 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] 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

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] 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] 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] 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] 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] 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

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

[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] 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

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] 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

[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

<    1   2