php-general Digest 1 Jun 2007 12:25:25 - Issue 4823
Topics (messages 255937 through 255964):
Re: Removing PHPSESSID - CGI Install
255937 by: Richard Lynch
Re: uploading really big files
255938 by: Richard Lynch
Re: local v remote
255939 by: Richard Lynch
Can anyone clarify this..
?php
/* Warning: Unknown: Your script possibly relies on a session side-effect which
existed until PHP 4.2.3. Please be advised that the session extension does not
consider global variables as a source of data, unless register_globals is
enabled. You can disable this
Hi...
Trying to install/test a php app, and I get the following error'/issue...
Compilation failed: this version of PCRE is not compiled with PCRE_UTF8
support...
I'm not sure if this is an OS issue, a PHP issue, or from the app. I'd
prefer to not have to build php from source/scratch, as I
On 6/1/07, Chris [EMAIL PROTECTED] wrote:
Auto-Deppe, C. Haensel wrote:
Morning guys,
I have been trying to find an easy to use way to zip an archive on a linux
box running PHP5. Now I've tried the zip-lib.php and others, but they
always
throw an error msg But that is not the question.
blueboy wrote:
May be a stupid question but can I link to images with doscument root
$img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif';
echo img src=\$img_url\ width=\250\ height=\163\/;
An image source is the URL to that image.
The server document root is the local location of that
Hi,
You cannot use document_root to get the paths for images. You can write a
function to get the images url in your application.
function imageServer()
{
return /images/;
}
--
Shafiq Rehman (ZCE)
http://www.phpgurru.com | http://shafiq.pk
Cell: +92 300 423 9385
On 6/1/07, Chris [EMAIL
Hi guys,
thanks to Jim, I made it :o) Here's the source I'm using for testing now...
it works. I just need to make it less vulnerable ;o)
- SNIP -
?
$nr = $_GET['nr'];
if(eregi(../, $nr)) {
die(Hier wird nicht rumgehackt);
}
$directory = '_kfz_images/'.$nr.'/full/';
$dir =
May be a stupid question but can I link to images with doscument root
$img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif';
echo img src=\$img_url\ width=\250\ height=\163\/;
I am certain the path is correct,
If not what are my alternatives?
R.
--
PHP General Mailing List
blueboy wrote:
May be a stupid question but can I link to images with doscument root
there are no stupid questions, only stupid answers.
$img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif';
no you cant;
do this in a script on your server:
echo pre;
print_r($_SERVER);
and have look
On May 31, 2007, at 5:43 PM, Richard Lynch wrote:
On Thu, May 31, 2007 2:25 pm, Jason Pruim wrote:
Hi Everyone, I am attempting to setup a search field on a database
application I'm dinking around with and running into problems that
I'm hoping someone might be able to shed some light on.
Angelo Zanetti wrote:
Dear all
We need to develop a system where we can upload really big files. IE 15
- 25 Mb.
I know its not a php answer, but if you have ever uploaded a file with
facebook then you will have seen the little applet they push down to
your browser, perhaps investigating
clive wrote:
Angelo Zanetti wrote:
Dear all
We need to develop a system where we can upload really big files. IE
15 - 25 Mb.
I know its not a php answer, but if you have ever uploaded a file with
facebook then you will have seen the little applet they push down to
your browser, perhaps
blueboy escreveu:
May be a stupid question but can I link to images with doscument root
$img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif';
echo img src=\$img_url\ width=\250\ height=\163\/;
I am certain the path is correct,
If not what are my alternatives?
R.
--
I
Auto-Deppe, C. Haensel wrote:
Hi guys,
thanks to Jim, I made it :o) Here's the source I'm using for testing
now... it works. I just need to make it less vulnerable ;o)
- SNIP -
?
$nr = $_GET['nr'];
if(eregi(../, $nr)) {
die(Hier wird nicht rumgehackt);
}
$directory =
I just tried it with php 5.2.3. Same behavior!
Do you agree that overwriting the value shouldn't be possible with
ini_set() ?
I will file a bug report!
Richard Lynch schrieb:
File a bug report then, and see what happens...
But you may want to test with most recent versions if you are not
On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote:
Auto-Deppe, C. Haensel wrote:
Hi guys,
thanks to Jim, I made it :o) Here's the source I'm using for testing
now... it works. I just need to make it less vulnerable ;o)
- SNIP -
?
$nr = $_GET['nr'];
if(eregi(../, $nr)) {
die(Hier
Tijnema wrote:
On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote:
Auto-Deppe, C. Haensel wrote:
Hi guys,
thanks to Jim, I made it :o) Here's the source I'm using for testing
now... it works. I just need to make it less vulnerable ;o)
- SNIP -
?
$nr = $_GET['nr'];
if(eregi(../,
On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote:
Tijnema wrote:
On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote:
Auto-Deppe, C. Haensel wrote:
Hi guys,
thanks to Jim, I made it :o) Here's the source I'm using for testing
now... it works. I just need to make it less vulnerable ;o)
-
On 6/1/07, Samuel Vogel [EMAIL PROTECTED] wrote:
I just tried it with php 5.2.3. Same behavior!
Do you agree that overwriting the value shouldn't be possible with
ini_set() ?
I will file a bug report!
I don't think it should be allowed.
A comment from the ini_set page [1]:
If you set
Richard Lynch wrote:
On Wed, May 30, 2007 3:59 am, blueboy wrote:
Hi,
I have a checkbox array (about 20 lines)
input name=\box\ type=\checkbox\ value=\$id\
input name=\box\ type=\checkbox\ value=\$id\
input name=\box\ type=\checkbox\ value=\$id\
I do some client side checking with
I don't think it should be allowed.
A comment from the ini_set page [1]:
If you set something using php_admin_value in httpd.conf it is then
not possible to be set the value at runtime, even if it's NOT
PHP_INI_SYSTEM.
So, I guess it must be a bug.
Tijnema
[1]
Tijnema wrote:
On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote:
Tijnema wrote:
On 6/1/07, Jim Lucas [EMAIL PROTECTED] wrote:
Auto-Deppe, C. Haensel wrote:
Hi guys,
thanks to Jim, I made it :o) Here's the source I'm using for testing
now... it works. I just need to make it less vulnerable
Apparently renameNode is not yet implemented into Dom, so how can I
rename a node without affecting its value and/or child nodes?
I have tried making a new node, inserting it before the old node then
removing the old node but I could not figure out how to get the
nodeValue to include the child
Does anyone have a utility or technique to find orphan functions?
I keep my functions together in an include file and occasionally create orphans
when I change the main code stream so that they are no longer used.
It would be nice to be able parse all the functions in an include file to make
On Fri, 2007-06-01 at 14:15 -0400, Al wrote:
Does anyone have a utility or technique to find orphan functions?
I keep my functions together in an include file and occasionally create
orphans
when I change the main code stream so that they are no longer used.
It would be nice to be able
I appreciate the response and looked at the tokenizer doc; but, I'm missing your
point. Are you implying I should write a Tokenizer Function to do the job?
Al.
Robert Cummings wrote:
On Fri, 2007-06-01 at 14:15 -0400, Al wrote:
Does anyone have a utility or technique to find orphan
On Fri, 2007-06-01 at 14:40 -0400, Al wrote:
I appreciate the response and looked at the tokenizer doc; but, I'm missing
your
point. Are you implying I should write a Tokenizer Function to do the job?
Nope, tokenizer function already exists. I'm suggesting it wouldn't be
too hard to write a
I gotcha now. I misspoke about writing a tokenizer function, I understood that
it would be a script.
That's for the suggestion. Though, I was hoping to avoid reinventing something
that already exists.
Robert Cummings wrote:
On Fri, 2007-06-01 at 14:40 -0400, Al wrote:
I appreciate the
On Fri, Jun 01, 2007 at 03:01:48PM -0400, Al wrote:
I gotcha now. I misspoke about writing a tokenizer function, I understood
that it would be a script.
That's for the suggestion. Though, I was hoping to avoid reinventing
something that already exists.
There is another alternative. If
Hello.-
i have some trouble.
i need to convert some string encoded in oem charset to ansi php ;-)
could someone help me!
thanks in advance!
Fernando
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Fernando Viadero wrote:
Hello.-
i have some trouble.
i need to convert some string encoded in oem charset to ansi php ;-)
could someone help me!
thanks in advance!
Fernando
sorry, finger stuck on CTRL key :)
Here is the link
--
Jim Lucas
Some men are born to
Fernando Viadero wrote:
Hello.-
i have some trouble.
i need to convert some string encoded in oem charset to ansi php ;-)
could someone help me!
thanks in advance!
Fernando
http://us2.php.net/manual/en/function.iconv.php
--
Jim Lucas
Some men are born to greatness, some
Fernando Viadero wrote:
Hello.-
i have some trouble.
i need to convert some string encoded in oem charset to ansi php ;-)
could someone help me!
thanks in advance!
Fernando
man what a bad day :(
--
Jim Lucas
Some men are born to greatness, some achieve greatness,
Fernando Viadero wrote:
Hello.-
i have some trouble.
i need to convert some string encoded in oem charset to ansi php ;-)
could someone help me!
thanks in advance!
Fernando
Check out
I see a number of examples on this page that might lead you down the road to
Fernando Viadero wrote:
Hello.-
i have some trouble.
i need to convert some string encoded in oem charset to ansi php ;-)
could someone help me!
thanks in advance!
Fernando
BTW - please don't hi-jack someone else's thread, please start your own
--
Jim Lucas
Some men are
*I* agree, but my agreement don't mean much... :-v
On Fri, June 1, 2007 10:13 am, Samuel Vogel wrote:
I just tried it with php 5.2.3. Same behavior!
Do you agree that overwriting the value shouldn't be possible with
ini_set() ?
I will file a bug report!
Richard Lynch schrieb:
File a bug
On Fri, June 1, 2007 3:16 am, blueboy wrote:
May be a stupid question but can I link to images with doscument root
$img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif';
echo img src=\$img_url\ width=\250\ height=\163\/;
I am certain the path is correct,
If not what are my
$arr is coming out of nowhere, out of clean thin air...
That's the direct cause of the error message.
Your OTHER problem is that blindly shoving all POST data into your
SESSION is almost certainly a Bad Idea...
On Fri, June 1, 2007 2:15 am, Sachin mahajan wrote:
Can anyone clarify this..
On Fri, June 1, 2007 12:30 am, Auto-Deppe, C. Haensel wrote:
Morning guys,
I have been trying to find an easy to use way to zip an archive on a
linux
box running PHP5. Now I've tried the zip-lib.php and others, but they
always
throw an error msg But that is not the question.
I am
On a busy server, with many many users, it is remotely possible that
your time() call will not be unique, and 2 users will end up
corrupting each others' zip files...
PHP has built-in functions for making temp files with unique names.
Use them.
On Fri, June 1, 2007 2:32 am, Auto-Deppe, C.
On Thu, May 31, 2007 9:31 pm, Stut wrote:
Richard Lynch wrote:
On Thu, May 31, 2007 7:26 am, Jared Farrish wrote:
That's what the 'period' is called in British English.
http://google.ca/search?q=define%3Afull+stop
In English syntax period and full stop are synonymous, and the
RegEx manual
Seems to me you'd be better off then writing code to handle all of
these, with is_array() doing the walk, and erroring out for Object and
Resource
Actually, an object should get type-casted to a string, and there's
even that nifty thing in PHP 5 where you can control what string it
gets changed
I dunno.
I somehow thought HAVING needed a GROUP BY or somesuch...
Go ask the SQL guys or try it and find out. :-)
I pretty much just dink with the SQL until it works, myself... :-)
On Thu, May 31, 2007 6:03 pm, Daevid Vincent wrote:
Jumping in late so forgive if I'm mistaken, but can't you
On 6/2/07, Richard Lynch [EMAIL PROTECTED] wrote:
On Fri, June 1, 2007 3:16 am, blueboy wrote:
May be a stupid question but can I link to images with doscument root
$img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif';
echo img src=\$img_url\ width=\250\ height=\163\/;
I am certain
Hi,
Friday, June 1, 2007, 6:16:34 PM, you wrote:
b May be a stupid question but can I link to images with doscument root
b $img_url= $_SERVER['DOCUMENT_ROOT'].'/images/holder.gif';
b echo img src=\$img_url\ width=\250\ height=\163\/;
b I am certain the path is correct,
b If not what are my
Hello,
I'm using phpMyAdmin and I can't get any of my form data into the database.
It returns message: MySQL returned an empty result set w/in phpMyAdmin
GUI.
However I get no errors on screen when form info is submitted.
What I have done to solve issue: drop DB and create new.
Review form
kvigor wrote:
$insert_query = INSERT INTO contestants (conName, conAddress, conCity,
conState,
conZip, conPhone, schName, schAddress, schCity, schState, schZip, strName,
strCity,
strState) VALUES('$regName', '$regAddress', '$regCity', '$regState',
'$regZip',
'$regPhone', '$sclName',
47 matches
Mail list logo