When doing a select query, is there any way to specify which rows you
want "selected", as in rows 1 through 40, and then 40 - 80 on the next
query. I've been searching through the manual but can't find anything.
Should this be done through a php script instead, or is there a native
(mysql) comman
When trying to get $_SERVER["QUERY_STRING"] I am getting 'Undefined index
QUERY_STRING' error
If there is a query string, e.g. www.site.com/index.php?hello_world then it IS
defined. So it seems that PHP is complaining about undefined variables, rather than
just outputting nothing.
How can I
I posted "User Upload" and with no advice I attempted to use the sources i
could find and came up with the following:
while (file_exists("$i.tab")) {
$i ++;
}
$destfile = $i;
$destfile .= "tab";
stripslashes($userfile);
copy($userfile, "/uploads/" . $destfile);
chdir("/uploads");
$lines = file($d
Morning all,
I am currently working on a project for my client that involves an
archive of Artist Singles and Album charts dating from the 1960's to the
current day. I would like to be able to put them into a database but I
am unsure of which database to use (I don't mind learning one if it
prove
Look for LIMIT in the manual
Pablo Oliva wrote:
>When doing a select query, is there any way to specify which rows you
>want "selected", as in rows 1 through 40, and then 40 - 80 on the next
>query. I've been searching through the manual but can't find anything.
>Should this be done through a p
[snip]
> For example I intend to have over 4,000 different charts covering well
> over 6,000 artists and over 26,000 singles and album titles. Could
mySQL
> and PHP cope with this demand?
Yes, easily. Make sure your tables are properly indexed.
> I thought about having a table for Artists, one
> I have loaded an html file into a string. How can I search the string
for
> newlines/linefeeds? I know they are there, because if I echo the
string
> and
> view source in the browser, some tags are on new lines.
>
> Example:
>
>
>
>
And do what when you find them? If you just want to know
Hi!
Can anyone tell me if the getimagesize() function is supposed to work with
ftp-url's?
The PHP Manual states "URL support was added in PHP 4.0.5", but maby that is
supposed to mean http-url's only?
The following is an expample of how i would like to be able to use
getimagesize():
ftp://user:
Look at limit... eg Select * from xyz limit 1,5
Timothy Hitchens (HITCHO)
[EMAIL PROTECTED]
HITCHO has Spoken!
-Original Message-
From: Pablo Oliva [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 13 October 2002 8:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] trying to get a certain num of
Thanks to all for your respones to my inquiry.
I placed the PHP script to open the .jpg from another URL in another file
and then inserted the HTML tag to reference that file. The result
was that it outputted a small sqaure with a red x - but no image of the
map.
Any advice would be greatly
[EMAIL PROTECTED] wrote:
>
>Warning: Unable to open 'C:\\My Documents\\lyrics\\C_DTBS\\SLIME.TXT' for
>reading:
>
Has the webserver got permission to read this file? It does not seem to
be under the document root.
>No such file or directory in /home/tabzilla/public_html/doadd.php
>on line 89
>
BTW, disregard my comment about GET... I confused myself. Zzz.
Jen
> Try:
>
> $_Post[name];
>
> or $HTTP_POST_VARS[name];
>
> In new PHP version, register_globals is set to "off" by default, which is
> why $name isn't working for you. Although, I'm surprised GET isn't
> working
>
> Jen
>
Miles wrote:
>than just outputting nothing.
>
>How can I fix this? I've had no problems until i reinstalled php today...
>
register_globals?
HTH
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just a quick addition, both the submit/link were very basic, they both
worked like this
$location = "/cgi-bin/getmailtest.cgi";
// $location = "getmail.php";
echo "$location";
print("Click here to test the cgi\n");
print("");
print("press the button to try the cgi as a redirect this way");
prin
Ühel ilusal päeval [11-10-2002 20:48] kirjutas Sharat Hegde:
> Hello John,
>
> Thanks for the help. I was able to solve this. Thanks Marek for your help
> too in giving the same solution.
>
> The problem was with the crontab command not having the full path to php.
> Silly that a command line
Maybe keep a record in the session of the URLs the user has gone to.
Just don't store the URLs with a hash-mark in them. Store them as an
array and it'd be easy to make a "back" like by just using the next to
last or last element of the array...
---John Holmes...
> -Original Message-
> F
How would I go about allowing a user to upload a file which I then read and
store its contents in a mysql database and then delete the file, or any more
efficient method.
Any help at all would be great.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
$html_code = $html_code.include("filetoinclude.txt");
Research And Development wrote:
> Should this work?
>
> $html_code .= include ("filetoinclude.txt");
>
> I am populating a variable with html to be printred later as usual:
> $html_code .= "html".
>
> But I have some static html file
function file_get_contents($filename) {
$fp = @fopen($filename, "r");
if (!($fp)) {
return 0;
}
while (!feof($fp)) {
$temp .= fread($fp, 4096);
}
return $temp;
}
and then: $html_code = file_get_contents(filetoinclude.txt);
HTH
-Shawn
"Research And
Most likely you have register_globals set to "off" on your php.ini.
Change this to register_globals = on (or "true", or "yes", either one
should).
If you dont want to do that, Try with $_GET['name'] or $_POST['name'].
HTH.
Oscar F.-
Andres Olarte wrote:
>
>
>
> I've just built PHP fro
There are many ways. I'd suggest setting up a folder where the user uploads
the file (using the FTP commands in PHP) then setting up some sort of admin
cp that gets a list of the files from the folder, displays them, then you
click it. If you like it or whatever, you can click a save link which co
Hi Brad,
Oooops. I think i better go and read your excelent book MySQL/PHP
database applications agian..
Best regards,
Davy Obdam
mailto:[EMAIL PROTECTED]
Brad Bulger wrote:
>what database are you using? because the answer is different, depending.
>
>on postgres, for example, which suppo
try this (noticed that I've changed $foo to $_POST["foo"]. after all we're
livin in globals off rite? )
";
for($i=0;$i";
}
}
else {
?>
" method="post">
One
Two
Three
--
roger
--- "John W. Holmes" <[EMAIL PROTECTED]> wrote:
> > dear all,
> > i ran my code below on ie and it w
On Sunday 13 October 2002 17:24, Shawn McKenzie wrote:
> I have loaded an html file into a string. How can I search the string for
> newlines/linefeeds? I know they are there, because if I echo the string and
> view source in the browser, some tags are on new lines.
>
> Example:
>
>
>
>
Searc
"SELECT * FROM ad AS t1"
Where is the table?
Should be like:
SELECT ad AS t1 FROM table_name Where .. Limit 0,n
Coskun SUNALI / Turkey
"Pablo Oliva" <[EMAIL PROTECTED]> wrote in message
000101c2726e$c506ee50$6a6c0444@cr8tivewerk">news:000101c2726e$c506ee50$6a6c0444@cr8tivewerk...
> Can an
Hi,
as far as i can follow you, you want to:
1. copy a file from position a to position b.
2. read it from position b.
3. and delete it at position b.
Why not read it directly from position a?
So what about:
$content = implode("", file($userfile));
Anyway: You should initialize $i in any
Without seeing your code... only one guess: what are the permissions on
the file like? When you're running the script from the web server,
you're running it as the user under which the web server is running
(usually nobody or apache if you're using Apache on Linux), and this
causes problem if that
No. That will not work. Include does not return the text to a variable.
Please read the manual page on include. You have to use file, fopen, or
include() _with_ output buffering in order for this to work.
---John Holmes...
> -Original Message-
> From: CJ [mailto:[EMAIL PROTECTED]]
> Sent
Your email is not 100% totally clear with what you are actually trying
to accomplish, however, here is an example of how i like to get html
source code into a variable from a file.
$html_code = implode( '', file( 'filetoinclude.txt' ) );
or append it...
$html_code .= implode( '', file( 'fileto
There are a few PHP calendars:
http://www.cascade.org.uk/software/php/calendar/index.php
for example, that you can start from. It should be relatively easy then
to write a small table that contains just one field:
Date (datetime)
All you do is insert a row in the db for each day that is booked
Am Sonntag, 13. Oktober 2002 10:04 schrieb Miles:
> When trying to get $_SERVER["QUERY_STRING"] I am getting 'Undefined index
> QUERY_STRING' error
>
> If there is a query string, e.g. www.site.com/index.php?hello_world then
> it IS defined. So it seems that PHP is complaining about undefined
>
getimagesize isn't remote.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Stefan Wessman" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hi!
>
> Can anyone tell me if the getimagesize() function is supposed to work with
Hi All
I have been trying to write a database and scripts for a calendar that shows which
days are booked and have failed at each point.
What i would like it to do is to show a calendar which have the dates that are booked
in a cell which are colour coded (say red) when it is unavailable and s
fre, 2002-10-11 kl. 20:11 skrev Jody Cleveland:
> Well, I installed openldap, and it tests out good. Now, I want to configure
> php to work with it. My question now is, where exactly is ldap located? I
> tried a few paths:
> ./configure --with-mysql --with-apxs2=/www/bin/apxs
> --with-ldap=/usr/l
Hello,
The function might be available in the next release so you don't have to
define your own.
http://www.php.net/manual/en/function.file-get-contents.php
But until then...
- E
"Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> function fil
Well, it is remote in the case of http-url's.
Try this code:
http://www.php.net/gifs/php_logo.gif";);
echo '';
print_r($size);
echo '';
?>
And you will see this result:
Array
(
[0] => 120
[1] => 64
[2] => 1
[3] => width="120" height="64"
[bits] => 8
[channels] => 3
php-general Digest 13 Oct 2002 11:51:45 - Issue 1641
Topics (messages 119752 through 119782):
php 4.3.0pre and openssl 0.96g compile error
119752 by: Jochen Kächelin
Re: POST and GET variables don't work
119753 by: Jennifer Swofford
119754 by: Oscar F
119755
ORDER BY and LIMIT go at the end...after WHERE.
---John Holmes...
> -Original Message-
> From: Pablo Oliva [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 13, 2002 12:13 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] syntax error on mysql select statement
>
> Can anyone see any problems
Tony's right on this one.
1. Read all the instructions from the PHP documentation on setting up
LDAP. (From the last time i set this up you need to do some thing.)
2. After you have read that and then messed with it a while and you
still do not have all it working then you can post. (RTM).
3.
I remember I got these kinds of "errors" when I wanted to connect to a
slow server, the last message was always something like "port command
successfull", and that was it. Try connection to localhost, if that works?
Stefan Wessman wrote:
>Hi!
>
>Can anyone tell me if the getimagesize() functio
php-general Digest 12 Oct 2002 23:46:08 - Issue 1640
Topics (messages 119728 through 119751):
Re: An small SQL problem
119728 by: Davy Obdam
119731 by: Brad Bulger
119736 by: Davy Obdam
Re: Odd request
119729 by: Noodle Snacks
Re: fgetcsv or other
1
I have loaded an html file into a string. How can I search the string for
newlines/linefeeds? I know they are there, because if I echo the string and
view source in the browser, some tags are on new lines.
Example:
TIA
-Shawn
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Hi Marco
Thanks for the tips, they were what I was thinking was the problem, that
even when the php cgi was owned by the correct user, that if it was being
called via another web based script, that it would be executed as apache (in
this case) rather than the actual owner of the cgiscript (vpopma
Should this work?
$html_code .= include ("filetoinclude.txt");
I am populating a variable with html to be printred later as usual:
$html_code .= "html".
But I have some static html files that I want included in the html that
I am storing in the variable. The HTML is in text files. The abo
Can anyone see any problems with the following:
SELECT * FROM ad AS t1, ad_location AS t2 ORDER BY t1.ad_ts_update LIMIT
0,40 WHERE t1.ad_location = t2.ad_loc_id AND ( (t1.ad_cdl_a = on OR
t1.ad_cdl_b = on) AND t1.ad_longhaul = on AND t1.ad_fulltime = on ) AND
( t2.ca_losangeles = 1 OR t2.ca_santa
Can I return more than one value from a function?
php
Thank You
Paul
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
dear all,
i ran my code below on ie and it works. but when i use netscape 4.76 under linux, i
only get the
message "submitted" even though i've checked some fields.
what do i need to add to make it work with netscape under linux?
code follows:
";
for($i=0;$i";
}
}
else {
?>
method=post
> Here's the code:
> $fp = @fopen ("a.txt")
> while ($buf = @fgets($fp,1024) {
> trim($buf)
> if (substr($buf,-1 == _\\_) {
i missed a )
if (substr($buf,-1) == _\\_) {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I would probably return an array with the multiple values in the
array...easier to work with.
On Sat, 2002-10-12 at 20:49, Paul Maine wrote:
> Can I return more than one value from a function?
>
> php
>
> Thank You
> Paul
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscri
Well, you could return an array that contains more than one value, or
you could pass some parameters by reference rather than by value
(although that's not always a good idea).
On Sat, 2002-10-12 at 22:49, Paul Maine wrote:
> Can I return more than one value from a function?
>
> php
>
> Thank Y
Hi all,
Got a question regarding using php scripts as cgi's.
What I am trying to do is this. (ya may need a bit of background, it gets a
little complicated... well for me its complicated)
Im building a web based email system using php (duh) as the front end and
glue for everything, part of it i
Yes, the LIMIT clause must be at the end of the line. Take a look at the
documentation:
http://www.mysql.com/doc/en/SELECT.html
On Sun, 2002-10-13 at 00:12, Pablo Oliva wrote:
> Can anyone see any problems with the following:
> SELECT * FROM ad AS t1, ad_location AS t2 ORDER BY t1.ad_ts_update
> dear all,
> i ran my code below on ie and it works. but when i use netscape 4.76
under
> linux, i only get the
> message "submitted" even though i've checked some fields.
The code is running on the same box, right? Just accessing it with
different browsers?
> what do i need to add to make it
I've just built PHP from source (4.2.3) on Red Hat Linux 7.2 with
configure --with-java --with-apxs=/usr/local/apache/bin/apx
It's running with Apache 1.3.26
PHP work ok, even Java works, but if I try to pass variables from a form
with either POST or GET, the variables don't get through. T
Try:
$_Post[name];
or $HTTP_POST_VARS[name];
In new PHP version, register_globals is set to "off" by default, which is
why $name isn't working for you. Although, I'm surprised GET isn't
working
Jen
> I've just built PHP from source (4.2.3) on Red Hat Linux 7.2 with
>
> configure --with-
Am Sonntag, 13. Oktober 2002 02:11 schrieb Andres Olarte:
> Thanks to Oscar and Jennifer, it's working now. I did a bit of reading,
> and it seems it's not recommend to enable "register_globlas", why is that?
For security...
Imagine, you register a session variable to contain the user's ID. Any
Thanks to Oscar and Jennifer, it's working now. I did a bit of reading, and
it seems it's not recommend to enable "register_globlas", why is that?
Is there an array that contains both POST and GET variables or am I stuck to
using two different ones?
>From: Oscar F <[EMAIL PROTECTED]>
>To:
$_REQUEST[] (also contains cookies)
---John Holmes...
> -Original Message-
> From: Andres Olarte [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, October 12, 2002 8:11 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] POST and GET variables don't work
>
> Thanks to Oscar an
I tried to compile PHP with OpenSSL (0.96g) support with
--with-openssl=/usr/src/web/openssl/current
the way I did it since 4.1.0.
I always get the message, that php can't find the openssl
include-files.
Any suggestions?
--
Jochen Kaechelin
--
PHP General Mailing List (http://ww
If I want to use sql to access MS Access's database, is it necessary to have
mssql server?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You might have memory limit problem, try setting it higher. And as far
as I know, there is no function in gd to tell you DPI, try imlib extension.
Oscar F wrote:
> Hello,
>
> I have a script that process images sent by users, but I'm having some
> problems here.
>
> 1) Does anybody know if the
> If I want to use sql to access MS Access's database, is it necessary
to
> have
> mssql server?
No, just open up Access and go to town...
Now, if you mean you want to get to Access from PHP, then you still
don't need MSSQL. You can connect to Access using ODBC or COM.
---John Holmes...
--
Thanks everyone. I'' be breaking the string after the newline so that I can
convert the html to php echos and write them to a file.
-Shawn
"John W. Holmes" <[EMAIL PROTECTED]> wrote in message
000d01c272c1$54d0$7c02a8c0@coconut">news:000d01c272c1$54d0$7c02a8c0@coconut...
> > I have load
Hello,
I have a script that process images sent by users, but I'm having some
problems here.
1) Does anybody know if there is any problem with hi-res images (300
DPI), because when I try to use them with PHP to resize/copy them, all I
get is a black box.
2) Is there any way, with GD/PHP to g
Hi David--
If that is the issue then I would suggest looking into the suexec module
for Apache...as long as you're very careful with the permissions, you
should be fine!
Also, my reference to the code was more a "caveat" than anything else.
In your case, if the script was working from the sell,
It may be better to just let your database handle it. I know MySQL
supports Boolean fulltext searches (in 4.0, I think), and I'm sure
others do too.
---John Holmes...
> -Original Message-
> From: SpamSucks86 [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 7:13 PM
> To: [EMAI
Phorum seems to be real popular, see http://phorum.org
> -Original Message-
> From: Stephen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 5:37 PM
> To: PHP List
> Subject: [PHP] Best Forum System
>
>
> Hello,
>
> I know there will be a load of different responses but I'm
I use phpbb for our internal forums as well as a public forum on a
website (http://www.nonsologiochi.com/forums -- it's in Italian) and it
works pretty well.
On Fri, 2002-10-11 at 17:36, Stephen wrote:
> Hello,
>
> I know there will be a load of different responses but I'm after the most freque
Hi guys,
Does anybody have a working example of doing the lists of 'People who
searched this also searched this!' that I see on Amazon and other
websites.
Any help much appreciated!
Randum Ian
[EMAIL PROTECTED]
DJ / Reviewer / Webmaster, DancePortal (UK) Limited
DancePortal.co.uk - Global danc
By Using mssql_???
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John W. Holmes wrote:
>Song Table:
>Song_id
>A_id
>Type
>Name
>Length
>Lyrics
>...
>
>That's my ideas on how to do it. There are many ways to do it, though.
>
Totally agree with what John says. If the lyrics are long (as I assume
they will be) then I'd probably hive the lyrics off into a table o
søn, 2002-10-13 kl. 01:48 skrev Jochen Kächelin:
> I tried to compile PHP with OpenSSL (0.96g) support with
> --with-openssl=/usr/src/web/openssl/current
> the way I did it since 4.1.0.
> I always get the message, that php can't find the openssl
> include-files.
> Any suggestions?
S
Hello
Trying to send a html email to 5000 people on a list
Keep getting Fatal error: Maximum execution time of 30 seconds exceeded
Any pointers on the best way to achieve this lengthily operation without
the script failing? Best regards Scott
--
PHP General Mailing List (http://www.php.net/)
T
www.php.net/set_time_limit
---John Holmes...
> -Original Message-
> From: scott [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 13, 2002 2:06 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Fatal error: Maximum execution time of 30 seconds
exceeded
>
> Hello
> Trying to send a html email
I'm pretty sure it's not $_SERVER["QUERY_STRING"], it's
$_SERVER['QUERY_STRING'] (note the ' instead of ").
HTH.
Oscar F.-
Miles wrote:
> When trying to get $_SERVER["QUERY_STRING"] I am getting 'Undefined index
>QUERY_STRING' error
>
> If there is a query string, e.g. www.site.com/inde
In this context it makes no difference whether or not " or ' is used ("
allows variable substitution within the quoted string, ' does not) since
there's no substitution taking place.
Insert a phpinfo() in the top of your code to see all the variables that
_are_ being set.
-Original Message--
In you php.ini, find max_execution_time = 360 and up it.
-Peter
> -Original Message-
> From: scott [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 13, 2002 20:06
> To: [EMAIL PROTECTED]
> Subject: [PHP] Fatal error: Maximum execution time of 30 seconds
> exceeded
>
>
> Hello
> Tryi
scott wrote:
>Hello
>Trying to send a html email to 5000 people on a list
>Keep getting Fatal error: Maximum execution time of 30 seconds exceeded
>Any pointers on the best way to achieve this lengthily operation without
>the script failing? Best regards Scott
>
If the email is the same for all
Hello,
I have an image (selected via a form), I know the original size of this
picture 800x600. I'd like when I put the files in the database resize to
240x180, or 120x90.
How do that ?
Bye
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Yet another very fine way to do this job, is to set up a mailinglist manager
(ezmlm i.e.), whom you subscribe all your recipients - And then send just one
mail to the mailinglist manager.
Of course, works only if you got control to the server.
--Sascha
--
PHP General Mailing List (http://www.
I'm having trouble adding mailparse to my PHP 4.2.3 install.
I've downloaded and uncompressed mailparse-4.2.0.tgz into a subdir of my PHP directory
and added "--enable-mailparse" to my config file but I'm still missing something.
What am I doing wrong?
Jeff
---
Hello,
I'm running a script that inserts a form's contents into a MySQL table. However, when
I insert the contents, I get an error telling me this:
Unknown column 'employee' in 'field list'
I can't find the problem. I have a field in my table called employee but I guess it
doesn't see it. Any
> >Song Table:
> >Song_id
> >A_id
> >Type
> >Name
> >Length
> >Lyrics
> >...
> >
> >That's my ideas on how to do it. There are many ways to do
> it, though.
> >
> Totally agree with what John says. If the lyrics are long
> (as I assume
> they will be) then I'd probably hive the
Print your SQL to the screen and verify it's value is what you think it
is. Make sure it's accessing the right table.
---John Holmes...
> -Original Message-
> From: Stephen [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 13, 2002 5:03 PM
> To: PHP List
> Subject: [PHP] Odd Problem
>
Hi,
I've updated to PHP 4.2.3 and wrote this simple Script:
";
}
?>
I would expect the following:
The site starts with the form, then I enter my name (Lars) and click the
send-button. Then the script says Hello Lars.
The actual output is:
The site starts with the form, I enter my name
Indeed, another problem I have is that if a single is on an album, which
track it is on the album.
I want to centre the site on the Charts that are generated weekly for
singles and albums so if I use that as my source for the lookup and then
have the data contained in separate fields that are lin
register_globals defaults now to off. Use the superglobals instead.
";
}
?>
Sascha
Am Sonntag, 13. Oktober 2002 23:40 schrieb Lars H. Korte:
> Hi,
> I've updated to PHP 4.2.3 and wrote this simple Script:
>
> if (isset($name)) {
> echo "Hallo $name";
> }
> else {
> echo "
>
> Indeed, another problem I have is that if a single is on an
> album, which track it is on the album.
Off hand, I'd say that if you need this information as well (ie. You
want to recreate the "songs on album" list in the correct order) then
you need to extend one of your tables to include th
Sascha Cunz wrote this stuff back on Mon, 14 Oct 2002 00:09:58 +0200:
> register_globals defaults now to off. Use the superglobals instead.
> if (isset($_GET['name'])) {
> echo "Hallo ".$GET['name'];
> }
> else {
> echo "
>
> ";
> }
> ?>
> Sascha
The value of name for the subm
This beautifies it (even makes it a bit more secure), but one doesn't need it
really; should have worked without these changes, too. (Of course, it's
better to include these changes)
Sascha
> The value of name for the submit button is wrong - it should be the same
> as the value you gave the i
Hello All,
I am calling a particular function. Within that function I need access
to the $HTTP_GET_VARS array. It seem I could only access that array if I
pass it as a parameter of the function. Is this how it's supposed to work.
Thanks for any direction. NOTE: I am using PHP 4.0.6.
Jo
Try using
global $HTTP_GET_VARS;
at the beginning of your function. $HTTP_GET_VARS has global scope, and
by default PHP isolates functions from the parent scope.
Marco
On Sun, 2002-10-13 at 16:39, John Negretti wrote:
> Hello All,
>
> I am calling a particular function. Within that fun
Anybody have reason for using $_SERVER['PHP_SELF'] -v- $_SERVER['URL'] ?
They both seem to always be the same in every instance I have seen so
curious is their is a preferance for one or the other and if there is a case
where PHP_SELF!=URL
Cheers,
-Peter
##
Peter
php-general Digest 14 Oct 2002 00:03:11 - Issue 1642
Topics (messages 119783 through 119819):
Re: Upload Problem
119783 by: Sascha Cunz
Re: Predefined variables not set?
119784 by: Sascha Cunz
119801 by: Oscar F
119802 by: Mark Charette
Re: A little help ne
Marco,
I was reading that there were some security risks with
"register-globals". Is this the same thing as "global".
John Negretti
www.ideablue.com
"Marco Tabini" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Try using
>
> global $HTTP_GET_VARS;
>
>
Has anyone got any better ideas about how to detect what version of GD is
running other than the following. The reason I ask is that I want to use
imagecopyresampled() only if available ie. GD >= v2.0.
OPTION 1.
Parse phpinfo() output for the GD version info. Expensive.
OPTION 2.
Run imagecopy
I got the spelling and everything right...
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: "'Stephen'" <[EMAIL PROTECTED]>; "'PHP List'"
<[EMAIL PROTECTED]>
Sent: Sunday, October 13, 2002 4:17 PM
Subject: RE: [PHP] Odd Problem
> Print your SQL
try function_exists('imagecopyresampled');
otherwise I'm sure there has to be some function that returns versions of
libs.
Andrew
- Original Message -
From: "Owen Prime" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 14, 2002 1:37 AM
Subject: [PHP] Detecting GD version
Been there. The function still exists in GD < 2.0. Thats why it produces
such a specific error message. Otherwise it would say function doesn't
exist.
Thanks for you input anyways.
Cheers,
Owen Prime
http://www.noggin.com.au
Andrew Brampton wrote:
> try function_exists('imagecopyresampled'
Hi ppl.
I have something which seems really odd.
I run a SQL query, which is supposed to return 2 rows, but instead, it
returns one with
OCIFetchInto(). I used the exact same query in SQL*Plus, and It returns 2
rows like I want them.
Here's the code.
if(!$iDBConn = OCILogon(DB_USER, DB_PASS, D
1 - 100 of 118 matches
Mail list logo