- 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
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
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
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
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
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
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
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
// 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
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
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
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
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
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
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
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
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
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
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 cant change the price based on
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
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
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.
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, $
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
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
> > $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
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
> 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
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
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
> 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
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
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
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
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]
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
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
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
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
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)
{
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
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
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() ) ;
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
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
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
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
>
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
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
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
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
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
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
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
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
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
101 - 156 of 156 matches
Mail list logo