This should be a FAQ!
I would say it would point to register globals being turned off in php.ini for
the newer versions of php.
check this pages for more information:
http://www.php.net/manual/en/security.registerglobals.php
-Brad
abw wrote:
> This week we upgraded our solaris 8 server using ap
You are welcome... anytime..
Also you can add an attachment dispos... if you want and it will get
them to save to disk instead..
Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]
HITCHO has Spoken!
-Original Message-
From: Thomas Nilsen [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 12 O
This week we upgraded our solaris 8 server using apache 1.3.27 from php
4.1.2 to 4.2.3, and it seemed to install fine. The strange thing is that
most all php web pages appear, but the code does not work. For example, our
support section heavily uses php, and nothing at all was changed on it, ye
Excellent! Works like a charm.
Thanks for your speedy help Timothy.
Regards, Thomas
"Timothy J Hitchens" <[EMAIL PROTECTED]> wrote in message
005f01c27162$0804c820$0500a8c0@BAMBINO">news:005f01c27162$0804c820$0500a8c0@BAMBINO...
> Easy...
>
>
> header('Content-Type: audio/mpeg');
> readfile('
Easy...
What this does it sends a header then the file is read from disk to
standard out.
Please note you may need to get your include/paths correct...
Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]
HITCHO has Spoken!
-Original Message-
From: Thomas Nilsen [mailto:[EMAIL PROTE
It's the part sending the header back to the browser with the correct info
I'm not sure about. I can handle the conversion of the audio file, but I'm
not sure how to get the browser to read the converted file once it's ready.
"Timothy J Hitchens" <[EMAIL PROTECTED]> wrote in message
005301c27159
I'm sure it's all related to the register_global and error_reporting
settings in php.ini...
Enjoy.
---John Holmes...
> -Original Message-
> From: Justoman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 3:17 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Login Info not being re
After putting up the latest version of PHP (4.2.3 I think) I've had nothin
but problems with my scripts.
One of those problems is the script not remembering my login information.
Has anyone else experienced this, or know anything about this problem?
Thanks,
-Justin
--
PHP General Mailing L
> Anyone got any ideas as to how I can solve the following in PHP?
>
> I want to be able to select a file, and convert it from sox format to
MP3
> or
> WAV, and then play it in the requestors browser? Can this be achieved
in
> an
> easy way?
>
> The problem I have is to be able to call up lame/
Why don't you call your converter then pipe out to a file... the then
send headers for that type
of file and readfile to the browser..
Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]
HITCHO has Spoken!
-Original Message-
From: Thomas Nilsen [mailto:[EMAIL PROTECTED]]
Sent: Saturday,
Anyone got any ideas as to how I can solve the following in PHP?
I want to be able to select a file, and convert it from sox format to MP3 or
WAV, and then play it in the requestors browser? Can this be achieved in an
easy way?
The problem I have is to be able to call up lame/sox or similar too
You just have one server, right? Is there any kind of load-balancing
going on that uses several servers?
---John Holmes...
> -Original Message-
> From: Josh Bauguss [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] sometimes I ge
I've searched this mailing list and couldn't find anybody with a similar
problem.
I am seeing periodic session write failures on my server. I get the classic
PHP Warning: Failed to write session data (files). Please verify that the
current setting of session.save_path is correct
(/home/t-shirt
Hello,
Well, I installed openldap, and it tests out good. Now, I want to configure
php to work with it. My question now is, where exactly is ldap located? I
tried a few paths:
./configure --with-mysql --with-apxs2=/www/bin/apxs
--with-ldap=/usr/local/etc/openldap
./configure --with-mysql --with-a
The problem is crontab doesn't heve enviroment, there is no $PATH, $USER ...
Sharat Hegde wrote:
> Hello John,
>
> Thanks for the help. I was able to solve this. Thanks Marek for your
> help too in giving the same solution.
>
> The problem was with the crontab command not having the full path t
Hello John,
Thanks for the help. I was able to solve this. Thanks Marek for your help
too in giving the same solution.
The problem was with the crontab command not having the full path to php.
Silly that a command line on the shell script should work but crontab is
unable to find the same pat
Hey all,
I am having some interesting, but confusing results when I use date().
What is confusing me is that when I use date with only the first argument, I
get some interesting results with the timezone.
i.e.
You would expect to see something like this:
Fri, 11 Oct 2002 13:24:53 -0500 Eas
> I have a small problem a string I have for example : $myvar= "hell friend";
> When I display the content of $myvar with echo I see "hell" and not
the
> rest.
>
> I suppose the problem come from the < how solve the problem ?
You're putting that string in HTML and it's being evaluated by the
bro
Try
$myvar = 'hell From: Christian Ista [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 12:56 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Trouble wirh < in a string
>
>
> Hello,
>
> I have a small problem a
Hi,
I need to read from a csv file (with quotes). I use the example from the
manual, and it does spit it out how I want it, but I need to access one of
the fields and pass that data to something else.
So it's like this, I need my csv file to be displayed in a table, but the
last column will cont
Hello,
I have a small problem a string I have for example : $myvar= "hellhttp://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am trying to upload a big file on dialup to my server but it keeps
timing out. Is there a way I can split it and then piece it together
online like winzip but with tar?
Randum Ian
[EMAIL PROTECTED]
DJ / Reviewer / Webmaster, DancePortal (UK) Limited
DancePortal.co.uk - Global dance musi
the line
global ;
should be
global $some_variable;
or delete it
Verdon Vaillancourt wrote:
>Hi Apologies if this question has been answered before and I can't find it.
>I have searched and although finding similar issues, I haven't been able to
>fix.
>
>I have a file that creates a search for a
Suppose that form's buttons are
That's all
"Jonathan Rosenberg" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have been digging through the documentation for a while, but I can't
find
> the answer to this ...
>
> If I have a form with multiple submit
If you're going to use an array in a string, you have to surround it
with braces.
echo "value is {$c2[something]} okay?";
Or, exit out of the string:
echo "value is " . $c2['something'] . " okay?";
If you use it outside of the string, you need the single/double quotes
around the key so you don
Hello everybody,
I started a web development firm with a friend of mine, and although
we've had success in our endeavour, we're having a hard time trying to
find qualified developers in our country.
We specialize in developing custom web-based solutions using PHP and
MySQL, ranging from Intran
Hi Apologies if this question has been answered before and I can't find it.
I have searched and although finding similar issues, I haven't been able to
fix.
I have a file that creates a search for and then is supposed to post to
itself to retriev results. When I add the first function (the searc
I have a very, very little site for a client, I have to set a username and
password to admin some data they publish, the problem is that in my server
the cookies and sessions work excellent, but when I publish the same code
in my client's server it doesn't work, the cookie is deleted immediatel
Yeah, maybe. The version I've seen it work on all had PHP installed as a
module in IIS.
---John Holmes...
> -Original Message-
> From: Daniel Masson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 11:23 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP] Win nt
More details on this...
As I pay more attention to when it is sluggish or not, I notice that it
seems to run fine on a typical page, with or without mySQL connections.
But... the slowdown comes whenever I'm into my frame-based Admin, where 2-3
frames are typically loading at the same time. The
[snip]
I have been digging through the documentation for a while, but I can't find
the answer to this ...
If I have a form with multiple submit buttons, how can I tell in PHP which
button was clicked?
[/snip]
Use a switch/case statement;
switch($action)
{
case "Save":
// query
Hi,
Jonathan Rosenberg wrote:
> I have been digging through the documentation for a while, but I can't find
> the answer to this ...
>
> If I have a form with multiple submit buttons, how can I tell in PHP which
> button was clicked?
just give them different names e.g. submit1, submit2 ... and
I have been digging through the documentation for a while, but I can't find
the answer to this ...
If I have a form with multiple submit buttons, how can I tell in PHP which
button was clicked?
--
JR
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
try using full path in your cron job, like
* * * * * /usr/local/bin/php /path/to/your/cron.php
Sharat Hegde wrote:
> Hello,
>
> I am having a problem at my ISP relating to execution of PHP commands
> from the crontab command. My ISP told me to have a look at the
> following URL, but despite fo
On Fri, 11 Oct 2002, Sharat Hegde wrote:
>-Hello,
>-
>-I am having a problem at my ISP relating to execution of PHP commands from
>-the crontab command. My ISP told me to have a look at the following URL, but
>-despite following these instructions, the crontab job is not being executed.
>-http:
Thanks, im just wondering ... There are some ASP scripts in this same
server and they get the variable perfetcly, the directories have the
same config, i dont know whats wrong with this, maybe beacuse the
gateway is CGI ???
Cordialmente
Daniel Massón => Ingeniero de desarollo
[EMAIL PROTECTED]
ww
Hello,
I am having a problem at my ISP relating to execution of PHP commands from
the crontab command. My ISP told me to have a look at the following URL, but
despite following these instructions, the crontab job is not being executed.
http://www.htmlcenter.com/tutorials/tutorials.cfm/155/PHP/
it has 4.1 down here i'm upgrading to 4.04 Pro beta to check it out
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 12, 2002 1:09 AM
To: 'electroteque'; [EMAIL PROTECTED]
Subject: RE: [PHP] mysql stored procedures
Hi,
> when is this being impleme
Hi,
> when is this being implemented ?
Go and ask on the MySQL list. Version 5 was the last I heard.
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Marco,
Do I need to configure openldap to point to my Exchange server? If so, how?
Jody
> -Original Message-
> From: Marco Tabini [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 9:38 AM
> To: Jody Cleveland
> Cc: Php-General (E-mail)
> Subject: Re: [PHP] how to configure
Le 11/10/02 11:39, « Simon Taylor » <[EMAIL PROTECTED]> a écrit :
> Have you tried it like this?
> $_SESSION['sess_client'] = $ClientName;
> $_SESSION['sess_ref_clientFact'] = $ClientRef;
Yes...but it doesn't work.
>
> If it still gives you the old vars I would look at where the $ClientName an
Make another file that has your code in it and sends an image/jpeg
header. Then insert the image like any other image:
Hope you're not violating any copyrights...
---John Holmes...
> -Original Message-
> From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002
On Fri, 11 Oct 2002, electroteque wrote:
>-when is this being implemented ?
Perhaps in version 4.1 of the MySQL server.
Have a look near the bottom of this page...
MySQL 4.1, the following development release
http://www.mysql.com/products/mysql-4.0/index.html
>-
>-
>-
>---
>-PHP Genera
First of all you have to open this file as a binary
e.g. fopen("myfile.jpg","rb");
then you shound send the apropriate html headers to display the image
e.g. header("Contet-type: image/jpeg");
"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
Save your first bit of code in a file (e.g.: image.php)
Your HTML file should look like this:
...
.
Regards,
Daniel Kushner
_
Need hosting? http://thehostingcompany.us
-Original Message-
From: Anthony Ritter [mailto:[EMAIL PROTECT
You need an LDAP package like OpenLDAP:
http://www.openldap.org/
On Fri, 2002-10-11 at 10:37, Jody Cleveland wrote:
> Hello,
>
> I'm trying to configure php with ldap support. Looking at ./configure
> --help, I noticed that when I configure it, I need to put this in:
> ./configure --with-ldap=[
The following script picks up single .jpg image of a doppler weather map
from another URL:
...
http://image.weather.com/web/radar/us_har_closeradar_medium_usen.jp
g";
if(!($fp=fopen($theURL, "r")))
{
print("Could not open the URL.");
exit;
}
$contents=frea
> include("include.php"); //This contains the database connection
code
> and whatever other global code, as well as the layout functions.
> doheader(); //This function contains the top of the layout.
> //Do whatever the page does
> dofooter(); //This function contains the
Hello,
I'm trying to configure php with ldap support. Looking at ./configure
--help, I noticed that when I configure it, I need to put this in:
./configure --with-ldap=[dir]
My question is, where is ldap? I'm running Redhat 7.3 with Apache 2.
My ultimate goal is, I'm running Squirrelmail, and I
Discover in my code..
Ex: I want create a file in the php temp dir.
$tempdir = getPHPTempDir();
fopen($tempdir . "test.txt", w+);
"Evandro Sestrem" <[EMAIL PROTECTED]> escreveu na mensagem
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Sorry if is a newbie question...
>
> but ho
Whenever Zend Engine 2.0 is used. Try doing some reading on the PHP
site.
---John Holmes...
> -Original Message-
> From: electroteque [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 9:49 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: private and public in class objects
>
>
It's there...
$_ENV['LOGON_USER']
You may have to turn on some NT setting in IIS for that directory...if
you're using IIS.
---John Holmes...
> -Original Message-
> From: Daniel Masson [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 9:55 AM
> To: [EMAIL PROTECTED]
> Subject:
Sorry if is a newbie question...
but how I discover where is the php temp dir?
Thanks!!
Evandro Sestrem
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
This is actually a limitation of the sql libraries used by PHP (I assume
you're using Windows). Try using a cast to a text field:
Select Cast(Field As Text) As Field
This should (and I say should because I can't test it right now :) take
care of the problem, although it might make your db a
Steve,
I've only had a quick glance at this but from the code you've posted you don't seem to
be associating a variable with the hidden field you're referring to in the
display_form function.
You need to store the amount in a variable and then refer to the variable in the value
attribute of t
Hey, gang!
I am planning to write a small web application using PHP. The
application has several business classes, which store their persistent data
in relational database. I don't like the idea of embedding the SQL and
other data access related code into my classes, so i am looking for a
abstrac
I am having difficulty passing details to a form.
I need to somehow pass a variable cost to a form.
The cost is made up of items in a cart (details taken from a Mysql DB)
and a shipping cost. I then have a function written to display the
credit card form (which needs to be passed to a secure ser
If you're using UNIX, you can try reading and writing to/from /dev/ttyS*
or /dev/ttyS/*
On Fri, 2002-10-11 at 06:34, José León Serna wrote:
> Hello:
>I would like to read and write to serial ports from PHP, is possible?
> if so, how?
>
> Regards.
>
>
> --
> PHP General Mailing List (http
can anyone answer this ?
"Electroteque" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi i was wondering when this was or is going to be implemented into class
> objects ? i have the syntax for it ie setting a private function
_function()
> and private var $_
Hello:
I would like to read and write to serial ports from PHP, is possible?
if so, how?
Regards.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
1) I wake up too early this morning
2) I've lost my glasses
3) I forgot... Session_start()
...shame on me...
Thanks to all.
Regards.
---
Stéphane Pinel
[EMAIL PROTECTED]
iChat : [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
See your php.ini file:
; Always populate the $HTTP_RAW_POST_DATA variable.
;always_populate_raw_post_data = On
On 11 Oct 2002, Cole Tuininga wrote:
>
> Quick question - is there an equivalent to QUERY_STRING for POSTs? I
> need the deata to essentially be in the same format as for GETs. If th
Quick question - is there an equivalent to QUERY_STRING for POSTs? I
need the deata to essentially be in the same format as for GETs. If the
answer is "build it myself" from $_POST, so be it. I was hoping there
was a more elegant solution though. 8)
-Cole Tuininga
[EMAIL PROTECTED]
--
P
Hello,
Have you tried http://www.phpclasses.org/ ?
-E
On Friday, October 11, 2002 11:31 PM
Subject: [PHP] Object-relational mapping and PHP
Juhan Kundla wrote:
[snip]
>
> I would rather not reinvent the wheel here, so it would be nice, if
> anybody could share her/his experience or suggest so
php-general Digest 11 Oct 2002 10:27:24 - Issue 1637
Topics (messages 119588 through 119624):
Re: MS SQL server TEXT column
119588 by: John W. Holmes
Re: Calling PHP (cgi) from a perl script and passsing parameters
119589 by: Sascha Cunz
119592 by: Jim Carey
Just created a Mozilla keyword for the php manual, after being too lazy
for too long, so here it is, in case anyone else finds it useful:
http://www.php.net/search.php?show=quickref&pattern=%s
The keyword is obviously php (at least in my case). Since I already
spammed you with this, here are a
Hehe - no prob - you can also set it to always start in php.ini if it suits
your needs.
Cheers
Simon
-Original Message-
From: Stéphane Pinel [mailto:[EMAIL PROTECTED]]
Sent: 11 October 2002 12:10
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Updating session variables (resolced: shame on me)
If you suspect your SQL server is slow, try the submit without
inserting/selecting, just throw the data away, and maybe print out some
static data.
Omar Campos wrote:
>Hi. I run php in win2k server, IIS and MS SQL Server 2k.
>I've created some data bases and tables. On the beginning, sending a
Hey everyone, id like to know how to get the logon user in my NT domain,
i know that this can be done in ASP:
Request.Servervariables("LOGON_USER"), and gets the logged user of the
client machine, i need to do that with PHP, ... im affraid this is not
possible because, runing phpinfo() ... this va
Hmm, I was expecting that. ;)
Looking back, when you said that this code
>echo("Go home");
> ?>
would obviously create a trailing slash problem, I should have just said
that it's true IF you code it that way. I should have just said that there's
an ALTERNATIVE way of coding that wouldn't cr
when is this being implemented ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Have you tried it like this?
$_SESSION['sess_client'] = $ClientName;
$_SESSION['sess_ref_clientFact'] = $ClientRef;
If it still gives you the old vars I would look at where the $ClientName and
$ClientRef are coming from.
-Original Message-
From: Stéphane Pinel [mailto:[EMAIL PROTECTED]]
Same problem...
Thanks.
---
Stéphane Pinel
[EMAIL PROTECTED]
iChat : [EMAIL PROTECTED]
Le 11/10/02 11:26, « Simon Taylor » <[EMAIL PROTECTED]> a écrit :
> Hiya,
> Try using $_SESSION['variablename']
> To refer to session variables.
> Cheers
> Simon
>
> -Original Message-
Hiya,
Try using $_SESSION['variablename']
To refer to session variables.
Cheers
Simon
-Original Message-
From: Stéphane Pinel [mailto:[EMAIL PROTECTED]]
Sent: 11 October 2002 11:16
To: [EMAIL PROTECTED]
Subject: [PHP] Updating session variables values during session
Hi,
PHP 4.1.X
I'm
Hi,
PHP 4.1.X
I'm trying, during the session time, to change the value of 2 session
variables:
My first attempt was simply like this:
$sess_client = $theClient;
$sess_ref_clientFact = $theRefClient;
...but following pages still get old values from the session variables.
Then I tried this:
Hi everyone
I'm having terrible trouble compiling PHP with net-snmp:
/bin/sh /usr/local/src/php-4.2.3/libtool --silent --mode=compile gcc -I.
-I/usr/local/src/php-4.2.3/ext/snmp -I/usr/local/src/php-4.2.3/main
-I/usr/local/src/php-4.2.3 -I/usr/local/apache/include
-I/usr/local/src/php-4
I am having problems downloading files using PHP. The download part
works correctly but when I try to browse other links (using IE only,
Netscape works fine) they get stuck. I am using frames. It all works
fine when I reload the page from where I download files.
Is there any way to split up cont
i have some trouble with mssql_result cause it will return me a result
limitted at 255 char max.
in my php.ini i set this value :
mssql.textsize=65536
mssql.textlimit=65536
and in SQLSERVER my field type is VARCHAR(2048)
can you help me please ???
--
PHP General Mailing List (http://www.php
I am having difficulty managing forms. for example I have a table builder
class which builds me a table of a query with all the bells and whistles to
make it editable etc. so it creates it's own form to build itself on,
then I have a dateselector class which builds a nice little graphic date
selec
79 matches
Mail list logo