Richard Lynch wrote:
On Sun, February 10, 2008 9:09 pm, Robert Cox wrote:
Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a
URL
forwarded site? I am trying to find the authorised user id so that I
can
access an SQL database with it. Anyone got some ideas?
If you do a Loc
On Sun, February 10, 2008 9:09 pm, Robert Cox wrote:
> Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a
> URL
> forwarded site? I am trying to find the authorised user id so that I
> can
> access an SQL database with it. Anyone got some ideas?
If you do a Location: with a
On Feb 10, 2008 10:09 PM, Robert Cox <[EMAIL PROTECTED]> wrote:
> Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a URL
> forwarded site? I am trying to find the authorised user id so that I can
> access an SQL database with it. Anyone got some ideas?
Once again I'll defe
Robert Cox wrote:
Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a URL
forwarded site? I am trying to find the authorised user id so that I can
access an SQL database with it. Anyone got some ideas?
PHP looks like this
//Get User
$user = $_SERVER['PHP_AUTH_USER
--- Robert Cox <[EMAIL PROTECTED]> wrote:
> Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in
> a URL
> forwarded site? I am trying to find the authorised user id so that
> I can
> access an SQL database with it. Anyone got some ideas?
>
> PHP looks like this
>
>//G
Is it possible to use the "$_SERVER['PHP_AUTH_USER'];" construct in a URL
forwarded site? I am trying to find the authorised user id so that I can
access an SQL database with it. Anyone got some ideas?
PHP looks like this
On Wed, March 21, 2007 5:05 am, Albert Kopka wrote:
>
> Hi ...
>
> I want to generate certificate for smardcard login (MS Win-XP)
> and for do that the subject of certificate should contain same key
> (in key:value of $dn) multiple times for example ...
>
> cert generated by ca suplied with W-2
Hi ...
I want to generate certificate for smardcard login (MS Win-XP)
and for do that the subject of certificate should contain same key
(in key:value of $dn) multiple times for example ...
cert generated by ca suplied with W-2003 server for smartcard login
contains:
Subject: DC = local,
I am finishing a PHP session serializer module and am seeing wierd things. I
seems to work OK, but doesn't work with squirrelmail. It works mostly but
there seems to be one type that isn't working and I can't seems to find it.
If you want to help:
download and install xmldbx in your PHP, copy xmld
Hi,
I have the
two files which I send as an attachment.
One is simple form with a file upload box. The
other is the corresponding PHP file which sends the
information via e-mail. I used the code
provided here (http://pt.php.net/de/imap_mail_compose)
but something must be wrong.
Perhaps
Hello Bruce,
Thursday, July 7, 2005, 12:10:30 AM, you wrote:
BG> I get an error stating:
BG> "Warning:
BG> copy(/hsphere/local/home/bruceg/inspired-evolution.com/LOR-BRUCE.pdf):
BG> failed to open stream: Permission denied in
BG> /hsphere/local/home/bruceg/inspired-evolution.com/Uploader.php on
I am testing a page that uploads a file to my server using PHP.
I get an error stating:
"Warning: copy(/hsphere/local/home/bruceg/inspired-evolution.com/LOR-BRUCE.pdf):
failed to open stream: Permission denied in
/hsphere/local/home/bruceg/inspired-evolution.com/Uploader.php on line
4
Could not c
Greg Donald wrote:
On Fri, 14 Jan 2005 12:34:53 -0800, Phillip S. Baker
<[EMAIL PROTECTED]> wrote:
Any help here would be appreciated.
Simple.. your PHP doesn't have MySQL support. Rebuild it or install
the rpm or package or whatever. What kind of 'Linux box' is it?
Greg is right. Also it's imp
On Fri, 14 Jan 2005 12:34:53 -0800, Phillip S. Baker
<[EMAIL PROTECTED]> wrote:
> Any help here would be appreciated.
Simple.. your PHP doesn't have MySQL support. Rebuild it or install
the rpm or package or whatever. What kind of 'Linux box' is it?
--
Greg Donald
Zend Certified Engineer
http:
Phillip S. Baker wrote:
Greetings all,
I am runnign into a strange problem.
I am working on a Linux box.
Running PHP 4.2.2
Apache 2.0
And it has MySQl installed on it (not sure of the version.
I ran a quick script to check to make sure the connection to the DB is
working fine as this is a very secu
Greetings all,
I am runnign into a strange problem.
I am working on a Linux box.
Running PHP 4.2.2
Apache 2.0
And it has MySQl installed on it (not sure of the version.
I ran a quick script to check to make sure the connection to the DB is
working fine as this is a very secure connection (have to
On Mon, 6 Dec 2004 14:23:51 +0100, Salvatore <[EMAIL PROTECTED]> wrote:
> I have that script in php that should print on a page the result of lot of
> pages defined in this way:
>
> This is the address: www.mysite.com/mypage.php?idx=1&lines=50
Sounds to me like you want basic pagination. I'd use
Salvatore a écrit :
If I understand correctly, have you tried this instead of the above code :
while( !feof($f) )
{
$stream = fread($f, 8192);
$data .= $stream;
}
fclose($f);
i found it.
max_execution_time = 30
is too few for more than 3000 files:)
Ooops... Sorry for leaving PHP thr
Hi all,
I have that script in php that should print on a page the result of lot of
pages defined in this way:
This is the address: www.mysite.com/mypage.php?idx=1&lines=50
It work in this way: if idx=1 and lines=50 my page will look like:
element1
element2
..
element50
if idx=5 and lines=5 my
If I am loading extensions in my php.ini file then this is what happens when I try try
load the php4isapi.dll.
I go ahead and add it as an ISAPI filter the way it supposed to be done in IIS 5.
Then I stop the IISAdmin
Service and restart it. Then I start the Web Puublishing Service. This is whe
Ron King wrote:
At 06:28 AM 7/23/2004, you wrote:
You need php-cli rpm, it's not an extension, it's command line binary.
And it won't hurt anything to have both cli and extension installed?
-- Ron
No
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
At 06:28 AM 7/23/2004, you wrote:
You need php-cli rpm, it's not an extension, it's command line binary.
And it won't hurt anything to have both cli and extension installed?
-- Ron
Ron King wrote:
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL
installed correctly. I could se
You need php-cli rpm, it's not an extension, it's command line binary.
Ron King wrote:
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL
installed correctly. I could serve web pages, MySQL worked, and when I
tried the phpinfo() function, I got a page that looked OK. I could
c
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL
installed correctly. I could serve web pages, MySQL worked, and when I
tried the phpinfo() function, I got a page that looked OK. I could create
simple php pages and serve them up. Then I tried to install pear, and
things sta
as in 20 degrees?
float *sin* ( float arg)
*sin()* returns the sine of the arg parameter. The arg parameter is in
radians.
RADIANS.
|sin(deg2rad(20));
|
Jon
Marcus Strube wrote:
Hi,
i'm working with PHP 5.0.0 (Linux) and have some trouble using function sin().
In PHPs opinion
sin(20)
is
0
Thanks a lot. I've overseen a word in the manual. Now i got it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you want it in degrees, use sin(deg2rad(20);
> On Thu, 22 Jul 2004 12:17:19 -0400, Ashwin Purohit <[EMAIL PROTECTED]> wrote:
> > It's giving you sin(20) in radians, not in degrees (which is what you
> > seem to want). It's not a bug.
>>
> > On Thu, 22 Jul 2004 17:40:21 +0200, Marcus Strube <[EM
It's giving you sin(20) in radians, not in degrees (which is what you
seem to want). It's not a bug.
On Thu, 22 Jul 2004 12:17:19 -0400, Ashwin Purohit <[EMAIL PROTECTED]> wrote:
> It's giving you sin(20) in radians, not in degrees (which is what you
> seem to want). It's not a bug.
>
>
>
> On
Hi,
i'm working with PHP 5.0.0 (Linux) and have some trouble using function sin().
In PHPs opinion
sin(20)
is
0.912945250728
I have had a look at the bug.php.net, but couldn`t find anything. Is it a bug
or am I just misunderstanding something??
Marcus
--
PHP General Mailing List (http:/
Hi list,
i'm trying to include files in my php scripts but things seem not to
work properly. In my script, i include a file like this:
I have all include files in includes directory, that's a children of the
directory where my scrips are. The include_path config. variable is set
like this:
inc
On Tuesday 13 July 2004 00:05, Eric Boerner wrote:
> I am having trouble setting array data from within a MySQL results
> query. I have modified data from the result and wish to enter it into
> it's own array ($data). That then is used to generate a graph. The
> following code basically gives me a
Eric Boerner wrote:
Hello all,
I am having trouble setting array data from within a MySQL results
query. I have modified data from the result and wish to enter it into
it's own array ($data). That then is used to generate a graph. The
following code basically gives me an empty array...
I doubt the
s. :)
-Original Message-
From: Eric Boerner [mailto:[EMAIL PROTECTED]
Sent: Monday, July 12, 2004 9:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Trouble with arrays from within MySQL results where
clause
Hello all,
I am having trouble setting array data from within a MySQL results
query.
Hello all,
I am having trouble setting array data from within a MySQL results
query. I have modified data from the result and wish to enter it into
it's own array ($data). That then is used to generate a graph. The
following code basically gives me an empty array...
I am pulling out a timestamp a
Hi,
I'm writing a small image stock application that stores EPS files (that's
what the client is using for their work).
Since GD doesn't support EPS, the only alternative I've found to create
thumbnails is to use the 'convert' utility from ImageMagick.
When testing it on the command line and fro
[snip]
A simplified version of the code is shown below and is posting to
itself.
Any idea what I'm doing wrong?
Untitled Document
Please Enter
[/snip]
I tried this (navigated directly to the page) and it worked. You
probably want to set the GET array thingie though...like this
I think I'm missing something here really obvious!
I am using a script where you get a variable from one page and post to
another.
I've just realised that some people are jumping straight to the second page
(it rates higher in search engines) so the variable (yourname) remains
unset.
I want to use
Hi, i was trying to create thumbnail using a tutorial on image galleries,
I am having problems creating thumbnail images using GD. The thumbnail is
created with the sizes prorerly, however the image is black.
I have posted a temporary php file i created to investigate the problem
below.
I suspect
If you are using double quotes teh file name should be c:\\thefile.txt
Benjamin wrote:
I'm sorry if this has already been asked before...
I am trying to make a small ftp app using this line to download files:
if( !ftp_get( $conn_id , "C:\thefile.txt" , $HTTP_GET_VARS['file'] ,
FTP_BINARY ) ) $
I'm sorry if this has already been asked before...
I am trying to make a small ftp app using this line to download files:
if( !ftp_get( $conn_id , "C:\thefile.txt" , $HTTP_GET_VARS['file'] ,
FTP_BINARY ) ) $error = true;
I know I have a connection, and $HTTP_GET_VARS['file'] is the path of
the
Hallo all,
I would like to force PHP generated images to cache on client-side. just for
reduce traffic and speed of pageloading. The problem is that PHP adds some
headers by default, They are:
Cache-Control : no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma : no-cache
:) it
Hi there,
I am having somee trouble with array_search.
The function should search for a given date, but it does not work since
array_search seems only to compare strings. Thats why I tryed to cast
it, but does not help.
Here is the problem:
(pseudo code)
while(...
$log[date][]= (
* Thus wrote James Johnson ([EMAIL PROTECTED]):
> Hello,
hello james.
>
> Is there a limit or something to the number of Session vars that can be
> used? I've even tried setting a Session var called "foo" and that doesn't
> work.
None that php enforces, only the operating system's filesystem an
DOH! Nevermind, I mis-spelled session_start().
:(
-Original Message-
From: James Johnson [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 4:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Trouble with Session var
Hello,
This one has me stumped.
I'm setting a session var
Hello,
This one has me stumped.
I'm setting a session var to a value returned from a query, then redirecting
to another page. I get the following error on the second page:
Notice: Undefined index: sv_adCatText
On the page that sets the session var, I can do an echo of
$HTTP_SESSION_VARS['sv_ad
Hey all.
Quick question here that's driving me up the wall:
Using fopen(), I'm easily able to open files for reading; however, when I
attempt to open files for writing using fopen($file_path, "W+"), an error
occurs.
I'm able to use fopen($file_path, "a+"), but I need to be able to overwrite
file
Adam Voigt wrote:
> I think what you want is:
>
> move_uploaded_file($_FILES['imagefile']['tmp_name'],$ftpdir .
> $_FILES['imagefile']['name']);
>
> (Apologies if it wraps, that should be all one line.)
>
>
>
> On Wed, 2003-05-28 at 12:58, Adnan wrote:
>> Adam Voigt wrote:
>>
>> > Hmm, what'
I think what you want is:
move_uploaded_file($_FILES['imagefile']['tmp_name'],$ftpdir .
$_FILES['imagefile']['name']);
(Apologies if it wraps, that should be all one line.)
On Wed, 2003-05-28 at 12:58, Adnan wrote:
> Adam Voigt wrote:
>
> > Hmm, what's the exact error message you get?
> >
>
Adam Voigt wrote:
> Hmm, what's the exact error message you get?
>
>
> On Wed, 2003-05-28 at 12:43, Adnan wrote:
>> Adam Voigt wrote:
>>
>> > If your running under linux/unix, do:
>> >
>> > chown webuser:webuser /tmp/php
>> >
>> > Supplement /tmp/php with whatever upload path you have
>> > se
Call me an optimist but if you don't get any error's, that
usually means it worked. You do know that the uploaded file
is erased when the page ends right?
You have to use a call to move_uploaded_file to actually
put it somewhere on the file system.
On Wed, 2003-05-28 at 12:53, Adnan wrote:
> Ada
Adam Voigt wrote:
> Hmm, what's the exact error message you get?
>
>
> On Wed, 2003-05-28 at 12:43, Adnan wrote:
>> Adam Voigt wrote:
>>
>> > If your running under linux/unix, do:
>> >
>> > chown webuser:webuser /tmp/php
>> >
>> > Supplement /tmp/php with whatever upload path you have
>> > se
Hmm, what's the exact error message you get?
On Wed, 2003-05-28 at 12:43, Adnan wrote:
> Adam Voigt wrote:
>
> > If your running under linux/unix, do:
> >
> > chown webuser:webuser /tmp/php
> >
> > Supplement /tmp/php with whatever upload path you have
> > set in your php.ini, and webuser with
Adam Voigt wrote:
> If your running under linux/unix, do:
>
> chown webuser:webuser /tmp/php
>
> Supplement /tmp/php with whatever upload path you have
> set in your php.ini, and webuser with whatever user your
> webserver runs as.
>
>
>
> On Wed, 2003-05-28 at 12:33, Adnan wrote:
>> Jason Wo
If your running under linux/unix, do:
chown webuser:webuser /tmp/php
Supplement /tmp/php with whatever upload path you have
set in your php.ini, and webuser with whatever user your
webserver runs as.
On Wed, 2003-05-28 at 12:33, Adnan wrote:
> Jason Wong wrote:
>
> > On Wednesday 28 May 2003
Jason Wong wrote:
> On Wednesday 28 May 2003 20:11, Adnan wrote:
>
>> i have been having trouble working out how to upload an image, the most
>> progress ive made is putting a blank file on the server, but thats it,
>> any suggestions anyone??
>
> If you're wanting to do HTTP uploads then manual
On Wednesday 28 May 2003 20:11, Adnan wrote:
> i have been having trouble working out how to upload an image, the most
> progress ive made is putting a blank file on the server, but thats it, any
> suggestions anyone??
If you're wanting to do HTTP uploads then manual > Handling file uploads tells
Hi,
i have been having trouble working out how to upload an image, the most
progress ive made is putting a blank file on the server, but thats it, any
suggestions anyone??
Im using PHP 4.3.2, Apache 1.3.27
here is the code im using!
photoposted.php
postphoto.php
";
echo "Click the Browse bu
I'm having trouble getting cURL to work with a remote server. I'm using
Linkpoint to process a credit card transaction. (Does anyone have any
experience with Linkpoint?) I have tested my script on another server
and cURL seems to retrieve the information fine. However, I'm getting a
blank h
thanks Marek, it never crossed my mind about time, i was using it to have a
unque name to the uploaded file.
I'll try the script without the time and see.
Thanks
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At first glance I noticed you use
At first glance I noticed you use time() all over your script and expect
it to
be always the same. But the function returns current time, so it
changes! Use
$n_image1 = time().$_FILES['image1']['name'];
and remove all time() functions
Geckodeep wrote:
I am having trouble in resizing the im
I am having trouble in resizing the image. What I am trying to do is letting
people upload images of any dimension, and with the aid of my script after
having uploaded, it renames the file, from this new file I'll get the size
and resize it to predefined format 360x240 or 240x360 and this is the no
I am trying to load a php script to run in the background using the exec()
function. My code looks like this:
insert_id();//grab id of newly inserted row
$cmd = "php -q sendit.php $aqid >/dev/null 2>&1 &";
exec("$cmd");// call sendit.php in background
// ...
?>
Ba
If you want to do relative includes, you must have a . in
your include_path. Maybe this is what you are meaning to
do. Please reread this:
http://www.php.net/configuration.directives.php#ini.include-path
And if you still have problems after adjusting it and restarting
the web server, tell us
I updated php from version 3 to 4.2.3 on a win NT 4 server (with iss 4).
Everything went ok, but the include() function.
I have problems when including files.
I tried to specify a directory in the php.ini file but it still didn't work.
This is how i have the include line:
include ('file.inc');
I c
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
IT WORKS!!! Hahah yeah! It may have been a pain in the butt for _me_ to
install, but it was worth it- this is really cool!
Thanks Tom, I really owe you one.
- -Evan
On Thursday 07 November 2002 02:18 am, you wrote:
> Hi,
>
> Thursday, November
Hi,
Thursday, November 7, 2002, 6:30:17 PM, you wrote:
EN> -BEGIN PGP SIGNED MESSAGE-
EN> Hash: SHA1
EN> Apache fails sanity check. Same with and without the LDFLAGS thing.
EN> Error Output for sanity check
EN> cd ..; gcc -DLINUX=22 -I/usr/src/php-4.2.3 -I/usr/src/php
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Apache fails sanity check. Same with and without the LDFLAGS thing.
Error Output for sanity check
cd ..; gcc -DLINUX=22 -I/usr/src/php-4.2.3 -I/usr/src/php-4.2.3/main
- -I/usr/src/php-4.2.3/main -I/usr/src/php-4.2.3/Zend -I/usr/sr
Hi,
Thursday, November 7, 2002, 1:11:43 PM, you wrote:
EN> Same error.
>>
As a test try compiling statically into apache...That is the way I
have php at the moment.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Same error.
On Wednesday 06 November 2002 05:40 pm, you wrote:
> Hi,
>
> Thursday, November 7, 2002, 5:35:10 AM, you wrote:
> EN> -BEGIN PGP SIGNED MESSAGE-
> EN> Hash: SHA1
>
> EN> Nope... same error. Patch worked perfectly, LDFLAGS=-lstdc++ did too.
> End EN> result: same error. Any oth
Hi,
Thursday, November 7, 2002, 5:35:10 AM, you wrote:
EN> -BEGIN PGP SIGNED MESSAGE-
EN> Hash: SHA1
EN> Nope... same error. Patch worked perfectly, LDFLAGS=-lstdc++ did too. End
EN> result: same error. Any other ideas???
EN> On Wednesday 06 November 2002 09:09 am, you wrote:
>> Hi,
>>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nope... same error. Patch worked perfectly, LDFLAGS=-lstdc++ did too. End
result: same error. Any other ideas???
On Wednesday 06 November 2002 09:09 am, you wrote:
> Hi,
>
> Wednesday, November 6, 2002, 2:50:42 PM, you wrote:
> EN> -BEGIN PGP SI
Hi,
Wednesday, November 6, 2002, 2:50:42 PM, you wrote:
EN> -BEGIN PGP SIGNED MESSAGE-
EN> Hash: SHA1
EN> I'm trying to get XSLT working with PHP, and after slowly working my way
EN> through several other problems, I've found one that I can't figure out.
EN> Software:
EN> PHP 4.2.3
EN>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Nope. Same error. Good idea, though...
- -Evan
On Tuesday 05 November 2002 01:56 pm, .: B i g D o g :. wrote:
> Try specifying the sablot installation directory in the configuration
>
> --with-xslt-sablot=/some/dir
>
> On Wed, 2002-11-06 at 04:50,
Try specifying the sablot installation directory in the configuration
--with-xslt-sablot=/some/dir
On Wed, 2002-11-06 at 04:50, Evan Nemerson wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I'm trying to get XSLT working with PHP, and after slowly working my way
> through several
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'm trying to get XSLT working with PHP, and after slowly working my way
through several other problems, I've found one that I can't figure out.
Software:
PHP 4.2.3
Apache 1.3.27
Sablotron 0.96
GCC 3.2
Linux 2.4.19-lsm1
./configure \
- --enable-xml
If you are running in safe mode, setting time limit has no effect
Eduardo M. Bragatto wrote:
I've send an e-mail with a doubt related with the
"maximum_execution_time" variable but it has no answers, so, I'm
submiting it again...
I'm using a single php script to send files named upload.
I've send an e-mail with a doubt related with the
"maximum_execution_time" variable but it has no answers, so, I'm
submiting it again...
I'm using a single php script to send files named upload.php,
here is the source code:
set_time_limit(500);
copy($userfile, "log\\$userfile_name");
Edward,
Try
Case "1":
.
Break;
-Original Message-
From: Edward Kehoe [mailto:emkehoe@;learn.senecac.on.ca]
Sent: Friday, October 25, 2002 6:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Trouble with switch statements
Ok...I just recently installed Apache1 and PH
Hello,
"eNetwizard Developers Team" <[EMAIL PROTECTED]> wrote:
>
> Use $_GET["select"] for the switch statement
>
> Some of the people on this list would even recommend you make another
> variable first, such as $userselect = $_GET["select"] and use
> $userselect as your switch statement, thoug
in the php.ini file (not recommended)
-Samuel | http://enetwizard.net
-Original Message-
From: Edward Kehoe [mailto:emkehoe@;learn.senecac.on.ca]
Sent: Friday, October 25, 2002 1:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Trouble with switch statements
Ok...I just recently installed Apac
switch($_GET['select']){
case 1:
..
-Peter
> -Original Message-
> From: Edward Kehoe [mailto:emkehoe@;learn.senecac.on.ca]
> Sent: Friday, October 25, 2002 19:47
> To: [EMAIL PROTECTED]
> Subject: [PHP] Trouble with switch statements
>
>
&
Ok...I just recently installed Apache1 and PHP 4.2.3 on my computer and I've
configured everything. However, I can't seem to get my switch statements to
accept variable values from the address bar. So if I type in:
http://www.my-site.com/index.php?select=1
It displays the text in the default part
Easy way is stripslashes(), just watch out you don't put stripslashed
field input into the database
Christian Ista wrote:
>Hello,
>
>I'm trying the example1 give in xml_parse_into_struct section here :
>http://www.php.net/manual/en/function.xml-parse-into-struct.php
>
>works fine.
>
>But know I
Hello,
I'm trying the example1 give in xml_parse_into_struct section here :
http://www.php.net/manual/en/function.xml-parse-into-struct.php
works fine.
But know I'm trying to change the file name "moldb.xml" by a file name
come from a form .
I receive from the form something like that :
C:\\D
er 02, 2002 8:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Trouble with understanding arrays
I am having problems with arrays. I guess I just don't understand them
all
that well.
I have an simple array of stock tickers. Then for each ticker I go to
Yahoo
to get their current price and try to pu
I am having problems with arrays. I guess I just don't understand them all
that well.
I have an simple array of stock tickers. Then for each ticker I go to Yahoo
to get their current price and try to push the Name of the ticker and it's
value into an associative array(I think). Then I want to sort
Thanks for all your help :)
Justin
on 26/08/02 1:55 AM, Michael Sims ([EMAIL PROTECTED]) wrote:
> On Sun, 25 Aug 2002 10:49:00 -0500, you wrote:
>
>> static $myrow;
>> if($myrow = mysql_fetch_array($result)) {
> [...]
>
> Oops. We want to remember the position of the result set, so it's
> $r
On Sun, 25 Aug 2002 10:49:00 -0500, you wrote:
>static $myrow;
>if($myrow = mysql_fetch_array($result)) {
[...]
Oops. We want to remember the position of the result set, so it's
$result that should be static, not $myrow. In addition, you'll have
to put a check at the top of the function to see
On Mon, 26 Aug 2002 01:12:56 +1000, you wrote:
>However, I was hoping to use it in a similar way that I use mysql in the
>above code... something like:
>while($song = getSongByArtist(4))
>{
>echo song['title'];
>echo song['writers'];
>echo song['video'];
>echo song['artist_id'
next entry.
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Sunday, August 25, 2002 11:12 AM
Subject: [PHP] trouble with function
> Hi,
>
> This is the first time I've REALLY tackled multi-dimensional arra
Hi,
This is the first time I've REALLY tackled multi-dimensional arrays, in
conjunctions with functions.
I like the way this code works:
So I built a function which returns a multi-dimensional array:
$v)
{ $$k = $v; }
$songs["$id"] = array(
> > Try this function:
> > http://www.php.net/manual/en/function.stripslashes.php
>
> Oddly enough, as I told John, I did that as well and it doesn't work.
Are the \ there to escape anything, like ' or " or are they just in
there by themselves..as a delimiter or something. If the \ is by itself,
on 25/07/02 8:30 AM, [EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:
> Anyway, with asides to the snooty "RTFM" reply I got, I thought I'd share.
No, I agree with the RTFM statement. A simple search for "remove slashes"
on php.net would have resulted in links to all the slashes functions,
includin
> If the "\" are showing up in form posted data just do this:
>
> $newtext = stripslashes($oldtext);
That's what I'm doing now before they're written to the file.
> The slashes are put before any single or double quote by a
> nifty little php feature called "magic quotes". By escaping
> quotes i
> It's extremely important as to where you put the function within your
> script.
Understood, and as I said before, I'm fairly new to PHP, so I'm bound to
make the boneheaded mistakes. But I did try and solve it myself before
begging for help :)
Basically, the user enteres some text into a form,
f sql injections and other types of sneaky stuff.
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: <[EMAIL PROTECTED]>
To: "PHP List (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 5:30 PM
Subject: [PHP] Trouble with \
n
blend passion, reason and courage in a personal commitment to the great
enterprises and ideals of American society." - Robert F. Kennedy
> From: <[EMAIL PROTECTED]>
> Date: Wed, 24 Jul 2002 14:48:07 -0800
> To: "PHP List \(E-mail\)" <[EMAIL PROTECTED]>
> Sub
> Try this function:
> http://www.php.net/manual/en/function.stripslashes.php
Oddly enough, as I told John, I did that as well and it doesn't work.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ation 21:4
> From: <[EMAIL PROTECTED]>
> Date: Wed, 24 Jul 2002 14:30:08 -0800
> To: "PHP List \(E-mail\)" <[EMAIL PROTECTED]>
> Subject: [PHP] Trouble with \
>
> Anyway, with asides to the snooty "RTFM" reply I got, I thought I'd share.
>
Anyway, with asides to the snooty "RTFM" reply I got, I thought I'd share.
Turns out the \'s that I was having problems getting rid of were written
there from a form post that was used to collect the data. I still haven't
found a way to remove them after reading them from the file, but I did
mana
1 - 100 of 149 matches
Mail list logo