Must have overwritten this, but very good to know that.
Thanx.
Michael
Analysis Solutions [EMAIL PROTECTED] schrieb im
Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Fri, May 24, 2002 at 06:30:50PM +0200, Michael Virnstein wrote:
i think the exec in your php waits for the
In article 002e01c20370$4ebee8f0$b402a8c0@mango,
[EMAIL PROTECTED] (John Holmes) wrote:
Can PHP do that? Of course. Can it do it that easily right out of the
box. No. Just like the RXML backend is already written that parses
accessed per=day / into the appropriate number, the backend would
On Fri, 24 May 2002, Alex Shi wrote:
I have created several web sites using php. In all these sites
session id is passed via cookie. However I noticed that some
times it was passed by url. I am thinking that to pass session
id by url will be safer than by cookie.
You are thinking
On Fri, 24 May 2002, David Bourne wrote:
The code (in Page1.php):
form action=javascript: OpenWindow('Page2.php?a1=? echo $a1; ?a2=?
echo $a2; ?a3=? echo $a3; ?a4=? echo $a4; ?',
'Answers','toolbar=no,resizable=yes,scrollbars=yes,dependent=yes,status=0,
Hello,
I'm a newbie in PHP, I use a lot ColdFusion (at work).
With ColdFusion, it's very easy to create and use session variable. I do
something like that :
cfset session.myvariable = hello and this variable can be use
everywhere.
Could you tell me how that's work in PHP. I saw in help file
Hi Guys,
I need a PHP script that will allow me to upload/download chmod files etc on
a remote server...
I know there are loads of these scripts out there but being a newbie to PHP
I really dont know which one is good...
can you recomend any? coming from Java I love PHP so would appreciate if
I would really like to call you scum but I think the scumy people of this
world would object.
This aint a auction or any type of selling market, try greatdomains.com or
some such service,
I'll bet your little ding a ling that what ever you have on your site can be
made in a few days by over 80%
Hi Guys,
I need a PHP script that will allow me to upload/download chmod files etc
on
a remote server...
I know there are loads of these scripts out there but being a newbie to PHP
I really dont know which one is good...
can you recomend any? coming from Java I love PHP so would appreciate
Amen
- Original Message -
From: r [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 25, 2002 8:36 PM
Subject: Re: [PHP] IMPORTANT, wanna know about MY PROJECT SALE !!!
I would really like to call you scum but I think the scumy people of this
world would object.
This aint
Hmm, can anyone explain why I'm getting this error?
Parse error: parse error, unexpected T_IF in /usr/local/htdocs/san.loc/upload-img.php
on line 34
Code reads:
11:#--if form submitted then process file upload
12:if($HTTP_POST_VARS['ttl']) {
13:
14: #--check if there is already a picture
you can look here:
http://www.php.net/manual/en/tokens.php
to see what T_IF means.
31: $FulflNme = $DOCUMENT_ROOT . $flNme
you forgot the ; at the end of the line.
Michael
Zac Hillier [EMAIL PROTECTED] schrieb im Newsbeitrag
Hi Hi,
php + apache + win2000
or
php + IIS + win2000
I don't know why my setting do not allow me to POST or GET variable which submit in
html form
Please help!!!
Jolly
Smarty is the only one that I really remember, as far as template
engines.
http://www.phpinsider.com/php/code/Smarty/
There are others, like FastTemplate. Do a search on Google or
SourceForge and you'll come up with a couple dozen.
What they do is separate the code from presentation. Instead
Hi there,
I am pulling out an image out of a mysql blob field. The image is there, I
can see it in mysqlfront. So I pull it out of the db store it into a
variable and then do a:
header(Content-type: image/pjpeg);
echo $picture;
I do get a white screen and the browser is loading forever. I
Just be sure you call session_start() on any page you want to access
session variables.
Then you can set a variable by doing
$_SESSION[myvariable] = hello;
and then you can use $_SESSION[myvariable] anywhere you want.
This assumes the latest version of PHP. The procedure is similar on
older
Just be sure you call session_start() on any page you want to access
session variables.
I have to call this function on each page I use session variable or juste
once ?
This assumes the latest version of PHP. The procedure is similar on
older versions, you just have to use
Hi there,
I am pulling out an image out of a mysql blob field. The image is there, I
can see it in mysqlfront. So I pull it out of the db store it into a
variable and then do a:
header(Content-type: image/pjpeg);
echo $picture;
I do get a white screen and the browser is loading
Just be sure you call session_start() on any page you want to access
session variables.
I have to call this function on each page I use session variable or juste
once ?
The statement is pretty clear. You've to call it once on each page you want
to access session variables.
This
sound pretty funny... but I opened the browser to test it again, and it
worked without problems :-) No clue why.
Anyway.. thank you
Andy
Jens Lehmann [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi there,
I am pulling out an image out of a mysql
I have a script that switches.
switch($pid)
{
case 1:
break;
case 2:
break;
}
Now I'm doing a check in case 1 and if everything goes well, i want to
switch directly to case 2 while the script is runny.
How would i do that ???
--
PHP General Mailing List
Does php support server push? I am trying to make a real-time chat.
Would server push be the best way, and if so, how would I do it?
Thanks for any help!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm not an expert but that doesn't sound like it's
possible. I mean if you could upload files and
chmod them on a remote server you would have some
serious security issues. The only thing I can
think of is you could upload files to your remote
datebase.
-Original Message-
From: r
I have a script that switches.
switch($pid)
{
case 1:
break;
case 2:
break;
}
Now I'm doing a check in case 1 and if everything goes well, i want to
switch directly to case 2 while the script is runny.
How would i do that ???
--
PHP General Mailing List
I have a script that switches.
switch($pid)
{
case 1:
break;
case 2:
break;
}
Now I'm doing a check in case 1 and if everything goes well, i want to
switch directly to case 2 while the script is runny.
How would i do that ???
Don't write break; in case 1.
Jens
I have a script that switches.
switch($pid)
{
case 1:
break;
case 2:
break;
}
Now I'm doing a check in case 1 and if everything goes well, i want to
switch directly to case 2 while the script is runny.
How would i do that ???
Please don't post the same question
-Original Message-
From: Vincent Kruger [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 25, 2002 8:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Function Switch($pid) - NEED HELP
I have a script that switches.
switch($pid)
{
case 1:
break;
case 2:
break;
}
Now
Hi there,
I would like to save images into a blob column. Works good if I use the tmp
file php has created after submitting the form.
But if I do some gd stuff like changing some colors with inside the image
and then save this immage, it does not work.
I used to save the image to a file with:
Hey there,
Guess you too are a newbie,
anyway, have been doing what you think is impossible for years using perl
and servlets without any problems,
And I know its possible with PHP too, since its possible i'm pretty sure
someone has used it in some app already or is going too, the php community
Okay how about in your upload form, try putting in
the whole url instead of upload.php. I don't know
if that would work. You would have to have the
upload.php script on the remote server.
form ENCTYPE=multipart/form-data method=POST
action=http://www.remoteserver.com/upload.php;
Hello Jolly,
Saturday, May 25, 2002, 9:13:02 AM, you wrote:
JN Hi Hi,
JN php + apache + win2000
JN or
JN php + IIS + win2000
JN I don't know why my setting do not allow me to POST or GET variable which submit
in html form
JN Please help!!!
JN Jolly
Let us read your html and php code. I've
Saturday, May 25, 2002, 9:13:02 AM, you wrote:
JN Hi Hi,
JN php + apache + win2000
JN or
JN php + IIS + win2000
JN I don't know why my setting do not allow me to POST or GET variable
which submit in html form
JN Please help!!!
JN Jolly
Turn on register_globals or use the $_GET[],
hi
anybody know of a hosting service that can be setup in a few minutes and i
mean a few minutes that's all i got
Thank
___
Hassan El Forkani
Founder And Mantainer of :
http://WarmAfrica.com EveryOne's Africa
Freelance Internet Consultant / Web
anybody know of a hosting service that can be setup in a few minutes and i
mean a few minutes that's all i got
I know of a great one...umm, just give me a few minutes to remember the
name.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I am not an advanced user but not incapable. Please bear with me for
any amateurishness.
I am trying to get PHP to work with Apache.
I have a Windows ME PC, 2Mhz and 512 of RAM.
I want it only to learn PHP and then test out a few things, using
MySQL too.
I downloaded Apache version 1.3.24 and
Just don't do the break in case 1 if you want to fall through to case 2.
On Sat, 25 May 2002, Vincent Kruger wrote:
I have a script that switches.
switch($pid)
{
case 1:
break;
case 2:
break;
}
Now I'm doing a check in case 1 and if everything goes well, i want to
OK
let me explain, this is an emergency situation
i need php 4.XXX with --enable-wddx plus allow remote fopen (the app reads
remote xml files)
perl binary installed
access to one directory outside the web root (to store includes and classes
library)
mysql database
disk space something like 50
The fact that some applications crash with Apache2+PHP is not strange at
all. There are likely a number of 3rd-party libraries which can currently
be linked into PHP that are not threadsafe and/or re-entrant. It will
take a while before we identify these libraries and try to come up with
some
I don't know what gmtime() is supposed to do. But is gmmktime() similar?
http://www.php.net/manual/en/function.gmmktime.php
-Kevin
Sorry, my first answer was incorrect. gmmktime() does not do what I want.
Do you have any other suggestion why we need/don't need gmtime()?
Jens
--
PHP
Maybe Apache and PHP have problems with the 2MHz-CPU. :-)
I can only guess what may be the problem:
1. You didn't write phpinfo.php correctly.
2. phpinfo.php is in the wrong directory.
I suggest this because if the apache-site comes up correctly and
phpinfo.php does not it _might_ be a
I hope this posting is not a duplicate. I originally posted it yesterday,
but it doesn't show on the newsgroup for me.
Apparently you can set a variable as part of a URL statement. For example:
www.company.com/index.php?admin=password.
Where password might be a simple variable to test as a
Anyone have a clue why I can't post messages with Mozilla [RC2]?
Goes through all the motions as if the message is sent. Shows in my sent
folder and the terminal icon indicates the message is sent.
Works fine for all other newsgroup servers.
I'm posting this with IE6.
--
PHP General
Hi, Is there any good info out there on how to connect to socks servers via
php.
Trying to redo the backend of my site to access a mysql database thats on
the other side of socks5 server. ?
-Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Ryan,
I may be missing something as I have not been monitoring this thread,
but why not use ftp? It allows the file transfer and chmod. Perhaps its
not available on the server that you need it to be, but its the normal
way of putting web pages onto a server.
HTH
Chris
SP wrote:
I'm not an
Hello!
I know it's possible to use arrays in combination with forms, but I need
some advice about where to find some information/tutorial concerning how
to use arrays together with multi-select-tags...
Sincerely
Victor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Not sure what your question is
In the case password is not a variable but the value of
the variable, while admin is the name of the variable.
Variables passed by url is obtained by GET method, and
in your script all vairables passed by GET method can be
accessed directly. So, in following
For file uploading:
http://www.php.net/manual/en/features.file-upload.php
For chmod:
http://www.php.net/manual/en/function.chmod.php
For the third question:
php has no restriction where php scripts have to be
put in. so just put the script where you want to upload file.
Hope these can help.
Hey,
thanks for writing,
The script will be on the remote server, but how do i access the cgi-bin
directory when it is below the host root...
eg:
/home/cgi-bin/mysite.com/upload.php
how will upload.php add/modify /cgi-bin/?
-Ryan A.
- Original Message -
From: SP [EMAIL PROTECTED]
To:
Adding data to session is the easy part!
Now i want to be clever and sneeky by adding data to the session with out
actually leaving the page that i am currently on.
Sort of like www.audiogalaxy.com when you click the satelite icon to
download an mp3.
--
PHP General Mailing List
On Sat, 25 May 2002, Victor Spång Arthursson wrote:
I know it's possible to use arrays in combination with forms, but I need
some advice about where to find some information/tutorial concerning how
to use arrays together with multi-select-tags...
Have a play with this little program - it
On Sat, 25 May 2002, Vincent Kruger wrote:
Adding data to session is the easy part!
Now i want to be clever and sneeky by adding data to the session with out
actually leaving the page that i am currently on.
Sort of like www.audiogalaxy.com when you click the satelite icon to
download an
Oops. I actually tried running it (cleverly waiting until after I posted
it to the list) and I see that there are some warnings in the event that
nothing has been selected (due to in_array operating on an undefined
variable). Don't worry about them. Or change that last foreach clause to
look
php-general Digest 25 May 2002 19:08:02 - Issue 1366
Topics (messages 99205 through 99254):
Re: Is this doable?
99205 by: Sandman
99216 by: John Holmes
Re: How is SESSION_ID passed?
99206 by: Miguel Cruz
Re: Popup window from form on php page
99207 by:
After moving to php 4.2.1 my scripts that use xxx.php?blah=4 fail to work.
I know that i need to turn register_globals on in my config, however I know
that there are security problems with this. So bascially I need to know
how to make 500+ scripts work without editing a bunch of files to
I got it now, thanks a lot. For some reason Mozilla won't let me post to the
newsgroup.
I've used your answer, and another one, and have already made a simple php
script to test the variable and echo passed or failed
I'm modifying a php application and the admin file is named index.php
[yes
Hi
When working with pconnect. Can it be that each http process of apache will have more
than
one sql connection open at a time?
I'm working with pconnect and seeing about double the number of established sql
connections
than the established http processes.
any ideas?
Sincerely
For now you can add this to the top of your scripts:
$types_to_register = array('GET','POST','COOKIE','SESSION','SERVER');
foreach ($types_to_register as $type) {
$arr = @${'HTTP_' . $type . '_VARS'};
if (@count($arr) 0) {
extract($arr, EXTR_OVERWRITE);
}
}
Somebody else
how about using the FTP functions that php has, look it up in the man, i haven't used
it.
Paul Roberts
[EMAIL PROTECTED]
- Original Message -
From: Chris Hewitt [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 25, 2002 3:33 PM
Subject: Re: [PHP] PHP
Do you know what the security problems are? Do you realise that having
register_globals on or off isn't the security problem, it's how you write
your code? If you're not going to change any of your code, just turn on
register_globals. Changing your code to _POST or _GET and doing nothing else
At 04:00 PM 5/25/2002 -0400, 1LT John W. Holmes wrote:
Actually - i don't understand what the docs at PHP are talking about. care
to enlighten me?
~kurth
Do you know what the security problems are? Do you realise that having
register_globals on or off isn't the security problem, it's how you
Hi,
I want to upload image file into a folder in webserver using HTML form.
What function do I use fo this purpose?
Thank you,
Dani
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sure. The idea you have to understand is that nothing from the user can be
trusted. When you are expecting a number and they enter a letter, it may
mess things up and you have to be prepared for that.
With register_globals OFF in your php.ini file, all of the user input is
present in the _GET,
Try the RTFM() function. It will do exactly what you want.
http://www.php.net/manual/en/features.file-upload.php
---John Homes...
- Original Message -
From: Dani [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 25, 2002 6:57 PM
Subject: [PHP] NewBie-UPLOADING IMAGE
Hi,
put a ; at the end of line 31 and see if it still gives you the error.
Steve
At 10:33 AM 5/25/2002 +0100, you wrote:
Hmm, can anyone explain why I'm getting this error?
Parse error: parse error, unexpected T_IF in
/usr/local/htdocs/san.loc/upload-img.php on line 34
Code reads:
11:#--if form
This is a rather broad question you're asking. I would suggest starting at
the online documentation on www.php.net. Handeling file uploads:
http://www.php.net/manual/en/features.file-upload.php
Post back here if you have any trouble understanding any of this stuff.
-Kevin
- Original
What's wrong with my code?
?php
if($file)
{
print(file name :$file_nameP\n);
if (copy($file,http://sarjito/img/;))
{
print(file uploaded);
}
unlink($file);
}
?
Any advise is welcome.
Thanks,
Dani
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Give a destination file name, not just the directory. You don't have to
unlink($file), it's done automatically when the script ends.
---John Holmes...
- Original Message -
From: Dani [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 25, 2002 7:58 PM
Subject: [PHP] UPLOADING
I have tried to use the filename but it's still not working.
here is the whole code I've got:
** First file called 'upload.php'
html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body bgcolor=#FF text=#00
form name=form1
HOW IS IT NOT WORKING? Are you getting an error? Is your hard drive being
erased? Do you get little electrical shocks from the wires tied into your
braces when you hit enter and upload a file over 10k that has blue and
yellow within it but not part of the border
Info, man...provide it.
Thanks for replying
Sorry about not providing the info
well... when I hit submit button, it goes to the 'uploadfile.php' page, but it
doesn't print anything at all. I check in my folder and the file is not copied
either.
thanks,
Dani
1LT John W. Holmes wrote:
HOW IS IT NOT WORKING? Are
MWAHAHAHAHAH!
[EMAIL PROTECTED]
---
Life must be lived as play.
- Plato (427 - 347 BC)
- Original Message -
From: 1LT John W. Holmes [EMAIL PROTECTED]
To: Dani [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Saturday, May 25, 2002 9:20 PM
hi,
in a php-script someone else wrote I found
'input type=file name=photo[] accept=image/jpeg':
echo tr\n;
echo td width=\130\ height=\30\/td\n;
echo td width=\370\ height=\30\input type=\file\ name=\photo[]\
accept=\image/jpeg\/td\n;
echo /tr\n;
echo tr\n;
echo
To all,
On a bulletin board (non-usenet) within a website, is it possible to change
the color or size of the type - or add a link from a word that the user has
posted?
For example, John Doe posts:
Man, it's hot out here today!
Where John changes the default font color - which is black - of the
I have a script that switches.
switch($pid)
{
case 1:
break;
case 2:
break;
}
Now I'm doing a check in case 1 and if everything goes well,
i want to switch directly to case 2 while the script is runny.
How would i do that ???
In the specific case
Well with phpBB2 you can use html if the administrator allows it, if not you
can use phpBB tags. Things like:
Man, it's [color=red]hot[/color] out here
[url=http://www.weather.com]today[/url]!
All boards are different though so you'll need to read your documentation on
that board to figure out
Hello Nurse! (and php gurus)..
I'm building an online file exchange that will allow users to share custom 3D files
for a game that I'm involved in. I'd like to offer my users the oportunity to upload
multiple files at once by allowing them to ZIP them all together and upload just the
one
Hey,
I have just being going through the manual (windows version) and am a bit
confused about include,
If I want the scope to affect the whole page I do this right:
(example page)
html
body
?php
include blah.php
?
some html
?php
use some functions to call blah.php
?
is this correct?
and my
http://www.zend.com/zend/spotlight/uploading.php
Who's server are you trying this on mate? Yours or mine?
- Original Message -
From: Dani [EMAIL PROTECTED]
To: 1LT John W. Holmes [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, May 26, 2002 10:38 AM
Subject: Re: [PHP] UPLOADING
No, not exactly. The idea behind the include() function in PHP is to append
and execute code to the currently running script. This is great for
organizing your code into more easier to manage chunks. PHP will attempt to
parse and execute the included file as a PHP file regardless of the file
Also note that if you want PHP in your included()'d file, you have to
put ? and ? around the PHP. When you include() a file, PHP starts off
reading it in HTML mode.
Include() just takes the included file and sticks it into the original
file. The variable scope in an included file is the same as
Any number of ways you can do it. You can have the user enter in valid
HTML and just display it as such. Or you can use a markup language like
most BB.
Something like [b] for bold, [color=red] text [/color] to change colors,
etc.
PHP then looks through the post and replaces those tags with the
You can make up your own tags by just adding more
things to be parsed.
EXAMPLE:
$text = Look at [b]this[/b] website ...;
echo $text;
custom_tags($text);
echo $text;
function custom_tags($text)
{
/* converts special tags into the html counterpart
* [b]text[/b] - bold text
* [i]text[/i] -
I want to detect the url my .php lies in.
This is over kill and BS:
$myurlvar = http://.$SERVER_NAME.parse($SCRIPT_NAME);
How do I get http://foo.com/dir1/dir2/dir3/;.
There seems to be nothing in phpinfo() that will give me a full url to
play with.
Flame me if you will, but I browsed TFM
82 matches
Mail list logo