You register it just when you want to assign to it a value,
ie:
page1.php
session_start();
session_register("username");
$username = "shawn";
page2.php
session_start();
echo "Welcome $username";
page3.php
session_start();
echo "Welcome again $username"
so basically, register once and use ses
php-general Digest 8 May 2001 07:22:01 - Issue 673
Topics (messages 51803 through 51866):
Converting a binary integer to a number
51803 by: Siegfried Kettlitz
51805 by: Zak Greant
51813 by: Siegfried Kettlitz
OpenSSL compile option
51804 by: phpman
Re: vari
Be more specific please,
as you typed "SELECT count(*) FROM ... as ..."
this should return one row and only one!
that means you need to fetch that row and use it as a variable and not
within a row...
can you plz clarify your question?
-elias
http://www.eassoft.cjb.net
""Ryan W. Zajicek"" <[EMAI
$result = mysql_query($db, "SELECT count(*) AS song_count FROM table_name");
if ($array = mysql_fetch_array($result)) $song_count = $array("song_count");
Tim Ward
Senior Systems Engineer
Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.
Hello all,
I have a slight problem. I am storing an email template in a MySQL DB.
Portions of the email have text that need to be replaced with variable
values when run through the script.
ex:
Sehr geehrte(r) Frau/Herr {%Last_Name%} ,
Dies ist eine automatische Zusendung von ACNS Billing and
> As you can see. I am using the {% and %} to delimit the parts
> that need to be replaced. I can't get the replacements to work
> right though. Can someone help?
$text = ereg_replace("\{\%Last_Name\%\}", $lastname, $text);
Should be something like that :)
Jason
--
PHP General Mailing Lis
Hi,
$db is not an object, but a link identifier returned by mysql_connect().
Wieger
Ender wrote:
>
> Okay I get the: Call to a member function on a non-object error when trying to
>execute this script:
>
> It happens in this area:
>
> $db=mysql_connect(localhost,'***','***') or die("Unable
At 08.05.01 10:03, you wrote:
>
>Hello all,
>
>I have a slight problem. I am storing an email template in a MySQL DB.
>Portions of the email have text that need to be replaced with variable
>values when run through the script
>ex:
>
>Sehr geehrte(r) Frau/Herr {%Last_Name%} ,
>Dies ist eine autom
You need to fetch/get information out of the database using a function,
since we want just one result (count) we can easily use mysql_result()
Other functions that you're probably familiar with are mysql_fetch_row and
mysql_fetch_array ... they'll work too but in this case, not as
efficiently.
[Michael Stearne <[EMAIL PROTECTED]>]
> I have a version of PEAR installed now with 4.0.3pl1. I need some
> of the newer versions of the functions that have been added since
> then. I need mysql's afftedRows for instance. I see in the 4.0.5 of
> PEAR that was given with 4.0.5 that some func
Hiya
Fist of all sorry for the off-topic and dutch topic / email, I'm trying to
find a nice job in Holland and where can you better ask then at the big
official php source :)
Als iemand een bedrijf heeft/weet die opzoek is naar een goeie php
programmeur hou ik me aanbevolen :)
Op verzoek kan
Hi!
I'm having problems using preg_replace to search and remove backslash
character.
print preg_replace("/\\/","","testing \\ testing");
This regexp produces this warning:
No ending delimiter '/' found in c:\internweb\html\preg.php on line 27
It seems like I'm escaping the ending delimineter '
At 11:27 8-5-2001 +0200, Trond Straume wrote:
>Hi!
>
>I'm having problems using preg_replace to search and remove backslash
>character.
>
>print preg_replace("/\\/","","testing \\ testing");
try
print preg_replace('"\"',"","testing \\ testing");
double-quote single-quote back-slash single-qoute
At 11:45 8-5-2001 +0200, Wico de Leeuw wrote:
>At 11:27 8-5-2001 +0200, Trond Straume wrote:
>>Hi!
>>
>>I'm having problems using preg_replace to search and remove backslash
>>character.
>>
>>print preg_replace("/\\/","","testing \\ testing");
>
>try
>
>print preg_replace('"\"',"","testing \\ test
Chris Adams <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On 6 May 2001 05:53:54 -0700, Darren <[EMAIL PROTECTED]> wrote:
> > Hi. I just installed a fresh copy a windows 95. I installed winsock 2,
> > apache 1.3.19 and php4. I followed the instructions with t
hello All. I run php 4 for windows on top of apache. how would I write by
own bolt on modules for php?
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-m
Hi,
Maybe somebody knows solution for PHP IMAP and WAP?
How hard will be complete this products?
-
Nikolajus Krauklis :: [metasite]
E-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
Hi.
A while ago, I encountered a contents management solution for web that
allows the web contents to be edited WYSWYG manner on the web browser. I
think it was PHP related, but now I cannot seem to find the link. Does
anyone know of such system?
Regards,
Nat Sakimura
--
PHP General Mailin
Try ezpublish, available from publish.ez.no. THe package is very complate,
but not easy to install.
If you have problems, I offer hosting with publish installed.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
Sakimura, Nat
Sent: Tuesday, May 08, 2001 7:0
Hi people,
is there a way to check a string, which is passed by a form via GET,for html
tags??
Does anyone know some code or anything else??
Alexander Bierbrauer
Coordinator & Chief-Programmer of Not'A'Tric
Web: http://www.notatric.de
ICQ: 38412604
--
PHP General Mailing List (http://www.php.
Hi,
I'm just starting PHP and am looking for some books that you'd all
recommend. I've used quite a few of the SAMS books before and have found
them to be really good, i also have access to The PHP Dictionary which i've
also found to be really good. But are there any books which you would
reco
http://www.wrox.com/
I really found Beginning PHP from Wrox very helpful, had a hard time
stopping reading it! Great useful "real life" examples!
Lars
-Original Message-
From: Daniel [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 00:59
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Books
Hi,
Hi everyone.
I have trouble uploading files while in safe mode
.Warning: SAFE MODE Restriction in effect. The script whose uid is 206 is
not allowed to access /tmp/php6wtDUc owned by uid 0
Can someone help me pass around this problem?
--
PHP General Mailing List (http://www.php.net/)
To un
I have compiled PHP with this options,
./configure --with-zlib=/usr/local/src/zlib --with-png=/usr/local/src/libpng
--with-gd=/usr/local/src/gd --with-pgsql=/usr/local/pgsql --with-apache=../
apache --enable-track-vars
But i cant do this
How do i compile PHP so i can create images?
--
Med
On Tue, May 08, 2001 at 07:58:55AM +0800, Daniel wrote:
> I'm just starting PHP and am looking for some books that you'd all
> recommend. I've used quite a few of the SAMS books before and have found
> them to be really good, i also have access to The PHP Dictionary which i've
> also found to
Hi
I'm trying to include some php3 files via http.
one part of the php files is on a regular server and the other part is
on an secure server.
Instead of duplicating all the files for both servers I would like to
include them via http.
How does it work?
thanx
domnic
--
PHP General Mailing List
On Tuesday 08 May 2001 13:55, Alexander Bierbrauer wrote:
> Hi people,
>
> is there a way to check a string, which is passed by a form via GET,for
> html tags??
> Does anyone know some code or anything else??
strip_tags()
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
What luck
I don't think you can unless you use PHP's COM support and then use ADO's
next recordset feature.
Regards, John
""James Crowley"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I've written a recursive stored procedure in MS SQL, which returns a
number
At 15:40 8-5-2001 +0200, Dominic Brander wrote:
>Hi
>I'm trying to include some php3 files via http.
>one part of the php files is on a regular server and the other part is
>on an secure server.
>Instead of duplicating all the files for both servers I would like to
>include them via http.
>How doe
I tried the exact same thing. I have a whole slew of the classes that have
been developed and wanted to centrally locate them on one server. But every
time I included the class, it said cannot instantiate non-existent class
"Blah Blah Blah". But when I copied over the file, it worked like a cha
Manisha wrote:
>
> Hi all,
>
> I am trying using PHP with Flash Generator.
>
> The designer has given me a Flash file created using Macromedia's Flash
> Generator 2.
>
Do you have a template (.swt) or a generated file (.swf) ?
> The platform is BSDi / Lang - PHP / Database - MySQL.
>
> I
>
> include("http://www.somehost.ext/path/to/include/include.php";);
i don't think that is a goob idea...
if it works ( what i'm not sure ) you would get the complete output of
the file,
BUT in that remote file you would miss the parameters,etc from the
calling script.
is it is on the same serve
I want to changes 49.4 ---> 49,4
49,4 > 49,40
the first rule is done with the code
$totaal=49.4;
$totaal=str_replace(".",",",$totaal);
how can i do the second row??
please help.
greets Ramiro
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
I think the webserver on the remote machine parses the PHP-file. You can
see this happen if you type in the url youre trying to include in your
browser. No php code there, just html
I dont think what youre trying to do is possible. If it were youd have
one hell of a security hole on your web
bug reports number 10726 and 10729!
Hi there!
Im trying to post XML data to the chi-bin php script,
that shold parse that data and deal with it tags!
So php catch all my stdin before!
and I cant reach my XML!
if I do fopen("php://stdin", "r") I'll read nothing!!!
because of php did it before!
w
Hey folks,
What language is associated with a web page with a .epl extension?
Thanks
Kelly
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTE
I see that there is support for bzip2 and gzip in PHP, so I was wondering if
there was any standard zip support that I'm not seeing.
Stuart Hicks
Senior Programmer / Systems Administrator
The Affinity Group
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
On Tue, 8 May 2001, E. Stuart Hicks wrote:
> I see that there is support for bzip2 and gzip in PHP, so I was wondering if
> there was any standard zip support that I'm not seeing.
>
I looked and couldn't find any. The best I could find to be able to zip
unzip files was to save them on the server
At 08.05.01 15:14, you wrote:
>I have compiled PHP with this options,
>
>./configure --with-zlib=/usr/local/src/zlib --with-png=/usr/local/src/libpng
> --with-gd=/usr/local/src/gd --with-pgsql=/usr/local/pgsql --with-apache=../
>apache --enable-track-vars
mmh - sounds good, did you test the php
Hello,
I create an auth system using NDS as a LDAP server. Works fine. The problem
is with the session handling (from my part probabilly)...
I am using the PHP session functions. Again, works fine. register the
sessions, the variables. But I am beeing unable to destroy the session. To
destroy th
Tuesday, May 08, 2001, 10:34:51 AM, Ramiro Radjiman wrote:
RR> I want to changes 49.4 ---> 49,4
RR> 49,4 > 49,40
RR> the first rule is done with the code
RR> $totaal=49.4;
RR> $totaal=str_replace(".",",",$totaal);
RR> how can i do the second row??
RR
Try number_format() http://www.php.net/manual/en/function.number-format.php
Kirk
> -Original Message-
> From: Ramiro Radjiman [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 8:35 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] money print out with two digits after , e.g. 49,00
>
>
At 08.05.01 16:34, you wrote:
>I want to changes 49.4 ---> 49,4
> 49,4 > 49,40
Try this
";
?>
Oliver
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To cont
Hi,
I just don't get it...I have a form where the user enters name, surname
and a personal code. The action page checks for correct input which
is only letters for the two names and only numbers for the code.
If there is a wrong input in one of the fields a variable is set
which is then (amongst
Yeah, that's what I wanted to avoid, though. These scripts have to be able
to run on both NT and Unix boxes. I guess I'll just have to change the
other code to use gzip instead of regular zip.
"Tom Carter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Tu
exactly! this way (http...) it does not work!
I tried it a few times!
it is on the same server. so i did it with the /home/.. -path. but this
also does not work properly.
i think the proplem is, that within the included file there are other
files included (and so on...).
Error Message:
Warning: Fa
> i think the proplem is, that within the included file there are other
> files included (and so on...).
> Error Message:
> Warning: Failed opening 'inc/var_general.inc.php3' for inclusion
> (include_path='') in /opt/...
i think you gave the answer yourself.
you need to use the full path to the i
Hi all,
Reading the title of this message you might think this is an easy one to
answer, but it isnt as straight forward as it might first seem.
I have a number of domain names that are set up on my dns server but they
have no site associated with them so any visitors to these domains just end
u
How do I force an output to be recognized by the browser by a downloadable
text file as soon as I press the submit button?
what header(*) stuff should I add before echo-ing stuff?
thanks
. [ Christian Dechery ]
. Webdeveloper @ Tá Na Mesa!
. Listmaster @ Gaita-L
. http://www.tanamesa.com.
Well, what can I say??? Magic windows
Reboot the system or post a message and it works!
johannes
""Johannes Janson"" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
9d93c3$7d8$[EMAIL PROTECTED]">news:9d93c3$7d8$[EMAIL PROTECTED]...
> Hi,
>
> I just don't get it...I have a form where the user ent
Hi,
Wieger
Christian Dechery wrote:
>
> How do I force an output to be recognized by the browser by a downloadable
> text file as soon as I press the submit button?
>
> what header(*) stuff should I add before echo-ing stuff?
>
> thanks
>
> . [ Christian Dechery ]
> . Webdeveloper @
Just make sure that there is no way a script can exit without calling
'page_close()' so that the data makes it to your container.
Was written:
>When using session_start () over alot of pages, do i need to reregister the origional
>>session?
>example:
>
>page1:session_start();
> sessio
> I would like to be able to display the refering domain name on the page
> along with a small text message (under construction) etc, to save me
having
> to create sites for each domain.
Under Apache and with an HTTP/1.1 client, $HTTP_SERVER_VARS["HTTP_HOST"]
contains the value you're looking fo
On Tuesday 08 May 2001 16:40, Kelly Meeks wrote:
> Hey folks,
>
> What language is associated with a web page with a .epl extension?
Could be embedded perl (Perl embedded in HTML woughly the way PHP is)
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
What luck for the rulers tha
On Tue, May 08, 2001 at 06:10:18PM +0200, Christian Reiniger wrote:
> On Tuesday 08 May 2001 16:40, Kelly Meeks wrote:
> Christian Reiniger
> LGDC Webmaster (http://sunsite.dk/lgdc/)
>
> What luck for the rulers that men do not think.
>
> - Adolf Hitler
Could you please remove that signature.
I am looking for a tool (preferably database driven, written in php) that will allow
me to do IP address management of IP subnets on our network. The best I could find was
a project called IPfree on Sourceforge, but nothing is happening over there. I am
considering writing my own, but do not wa
But he IS the webmaster
Cheers
Jon
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 17:14
To: [EMAIL PROTECTED]; Kelly Meeks; '[EMAIL PROTECTED]'
Subject: Re: [PHP] OT question..
On Tue, May 08, 2001 at 06:10:18PM +0200, Christian Reiniger wr
I think he's referring to the comment below.. ;)
Ryan Christensen
OlyPen Technical Support
[EMAIL PROTECTED]
360.457.3000
800.303.8696
> -Original Message-
> From: Jon Haworth [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 08, 2001 9:17 AM
> To: '[EMAI
actually a nested foreach() is probably better. Use it in a function that
calls itself recursively for all elements that are arrays and adds to the
count for all that aren't.
I posted a function that does this a little while ago, don't think I've got
it anymore but the idea is fairly straightforw
Happiness is a warm gun.
- John Lennon
>
> What luck for the rulers that men do not think.
>
> - Adolf Hitler
Could you please remove that signature. Thanks.
-Egon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
OK I have read many examples, old posts etc, but I am looking for a
detailed explanation as to how to do this.
First is when I write to a mysql database using the now() function, the
time stamp looks like so when I display the time back to the browser.
204:24:06 ( This should have been 12:24pm
On Tuesday 08 May 2001 18:13, [EMAIL PROTECTED] wrote:
> > Christian Reiniger
> > LGDC Webmaster (http://sunsite.dk/lgdc/)
> >
> > What luck for the rulers that men do not think.
> >
> > - Adolf Hitler
>
> Could you please remove that signature. Thanks.
Here's another quote (paraphrased):
"Those
On Tue, May 08, 2001 at 09:26:22AM -0700, Ryan Christensen wrote:
> I think he's referring to the comment below.. ;)
> > -Original Message-
> > From: Jon Haworth [mailto:[EMAIL PROTECTED]]
> > But he IS the webmaster
> > > Christian Reiniger
> > > LGDC Webmaster (http://sunsite
I think the best way to handle this is not to care what it looks like in the
database. Store your dates as UNIX timestamps, and then they are easy to do
calculations on and/or convert to any date format you like for displaying in
your pages.
Read up on date() and mktime() for more info (there are
It didn't work at all.
It started a download, but with a filename called myscriptfilename.html
and with the contents of the html (in this case the form) being shown and
not the output.
I want to set these headers, and then do regular echo statements to this
newly created downloading file.
>Hi,
Here is what I am trying to do, but I get the wrong date:
$t_data_array[1]=date("m/d/y",mysql_result($db_result,$db_record,'date'));
Then I simply print the value in the arraythis date instead of 05/08/01 comes
out 12/31/69
Thanks!
Jon Haworth wrote:
> I think the best way to handle
Hi all,
I have a website which allows users to send comments, these are saved into a
mySQL DB.
I then use php to create a text file with all these on, that can then be
easily imported into MS Access.
But, it appears that the users type in a lot of character returns as well as
such symbols as " a
Are you *absolutely sure* that mysql_result($db_result, $dbrecord, 'date')
contains a UNIX timestamp? IOW, if I inserted the lines:
$unixdate = mysql_result($db_result,$db_record,'date');
echo $unixdate;
I would see something like "989393400" on the screen?
(Speaking from experience, I got this
In article <478EB6C82CC2D4119AF300B0D07963F4087721@NTSERVER01>,
[EMAIL PROTECTED] (Sam) wrote:
> But, it appears that the users type in a lot of character returns as well as
> such symbols as " and commas.
>
> Is there a way, when creating the text file, to get rid of all these?
Many ways. So
I have been using Abriasoft's products. You just plop in the CD and it
installs PHP, MySQL, Apache, Perl6, Perl DBI, and some other stuff on your
linux (or other os) box. All software also available for free by download.
http://www.abriasoft.com
At 05:12 AM 5/19/02 -0700, you wrote:
>Hello a
Hello!
If a user drop a text like this in a textarea:
---
the U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a
44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained
an incalculable fortune in fine art, bullion, jewelry, furs, coins, stamp
collections, ca
I want the script I'm doing to redirect all the output to a filename and
that it gets downloaded.
In other words... When someone presses the submit button I want the download
screen to show with the filename I declared so the user can save the output
from the script.
something like this:
- ther
check http://www.php.net/manual/en/function.nl2br.php
you could also do a regex, searching for \n, and adding a to it...adding
the would make it a little more difficult...
-jack
-Original Message-
From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 1:09 P
So, I've noticed that most of you talk about PHP/MySQL almost exclusively.
Does anyone use PHP and PostgreSQL? What are the advantages of MySQL over
PostgreSQL, other than it's easier to pronounce...
Thanks,
Brent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
http://www.phpbuilder.com/columns/tim20001112.php3?page=1
-jack
-Original Message-
From: Brent Langston [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 1:22 PM
To: PHP General List
Subject: [PHP] MySql vs PostgreSQL
So, I've noticed that most of you talk about PHP/MySQL almost e
James,
Take a look at hierarchical queries in MS SQl. If I'm not mistaken,
this is part of the SQL 99 standard and is implemented by many SQL 92
compliant database vendors. I know ORACLE and DB2 support it. I'm not sure
if you already have but I would investigate this topic with MS SQL
I have exactly the same problem, if you try viewing the page with IE then
you will probably find that it works fine...if you get any answers then
could you let me know what you did ?? I found that even with using -Original Message-
> From: John Vanderbeck [mailto:[EMAIL PROTECTED]]
> Sent
Help!
We're currently in the process of moving from one server (with PHP
v4.0.3pl1) to a new box (with PHP v4.0.5) Both have RedHat Linux.
It seems that file that worked fine on the old setup are no longer executing
properly. I"m having the problem specifically with included files. If the
file d
Hello,
Class A{
function aa(){}
}
Class B extends A{
function bb(){
$this->aa();// I know this is ok
}
}
Class C extends B{
function cc(){
$this->bb();// Will this work ?
}
}
py
Would anyone be able to help me out with this:
I have quite a few (almost 2000) .html files that I would like to change
over to the .php extension. Past that, I would also like to add text to the
top & bottom of each page (for template purposes.) Does anyone know of a
script that would automate
yes, as will:
Class C extends B{
function cc(){
$this->bb();// Will this work ? <-- YES
$this->aa();
}
}
-Original Message-
From: py [mailto:[EMAIL PROTECTED]]
Sent: 08 May 2001 14:02
To: [EMAIL PROTECTED]
Subject: [PHP] class inheritance question
Hello,
are you sure your html is properly formatted? if you like, send me the small
script you're using, and i'll run it on a pre 4.0.5 release...
if something shows up in ie but not ns that's a browser, not php problem...
-jack
-Original Message-
From: biscut [mailto:[EMAIL PROTECTED]]
Sent: T
every reply i send to the list gives this back...could someone take that
address off the list?
thanks
jack
-Original Message-
From: Mail Delivery System [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:16 PM
To: [EMAIL PROTECTED]
Subject: Undelivered Mail Returned to Sender
Thi
a simple perl script would suffice...don't have time to write one now (paper
to write...joy) but if you can't find one, i can help later...
-jack
-Original Message-
From: Ryan Christensen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:09 PM
To: PHP Mailing List
Subject: [PHP] c
Alright... here's my situation for those that didn't read my string of
messages yesterday.. (plus a bit more background information as to why
I'm doing this)
I'm writing an engine for a content managing system. Part of the system
is a menu builder. I use 2 tables, (this is a mysql database) me
On Tue, 8 May 2001 11:09:18 -0700, Ryan Christensen ([EMAIL PROTECTED])
wrote:
>Would anyone be able to help me out with this:
>
>I have quite a few (almost 2000) .html files that I would like to
>change
>over to the .php extension. Past that, I would also like to add
>text to the
>top & bottom o
Awhile ago there was some discussion on irc #php , this use was proposed
(by onki) :
$tmp_name = $HTTP_POST_FILES['userfile']['tmp_name'];
move_uploaded_file ($tmp_name, '/home/httpd/html/upload/example.zip');
chmod('/home/httpd/html/upload/example.zip', 0644);
And it works. move_upl
I have a question about session variables.
In my page the session variables are not seen by the pages where tem are not declared.
I´ve used "session_register($variable)" and so after at another page I´ve called "echo
$variable;" and it generate a message that the variable does not exists.
The ses
Working on getting mySQL setup on a new server. I mainly do the PHP work
while another guy does the server work. He has given me the account and
password for the mySQL server, and I have quadruple checked it with him. We
both swear it is correct in the script. However, mySQL reports an access
Are you opening a session on each of the pages you want to use the
variables?
Calling session_register() I believe causes an implicit opening of the
session, but on the other pages you have to explicity open the session, or
you won't have access to those vars.
- John Vanderbeck
- Admin, GameDesi
I have a question about session variables.
In my page the session variables are not seen by the pages where tem are not declared.
I´ve used "session_register(variable)" and so after at another page I´ve called "echo
$variable;" and it generate a message that the variable does not exists.
The sess
I have been getting this as well, and it is _really_ starting to annoy me.
Why is this not filtered out anyways? I am the owner and admin of the
GameDesign mailing list, and our software automaticly filters these things
from the general list.
Please fix this :(
- John Vanderbeck
- Admin, GameDes
Hi,
Sorry if this is a repeat question, I just can't seem to find an answer to
this question.
I am running php4 on NT. I've been able to connect to some network equipment
with the snmp commands, and retrieve the results. But it's the list of
values, which can be tough to correspond to the MIB. Is
On Tue, May 08, 2001 at 01:20:49PM -0500, King, Justin wrote:
> So when the line hits type 1, it evals like this
>
> echo "[a href="myscript.php?username={$userdata["username"]}"]Goto
> MyScript.php[/a]";
>
> Of course this yields an error because of the "'s in the anchor tag.
> But if I add s
hi PHP 'sters,
How to read a web page and analyze but not display it using PHP.
Thanks
Dexter.
Mike,
I haven't worked with MIB files myself, but what you're describing sounds
like it could be solved with regex's...can you post a snippet of what file
looks like that you're trying to extract from?
-jack
-Original Message-
From: Mike Backes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
Use fopen() or file()
--zak
- Original Message -
From: "Dexter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 08, 2001 4:27 PM
Subject: [PHP] How to read a web page and analyze but not display it
hi PHP 'sters,
How to read a web page and analyze but not display it u
Dexter,
that's a pretty broad question...if you look at the functions at php.net
such as fopen, you should find some information regarding reading
webpages...
-jack
-Original Message-
From: Dexter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 6:28 PM
To: [EMAIL PROTECTED]
Subje
Hi!
Can anybody explain to me why this script outputs:
oneone
instead of:
zeroone
???
Thanks,
stefan
$items[$id] = $text;
}
function output($id){
echo $this->$items[$id];
}
}
$c = new Cart;
$c->add_item(0,"zero");
$c->add_ite
Also take a look at Joe Celko's 'SQL for Smarties'. There's a whole
chapter on this. It gets kind if burly, but it's pretty cool. It's all
done by converting your schema below into a tree structure...
(no, i don't have any code since I've just read about it never done it
:)
-philip
In articl
1 - 100 of 176 matches
Mail list logo