Hi,
I just configured and make'd PHP with no problem, but when I run make test,
I get the following output:
-
=
CWD : /home/programs/php/php-4.3.0
PHP : /home/programs/php/php-4.3.0/sapi/cl
--- Bobby Patel <[EMAIL PROTECTED]> wrote:
> I was trying to do it without cURL, since it's not on our
> server.
You can do it manually. There is probably a lot of good
information on this topic if you search through the
archives on automating a post. To give you a quick idea,
you can check out th
Hi Chris--
Try this:
0)
{
$kbitsout = float) $data['OctetsOut'] - $olddata['OctetsOut']) /
($data['UnixTime'] - $olddata['UnixTime'])) * 8 ) / 1000;
print str_pad ($i, 2, ' ', STR_PAD_LEFT) . ' -- ' . number_format
($kbitsout, 2) . " kbits/s\n";
Not really sure if this would be a PHP or a MySQL issue. I'm using a
database to store username for authentication purposes. Is there a way to
make the user entry match case in the mysql database? Right now I have
some users with all uppercase usernames that are able to login typing
their usernam
Actually, the problem is not the session_start() or hte php.ini. For some
reason, IIS had started to forget that this php.ini is there. So, any
changes to the php.ini I made does not affect the website after stopping,
starting and rebooting IIS.
"Christoph Grottolo" <[EMAIL PROTECTED]> wrote in
this is addressed in quite a few dedicated articles in php sites.
For me some of the big pros of PHP:
- the active community behind it
- associated open source products (such as phpMyAdmin and the Smarty
template engine)
- the ease and power behind coupling it with MySQL databases (ASP has of
cour
I am having trouble retrieving any type of result using Sybase and PHP.
Regardless of function call, I receive the following error:
Warning: 1 is not a Sybase result index in /var/apache/
I have successfully executed and retrieved results using the same queries
using isql from the command lin
What field type did you make the usernames?
TEXT types are case incensitives use VARCHAR
*** REPLY SEPARATOR ***
On 06/01/2003 at 2:09 PM [EMAIL PROTECTED] wrote:
>Not really sure if this would be a PHP or a MySQL issue. I'm using a
>database to store username for authenti
Hi all,
I have a PHP page that returns products. My client wants to have a button
beside each product that says "Download". When you click download, he wants
the "Save Picture" Window box to automatically open and allow the viewer to
select the location to save the image that he clicked "DownLoa
Does anyone know a way to fetch your own IP-adress? I need it because I run
a web server on my computer with a dynamic-IP so I need it to change all the
URLs it creates dynamically...
Thanks!
-Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
Is bandwidth an issue?
If not, you could have a at the top of your page, flush it before
beginning your data parsing, and update it with a table with two columns, 1
with a bgcolor of some color, the other with no bgcolor, and have the width
of the columns change as the javascript updates it.
i.e
I use Windows XP Pro...:-S
"Charles Likes Php" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anyone know a way to fetch your own IP-adress? I need it because I
run
> a web server on my computer with a dynamic-IP so I need it to change all
the
> URLs it
In Apache it's $_SERVER['SERVER_ADDR'] But I don't know if this applies to
IIS as well.
-Kevin
- Original Message -
From: "Charles likes PHP" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 1:45 PM
Subject: [PHP] Get your *own* IP...?!
> Does anyone know a wa
Use the super-global variable $_SERVER['SERVER_ADDR']
(or another solution might be to generate relative, rather than absolute,
URLs: /somedir/somepage.php instead of
http://192.168.1.1/somedir/somepage.php)
On 1/6/03 12:45 PM, "Charles likes PHP" <[EMAIL PROTECTED]> wrote:
> Does anyone know a
I hope that I can explain this problem in a logical and clear way.
In MySQL, I have two tables for information::
foo, which contains
FooID, FooLName, FooFName
and
foocontact, which contains
FooID, FooContactID, FooEmail, FooPhone, FooAddress1, etc.
Honestly, I can't remember why I split up the
No, it has to be an absolute path...
$_SERVER["SERVER_ADDR"] seems to be empty on my system and I couldn't find
anything about that variable in the manual either...
Aaargghhh!
"Charles Likes Php" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anyone kn
--- "Matthew K. Gold" <[EMAIL PROTECTED]> wrote:
> SELECT FooLName, FooPhone, FooEmail
> FROM foo, foocontact
> WHERE foocontact.FooID=$FooID and foo.FooID=$FooID;
You might try this instead:
select foolname, foophone, fooemail
from foo, foocontact
where foo.fooid='$fooid' and foo.fooid=foocon
Hi,
Here is the simple script with which I am trying to have the user to
download a file when the file name is posted from the user agreement page.
dlQ_safe.php
When a file submitted I get this...
"Warning: readfile("C:\temp\test.pdf") - No such file or directory in
c:\inetpub\wwwroot\dlQ_safe
Try echoin out this:
getenv("SERVER_ADDR");
- Original Message -
From: "Charles likes PHP" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 06, 2003 4:33 PM
Subject: [PHP] Re: Get your *own* IP...?!
: No, it has to be an absolute path...
:
: $_SERVER["SERVER_ADDR"]
Have you tried $PHP_SELF?
A combination of $PHP_SELF, $REQUEST_URI, and phpinfo(), should give you
the information you're looking for.
-j
=P e p i e D e s i g n s
www.pepiedesigns.com
Providing Solutions That Increase Productivity
Web Developement. Database. Hosting. Multimedia.
On Mon,
Hallo Charles
> Does anyone know a way to fetch your own IP-adress? I need it because I run
> a web server on my computer with a dynamic-IP so I need it to change all the
> URLs it creates dynamically...
>
Look at dyndns.org. Here you can get your own dns-entry
CU
Michael
--- Altug Sahin <[EMAIL PROTECTED]> wrote:
> $file = $_POST[fileID];
> $files_folder = "C:\\temp\\";
> $dlfile = $files_folder.$file;
>
> header("Content-type: application/pdf");
> readfile("$dlfile");
> ?>
>
> I get this...
> "Warning: readfile("C:\temp\test.pdf") - No such file or
> directory
Thanks Chris, I will check it out..
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> --- Altug Sahin <[EMAIL PROTECTED]> wrote:
> > > $file = $_POST[fileID];
> > $files_folder = "C:\\temp\\";
> > $dlfile = $files_folder.$file;
> >
> > header("Co
Does anybody know if a MS-DOS window (running a BAT file) can be opened
using a PHP command? Right now, I have Windows using the Task Scheduler to
open the MS-DOS window (which creates a file used later by PHP), while a PHP
webpage loops every few minutes and does whatever it needs to with the file
I'm not sure what syntax would work for you with one query. You might try
the mysql list. I personally make two queries. One would be a query to the
foo table to get the name and the second would be a loop to iterate through
each contact info entry. For each iteration you will get the array wit
I have 3 SunOS boxes, all running the same version of OS, apache and php. I
have a page on all three servers that will allow a user to select a
directory from a drop down box and upon selecting the directory, be able to
select a file to view from a drop down box. When the user selects the
directo
# Here is a datepicker that I wrote in PHP. Comments welcome !
# It's supposed to give you an endless calender and a link with the
# resulting timestamp when a day is clicked. I might add a time-field
# later. I know the code is not perfect, since I am not :-) If you have
# suggestions, please
Hello,
On 01/06/2003 01:21 PM, Rad Craig wrote:
I'm running under Win2k, new install of PHP(last week), I have been trying
to test the mail() function, but it doesn't seem to work. I host my own
mail server on the same machine and I know it works, has been for months,
all other mail come/goes ju
I have 3 SunOS boxes, all running the same version of OS, apache and php. I
have a page on all three servers that will allow a user to select a
directory from a drop down box and upon selecting the directory, be able to
select a file to view from a drop down box. When the user selects the
directo
If it were possible, it would likely be a javascript
function, rather than PHP, because it would be
controlled by the browser. Check the JavaScript
navigator or window objects.
# # #
Hi all,
I have a PHP page that returns products. My client
wants to have a
button
beside each product that says
> Not to cause a flame war, but, MySQL and PostgreSQL are both excellent
> choices, MySQL tends to be a lighter less feature rich database while
> PostgreSQL tends to have more features, perform better under load, etc.
Under differing types of load, yes. MySQL is more hit-based, while
PostgreSQL d
I can't use that as the program that I need for the email to work with, I
don't have access to it's mail() function...yet.
Rad...
> -Original Message-
> From: Manuel Lemos [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 4:28 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: mail
I have 3 SunOS boxes, all running the same version of OS, apache and php. I
have a page on all three servers that will allow a user to select a
directory from a drop down box and upon selecting the directory, be able to
select a file to view from a drop down box. When the user selects the
directo
Any idea why Im getting these empty messages?
Rick
"Freedom and immorality can not co-exist because freedom requires personal
responsibility." - Unknown
-- Forwarded Message
From: [EMAIL PROTECTED]
Date: Mon, 6 Jan 2003 17:41:19 -0500 (EST)
-- End of Forwarded Message
--
PHP Genera
I need to parse some source code to find the contents of a specific
function. The only way I can think of is to load the source file into a
string find the function by name and parse the text in the string and find
the end brace of the function, made difficult by the existence of all the
other bra
A MySQL timestamp is different to a MySQL timestamp.
$time = time(); will produce a unix timestamp
what you want is
$time = date('Y-m-d');
to give a value in the format -MM-DD
I think you can also use NOW():
$query = "INSERT INTO contacts (id, name, pass, email, dateAdded) VALUES
(NULL, '
What I would do, and this is one of those "write it once, use it a 1000
times" things, is store all your states in an array.
'Alabama',
'AK' => 'Alaska',
'AZ' => 'Arizona'
);
?>
Then, you can loop through that array to build your form element:
';
foreach($sta
Hello,
On 01/06/2003 08:46 PM, Rad Craig wrote:
I can't use that as the program that I need for the email to work with, I
don't have access to it's mail() function...yet.
As I explained, the class comes with a wrapper function named
smtp_mail() that emulates mail() function (but without the bu
At 11:54 AM 1/6/03 -0600, Steven Kallstrom wrote:
Alabama
Alaska
Arizona
.
$stateselected['$state'] is an array that stores the state that was
selected on the prior form. is there an easier way, to have a default
state picked out of this drop do
Ok I know it's off topic, but I've been working on this for over 5 hours now
and I almost have it configured, but something is definitely wrong!
Basically I can send email using sendmail by this command:
echo "Just a test" | mail -s "test" [EMAIL PROTECTED]
Now [EMAIL PROTECTED] receives the emai
Hi here,
I am sending a file to user's browser and logging the downloaded file into
MySQL but everytime this script works, I see double entry in the MySQL
table... Why is this happening?
Any ideas?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.p
I have this silly problem. This select query works fine.
$query_retrievetasks = "SELECT * FROM tasks, users WHERE tasks.UID =
users.User_id ORDER by tasks.ID";
But when I add a further filt
Monty --
...and then Monty said...
%
% Okay, I've read just about everything on the Internet about how the change
% the Return-Path header in an e-mail sent using mail(), but, I STILL can't
% get it to work. All e-mail sent via PHP says Return-Path: [EMAIL PROTECTED]
% and Received: (from nobody@
Hmm... I would expect that your sendmail.cf (if you are using sendmail)
hasn't got
your webserver (running as eg www or apache etc) in it's trusted users
file / listing.
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]
> -Original Message-
> From: David T-G [mailto:[EMAI
At 04:27 PM 1/6/03 , Bruce Levick wrote:
I have this silly problem. This select query works fine.
$query_retrievetasks = "SELECT * FROM tasks, users WHERE tasks.UID =
users.User_id ORDER by tasks.ID";
#
richard check your php.ini & the mail stuff in there .. it's most likely
using the address either there or ur web server config file
> -Original Message-
> From: Richard Baskett [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 7 January 2003 10:49 AM
> To: PHP General
> Subject: [PHP] PHP sendm
Hi Shawn,
check out phpDocumentor, it has a class named Parser that does exactly what
you need.
You can get the latest release at http://sourceforge.net/projects/phpdocu
nightly cvs builds are at http://developer.phpdoc.org/downloads
In CVS, there are 2 parsers to choose from, and both are very
Your SQL statement is selecting from two tables, it doesn't know which
table the 'active' column belongs to. Try one of the following as
appropriate to your schema:
tasks.active="yes"
or
users.active="yes"
HTH,
Jason k Larson
Bruce Levick wrote:
I have this silly problem. This select query
Yes that works.me newbie php skills falling down again...;0)
-Original Message-
From: Wee Keat (VisualDensity] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 10:25 AM
To: Bruce Levick
Subject: Re: [PHP] m SELECT
>###
I know I can use Visual Studio to edit PHP files as plain text, but has
anyone seen any way of creating some sort of add-in, or macro or whatever,
which would do syntax highlighting on PHP files?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
I'm having users post messages to a MySQL database records and want to
retain the formatting (such as carriage returns and so forth).
I have everything actually working all except that the formatting. Messages
are being posted but when they are returned they lack the carriage returns.
I'd like to
Assuming you are using a to allow your users to
input their text you need to either use the nl2br (converts new lines to
) or use tags, following are short examples:
print nl2br($data); or
print '';
print $data
print '';
You can find out more about the nl2br function at
http://www.php.net/man
Hi!
I am teacher on a University and I want that our page only be access by
specific people. Anyone has or knows where to find any php to administrate a
base of user and passwords (made in mysql)?
Thanks in advance,
Ezequiel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
I done a echo of Mysql_error and it returned:
'Nenhum banco de dados foi selecionado'
(I have the mysql server in portuguese, but the translation is something
like 'no db was selected')
- Original Message -
From: "David Freeman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, J
The problem is if I close the connection and reopen it the query is done,
but if I remain with the same connection has the previous query, mysql
returns an error.
- Original Message -
From: "Larry Brown" <[EMAIL PROTECTED]>
To: "MySQL List" <[EMAIL PROTECTED]>
Sent: Sunday, January 05, 20
It would be helpful if you posted that error. You can get it by changing
the die to
$queryr = mysql_query($query) or die(mysql_error());
Without knowing the error, you problem will be harder for everyone to debug.
-Original Message-
From: Nuno Lopes [mailto:[EMAIL PROTECTED]]
Sent: Mon
yep look at sites like phpbeginner.com, phpwizard.com,zend.com,
phpbuilder.com and browse ya way thru the tutorials there are plently of
sites out there such as the ones mentioned that will give you a great
helping hand :)
> -Original Message-
> From: Ezequiel Sapoznik [mailto:[EMAIL PROTE
Howdy,
I am looking to populate a list menu with the current date and then the
30days after that current date. Is there a small snippet of code that
achieves this??
Cheers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Bruce Levick wrote:
I am looking to populate a list menu with the current date and then the
30days after that current date. Is there a small snippet of code that
achieves this??
Hvae a look at date(), mktime() in the manual.
Here something that should help you get started, it is untested.
fun
I'm *positive* there is a better way, but this should work (untested):
0) { $stamp = $stamp + 86400; }
$date = date('d-m-Y',$stamp);
echo "{$date}";
$i++;
}
?>
Cheers,
Justin
on 07/01/03 4:39 PM, Bruce Levick ([EMAIL PROTECTED]) wrote:
> Howdy,
> I am looking to populate
That's sweet. Can you just satisfy my curiosity and explain the 86400??
I am thinking this might be minutes??
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 4:12 PM
To: Bruce Levick; [EMAIL PROTECTED]
Subject: Re: [PHP] populate a list me
Bruce Levick wrote:
That's sweet. Can you just satisfy my curiosity and explain the 86400??
I am thinking this might be minutes??
It the number of seconds in a day.
But that solution doesn't take into account Daylight Savings Time.
The one I posted does, I think ...
Jc
--
PHP General Mailin
Hello guys,
Right now im using dreamweaver mx
I was wondering if anyone knew of any good free text editors that has
line counts
And is good for php
.
Thanks
karl
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.434 / Virus Dat
on 07/01/03 5:13 PM, Bruce Levick ([EMAIL PROTECTED]) wrote:
> That's sweet. Can you just satisfy my curiosity and explain the 86400??
> I am thinking this might be minutes??
60 seconds * 60 minutes * 24 hours = 86400 seconds per day
we're increasing $stamp by 1 day each iteration of the while lo
Hi,
I am told to " merge ftp and www " !
I cant understand what it means..
May be it means that it should be possible to browse ftp directory
from a browser?
What is php's support for ftp?
Mukta
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/u
Sounds vague.
Here's the reference page for starters.
http://www.php.net/manual/en/ref.ftp.php
HTH,
Jason k Larson
Mukta Telang wrote:
Hi,
I am told to " merge ftp and www " !
I cant understand what it means..
May be it means that it should be possible to browse ftp directory
from a browser?
Hi.
I kind of got PHP syntax highlighting working within Visual Studio.NET
I've created a page, which mentions the steps you need to take to get it
working, as well as a screen shot. Everyone loves screen shots.
http://www.quake-au.net/php/php_and_vsdotnet.htm
Hope someone finds it useful apart
101 - 167 of 167 matches
Mail list logo