php-general Digest 23 Feb 2007 11:16:28 - Issue 4641
Topics (messages 249259 through 249277):
can this be fone with PHP?
249259 by: Bruce Gilbert
249261 by: Jon Anderson
249270 by: tedd
249274 by: Haydar Tuna
Re: [PHP-DEV] PHP 4.4.6 RC1 Released
Dear list,
strstr returns a string (in case the needle is found),
but a boolean if there is no needle in the haystack.
I am trying to make a readable evaluation of some tests, but this fails
to work as supposed because of
- undefined results when ORing strings with possible string (?)
- use
On Fri, 2007-02-23 at 12:24 +0100, [EMAIL PROTECTED] wrote:
Dear list,
strstr returns a string (in case the needle is found),
but a boolean if there is no needle in the haystack.
I am trying to make a readable evaluation of some tests, but this fails
to work as supposed because of
-
how to transform a block of code in html to php??
for example this,
p
STRONGP.M.R. Leiria /STRONG - STRONG Produtos para Mec. e
Racionalização Informática, Lda./STRONGbr
Av. Dr. Francisco Sá Carneiro nº 1448 2415-376
Leiriabr
Telefones: 244850010
Helder Lopes wrote:
how to transform a block of code in html to php??
HTML to PHP? You having a laugh?
What are you actually trying to achieve?
-Stut
for example this,
p
STRONGP.M.R. Leiria /STRONG - STRONG Produtos para Mec. e
Racionalização Informática, Lda./STRONGbr
I assume you mean you want to hold that html in a variable? Use a heredoc.
On Feb 22, 2007, at 10:26 PM, tedd wrote:
Print out these three and you'll see your problem.
$_SERVER['SERVER_NAME']
$_SERVER['QUERY_STRING']
$_SERVER['REQUEST_URI']
Thanks, Tedd - -
REQUEST_URI still generates a Undefined Index error
SERVER_NAME on my testing server returns its IP
On Feb 23, 2007, at 12:18 AM, Jim Lucas wrote:
diddly.com?id=fredtotal=goof
First of forgoing the http:// missing, this still isn't a qualified
URL
Yeah, I was just giving an example of what I wanted.
echo $_SERVER['REQUEST_URI'];
and see what it returns
I said in the post, it
On Feb 22, 2007, at 4:33 PM, Jochem Maas wrote:
do a var_dump($_SERVER); or phpinfo(); to see what you do have
available.
'REQUEST_URI' doesn't show. Now I see the line in the documentation
that says You may or may not find any of the following elements...
How do I find out whether
Dear All,
Which version of phpMyadmin are you using with FC6 ?
Edward.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] wrote:
Dear All,
Which version of phpMyadmin are you using with FC6 ?
Edward.
Always the latest.
cajb.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
# [EMAIL PROTECTED] / 2007-02-23 21:23:37 +0800:
Which version of phpMyadmin are you using with FC6 ?
none
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991
--
PHP General Mailing
cajbecu wrote:
[EMAIL PROTECTED] wrote:
Dear All,
Which version of phpMyadmin are you using with FC6 ?
Edward.
Always the latest.
cajb.
Hello,
For phpMyAdmin-2.10.0-rc1,
http://192.168.0.1/error.php?lang=zh-TWdir=ltrtype=%E9%8C%AF%E8%AA%A4error=
phpMyAdmin - error
For
On Feb 23, 2007, at 7:46 AM, tedd wrote:
On Feb 22, 2007, at 10:26 PM, tedd wrote:
Print out these three and you'll see your problem.
$_SERVER['SERVER_NAME']
$_SERVER['QUERY_STRING']
$_SERVER['REQUEST_URI']
Thanks, Tedd - -
REQUEST_URI still generates a Undefined Index error
SERVER_NAME
On my form I have several drop down menus. They all work and display the
corrent values. However, I would like the initial display of the form to
show each dropdown as blank.
$q_status = SELECT * FROM status_codes ORDER BY status_description;
$r_status = mssql_query($q_status) or
On 2/23/07, Dan Shirah [EMAIL PROTECTED] wrote:
On my form I have several drop down menus. They all work and display the
corrent values. However, I would like the initial display of the form to
show each dropdown as blank.
$q_status = SELECT * FROM status_codes ORDER BY status_description;
2007. 02. 23, péntek keltezéssel 10.10-kor Dan Shirah ezt írta:
On my form I have several drop down menus. They all work and display the
corrent values. However, I would like the initial display of the form to
show each dropdown as blank.
$q_status = SELECT * FROM status_codes ORDER BY
Also, if you want to get into the habit of writing valid xhtml, use
lowercase and selected=selected
Thank you George, that is what I was referring to.
I had been placing the echo OPTION value=\\/OPTION\n; inside of my
loop..which of course returned a blank after every valid selection.
TGIF!
Thanks all.
On 2/23/07, Dave Goodchild [EMAIL PROTECTED] wrote:
Also, if you want to get into the
Haydar Tuna wrote:
Hello,
Firstly, you should download latest GD library and Jpeg library and
then you should compile your GD with jpeg enabled option and then compile
AFAIC it is much better to used the version of GD bundled with the php source,
which means the relevant configure
Hello,
You can use the following tutorial for error handling in PHP :)
http://www.devshed.com/c/a/PHP/Error-Handling-in-PHP-Introducing-Exceptions-in-PHP-5/
--
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web:
Thanks for your help. Though, a tech guy from hosting company fixed this.
And I didn't need to mess around.
;)
Thanks.
-afan
Haydar Tuna wrote:
Hello,
Firstly, you should download latest GD library and Jpeg library
and
then you should compile your GD with jpeg enabled option and
I've got all three Magic Quote directives turned off...
When I use sql query to grab any string from a database, it still spits out
the \ in front of the special characters..
Any ideas?
thanks
Liz Kim wrote:
I've got all three Magic Quote directives turned off...
When I use sql query to grab any string from a database, it
still spits out the \ in front of the special characters..
Turning off magic quotes doesn't repair the data already in your
database. It sounds like data has
On 2/23/07, Liz Kim [EMAIL PROTECTED] wrote:
I've got all three Magic Quote directives turned off...
When I use sql query to grab any string from a database, it still spits
out
the \ in front of the special characters..
Any ideas?
thanks
What's it look like in the database?
David
Hi.
I need a script that selects all similar rows from a database. Like
only the id would differ, but other fields would be the same as other
rows's fields.
I don't know if there is such a mysql statement like SELECT SIMILAR ...
Please assist me with using the right mysql statement or using
Hello,
I'm new to php and I have am running php on apache. I already have ldap
authentication set up in apache would rather not create a separate system
for php. What would be ideal would be to get the current authenticated user
from the apache environment. At this point I'm grabbing at straws,
[snip]
I need a script that selects all similar rows from a database. Like
only the id would differ, but other fields would be the same as other
rows's fields.
I don't know if there is such a mysql statement like SELECT SIMILAR ...
Please assist me with using the right mysql statement or using
Hello,
I'm new to php and I have am running php on apache. I already have ldap
authentication set up in apache would rather not create a separate system
for php. What would be ideal would be to get the current authenticated user
from the apache environment. At this point I'm grabbing at straws,
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Friday, February 23, 2007 1:51 PM
To: Wikus Möller; php-general@lists.php.net
Subject: RE: [PHP] Getting Similar rows from db
[snip]
I need a script that selects all similar rows from a database. Like
only the
Ryan wrote:
Hello,
I'm new to php and I have am running php on apache. I already have ldap
authentication set up in apache would rather not create a separate system
for php. What would be ideal would be to get the current authenticated user
from the apache environment. At this point I'm
I don't think there's a way to do it with SQL in MySQL. Jay's talking about a
substring search within a field and what you really want is to know if two
whole rows (multiple columns) within a database are similar or not.
You could pull in all the data and use PHP to figure out what's similar
##ORIGINAL
I've got all three Magic Quote directives turned off...
When I use sql query to grab any string from a database, it still spits out
the \ in front of the special characters..
Any ideas?
thanks
##END ORIGINAL
If data stored in database has escape character '\' then
On Sat, 2007-02-24 at 00:42 +0500, Fahad Pervaiz wrote:
##ORIGINAL
I've got all three Magic Quote directives turned off...
When I use sql query to grab any string from a database, it still spits out
the \ in front of the special characters..
Any ideas?
thanks
##END
Is there size limit for select queries in php?
I am trying to grab a very long string that exists in the database.
When I do a select and print it out, php keep truncating the string - only
outputing the first half or so when the string is too long.
I have checked the actual database and the
On Fri, February 23, 2007 12:35 pm, Wikus Möller wrote:
I need a script that selects all similar rows from a database. Like
only the id would differ, but other fields would be the same as other
rows's fields.
I don't know if there is such a mysql statement like SELECT SIMILAR
...
Please
On Fri, February 23, 2007 12:04 pm, Liz Kim wrote:
I've got all three Magic Quote directives turned off...
When I use sql query to grab any string from a database, it still
spits out
the \ in front of the special characters..
Here's one possible scenario:
You *USED* to have Magic Quotes GPC
I've got all three Magic Quote directives turned off...
When I use sql query to grab any string from a database, it still
spits out
the \ in front of the special characters..
Any ideas?
thanks
##END ORIGINAL
If data stored in database has escape character '\' then use
On Fri, February 23, 2007 9:10 am, Dan Shirah wrote:
On my form I have several drop down menus. They all work and display
the
corrent values. However, I would like the initial display of the form
to
show each dropdown as blank.
[snip]
Any suggestions on how to make my initial display of
On Fri, February 23, 2007 6:12 am, Helder Lopes wrote:
how to transform a block of code in html to php??
for example this,
I'm not sure I understand the question...
Look for the parts that repeat, and re-factor them as a loop through
some kind of data storage such as a database?
Or perhaps
There are two settings in php.ini mssql.textsize and mssql.textlimit. When
tese are set to -1 (default) the values used are configured on the server
and is usually 4k.
- Frank
Is there size limit for select queries in php?
I am trying to grab a very long string that exists in the database.
On Fri, February 23, 2007 5:24 am, [EMAIL PROTECTED] wrote:
strstr returns a string (in case the needle is found),
but a boolean if there is no needle in the haystack.
As the manual suggests, using the === operator to check for FALSE is
probably the best way.
I am trying to make a readable
Jochem,
Hmm, not sure what I'm looking for, but from what I've read, the
REMOTE_USER should contain this informaion, mine seems to be empty.
array(30) {
.
.
.
[REMOTE_USER]=
string(0)
.
.
Thanks,
Ryan
On 2/23/07, Jochem Maas [EMAIL PROTECTED] wrote:
Ryan wrote:
Hello,
On Thu, February 22, 2007 7:53 pm, Liz Kim wrote:
When I try to get a really long string and print it out on a website,
it
tends to stop in the middle of the string.
Is this some sort of a limitation that I can change?
It's probably a limit on the number of characters that can be stored
in
On Thu, February 22, 2007 4:26 pm, Ken Kixmoeller -- reply to
[EMAIL PROTECTED] wrote:
Hey - -
I must be missing something, but in a URL such as:
diddly.com?id=fredtotal=goof
$_SERVER['PHP-SELF'] gives me the diddley.com part.
I want to capture the whole URL. The documentation makes it
On Thu, February 22, 2007 1:59 pm, Bruce Gilbert wrote:
I have created forms with PHP where the information in the fields is
sent via sendmail to an email, but is there a way to have the
information extracted and a pdf form created when the user hits the
submit button?
Yes.
To just generate
On Thu, February 22, 2007 10:05 am, Ron Stiemer wrote:
Hi everyone,
got a really strange thing going on on a client website, the website
outputs the whole
http headers after every 2nd reload in safari, also in FF on Windows,
but only after much
much more relaods...here is a scrrenshot:
On Thu, February 22, 2007 9:06 am, Aaron Gould wrote:
So, my question is: how can I force this script to stop after 5
seconds
has elapsed?
Here's the script:
Inlined code might work...
$fp = fsockopen('192.168.3.25', 10001,
On Thu, February 22, 2007 7:40 am, Ross wrote:
I have my RG's switched off in my local .ini but I am tinkering about
with
oscommerce.
php_value register_globals on
I tried to change add this line to the .htaccess file in the catalog
folder
but still gives the error
Server Requirement
Can you get to /info.php WITHOUT the extra stuff on the end?...
If not, get that fixed first.
On Thu, February 22, 2007 7:34 am, Eli wrote:
Hi,
I installed apache v2.2.4 and PHP v5.2.1 on Windows XP.
I try to use URLs like /info.php/virtual/path but I get error 404 all
the time. I've also
Jochem,
Hmm, not sure what I'm looking for, but from what I've read, the
REMOTE_USER should contain this informaion, mine seems to be empty.
array(30) {
.
.
.
[REMOTE_USER]=
string(0)
.
.
Thanks,
Ryan
On 2/23/07, Jochem Maas [EMAIL PROTECTED] wrote:
Ryan wrote:
Hello,
I'm new
On Thu, February 22, 2007 2:34 am, SJAMHO DBMS wrote:
I have a problem with the attached file.
Run it or see it here: http://www.sjamho.com/update/remote.php
The issue is: the timestamps are shown for every file in a
subdirectory, but
never for a file in the root of a domain.
Can anyone
On Wed, February 21, 2007 11:44 pm, Eli wrote:
Peter Lauri wrote:
This was not clear for me, do you mean:
a peter = a id=peter
No.
Let me try to be more clear..
Say you got the element elem key=peter , then I want the
DOMDocument
to automatically convert the 'key' attribute to an
On Wed, February 21, 2007 1:01 pm, Ryan wrote:
I'm new to php and I have am running php on apache. I already have
ldap
authentication set up in apache would rather not create a separate
system
for php. What would be ideal would be to get the current authenticated
user
from the apache
On Wed, February 21, 2007 12:40 pm, Brian Dunning wrote:
I have eAccelerator on my server. I want to use Zend Guard. Anyone
know if I'll need to lose eAccelerator and switch to Zend Optimizer?
Assuming Zend Guard is the encryptor code-obfuscator product, I
believe the answer is:
YES.
However,
On Wed, February 21, 2007 10:41 am, Joker7 wrote:
Hi -
I'm having a bit of a problem with this directory listing code, found
it
some time ago and have been modifying it.I have run up against one or
two
problems.
1\ How can I make it not list its self
2\ Is there away to specify what files
Richard,
I looked at phpinfo() as you said, same thing...
_SERVER[REMOTE_USER]no value
You may be right, this may not be available, but I don't want to keep
throwing a login screen in front of users for no apparent reason.
Thanks,
Ryan
On 2/23/07, Richard Lynch [EMAIL PROTECTED]
On Wed, February 21, 2007 8:52 am, Brian Dunning wrote:
I have a few scripts that I want to protect from the prying eyes of
even people with root access to my server. The best suggestion I've
heard is to store only the compiled version on the server itself. I
have no idea how to do this or how
On Wed, February 21, 2007 8:26 am, Chris Carter wrote:
I have a field in database called logos which has one value
images/logos/some_logo.jpg
In my php I am trying to call it in my php file as image. With this
code.
$sno = $_REQUEST['sno'];
$query=SELECT logos FROM table WHERE sno =
On Wed, February 21, 2007 7:32 am, Arno Coetzee wrote:
I have a php client that needs to interact with a .net web service.
The
method I call returns a strongly typed dataset (some or other .net
object). I cannot seem to get my php client to understand what this
dataset is. I can see the
On Wed, February 21, 2007 7:17 am, Bare wrote:
Ok, I could store actual security code in a hidden text field of the
form,
but then it wold be visible to spam bots, isn't it?
Google for CAPTCHA to find a zillion solutions, and read them.
But you are on the right track, and your assumptions
On Wed, February 21, 2007 6:12 am, Scott Gunn wrote:
http://www.thebigspider.co.uk/test/menu.html
I'm going to write some php code which will build this menu from an
XML
file.
Before I do, I want to know what sort of browser compatibility it has?
could
you guys test it and let me know if
http://php.net/mysql_real_escape_string is the only thing you need to
worry about as far as MySQL is concerned.
Translating from Email newlines to HTML newlines to OS newlines is
another kettle of fish...
Email newlines are SUPPOSED to be \n, except that some ancient Windows
MTAs insisted on
On Tue, February 20, 2007 7:11 pm, Larry Chu wrote:
I am new to php and was trying to view the code below. I do see in my
browser the question that is being asked, but for some reason the
answer is not displayed. I am copying this from a book and am sure I
have typed everything as it should
On Wed, February 21, 2007 3:46 am, Sancar Saran wrote:
Hi,
Actual was this
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html
head
meta http-equiv=content-type content=text/html; charset=utf-8 /
meta
On Tue, February 20, 2007 7:57 am, Leslie Aguilera wrote:
I am having problems with the printer functions,
I have a touch screen pos system and it works very fine,
all prints works ok on receipt, ticket printers,
now the problem I am having is getting it to work on a lan,
with 2 computer 4
At 3:59 PM -0600 2/23/07, Richard Lynch wrote:
CAPTCHA also has serious accessiblity issues.
CAPTCHA does have its problems, but those problems can be lessened.
The main problem is how does one identify a user from a computer AND
make the technique accessible at the same time.
As we
Very nice - sorta.
It doesn't work for me in IE6, but does work in FF2.
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Friday, February 23, 2007 2:03 PM
To: Scott Gunn
Cc: php-general@lists.php.net
Subject: Re: [PHP] New Menu Bar - Can people test it for
I like it, but it's pretty image intensive.
- Craige
On 2/23/07, Daevid Vincent [EMAIL PROTECTED] wrote:
Very nice - sorta.
It doesn't work for me in IE6, but does work in FF2.
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Friday, February 23, 2007 2:03 PM
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Friday, February 23, 2007 2:19 PM
To: Richard Kurth
Cc: php-general@lists.php.net
Subject: Re: [PHP] save email in original layout
http://php.net/mysql_real_escape_string is the only thing you need to worry
about
#ORIGINAL#
I have a field in database called logos which has one value
images/logos/some_logo.jpg
In my php I am trying to call it in my php file as image. With this code.
$sno = $_REQUEST['sno'];
$query=SELECT logos FROM table WHERE sno = '$sno';
$result=mysql_query($query);
Hi Everyone,
I am developing an Information Portal for my university, and I am looking a
good solid framework. can you provide me with links, currently I am a bit
confused and overwhelmed with lots of great stuff on net like drupal and
Ruby on Rails
If you could share your experience[if any on
$query = mysql_query(SELECT logos FROM table WHERE sno = '$sno' limit 1)
or die(mysql_error());
while ($result = mysql_fetch_array($query)) {
$sno = $result[logos];
}
?
img src=?php echo($sno); ?/img
hope it helps
- Original Message -
From: Fahad Pervaiz [EMAIL PROTECTED]
73 matches
Mail list logo