For a form that allows people to upload image files to the server, I'd like
to pop open a small browser window with an "Uploading..." message once
someone clicks on Submit button. Then I'd like the window to automatically
close once the process is done and the main browser window refreshes.
Can t
I added a little $counter in the while loop.
The count shows 2.
But why do I only get one value?
Thanks,
Faisal
-Original Message-
From: Faisal Abdullah [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 14, 2002 9:55 AM
To: [EMAIL PROTECTED]
Subject: [PHP] OCIFetchInto: OCI8 problem
Hi
Thanks to John Holmes & Timothy Hitchens for your help
after looking at what both of you said .. i found i had handled the sessions
correctly but not the sql statement in my script and it was the sql out put
that was causing nothing to be registered in my sessions.
Cheers
Peter
> -Original
Hi,
I have made a patch some time ago to have the old ucd-snmp and the new
net-snmp reside besides each other. I would like to drop the
ucd-snmp completely, but that is up to the group.
I have made a patch for this which is available at
http://www.lisanza.net/php-snmp/php-snmp.patch.txt
Use --w
On Monday 14 October 2002 08:36, John Negretti wrote:
> Marco,
>
> I was reading that there were some security risks with
> "register-globals". Is this the same thing as "global".
No, they're totally different things.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source
I would quote get in method="get" and end the for starters.
Keith Vance
Vance Consulting LLC
www.vanceconsulting.net
(206) 355-2399
Try my open source PHP authentication system, Rampart by visiting
http://rampart.sourceforge.net/. Commercial support is available at,
http://www.vanceconsulting
Ok, that's a big step forward then. It's possible that your user does
not have access to the directory tree where the file resides? Have you
tried listing that directory and or opening the file (for example with
cat) while using that file? If you can narrow it down to a permission
problem (and, at
Yep, I've been going over this with John off-list, I learned something
new tonite. One thing about his script - it doesn't print the text
entered in the box, it only prints the work Hallo. To fix that would
require adding
. "$name";
to the end of the echo statement.
Regards,
--
Chip
@ Edwin wrote
hmmm safe mode is disabled - for the apache module version
from phpinfo()
safe_mode Off Off
> Just out of curiosity--have you tried su-ing to the Apache user and
> executing your script as that user?
yep, same result (although I had to change the apache user for a few minutes
so it had a shell..
Hello,
Just for the sake of the argument...
On Monday, October 14, 2002 10:44 AM
Chip Wiegand wrote:
> Sascha Cunz wrote this stuff back on Mon, 14 Oct 2002 01:13:53 +0200:
>
> > This beautifies it (even makes it a bit more secure), but one doesn't
> > need it really; should have worked without
> howdy
>
> does any one know where i can view an uptodate session tutorial? so
far I
> have not found any that are up todate.
Sessions are a breeze. Just call session_start() on any page you need to
access the session. You then have a variable called $_SESSION, which is
an array. You can use it
Also I would check the case of the column in both the script and the DB
itself.
And yes, the query and the table schema might help if that isnt it.
Jason Reid
[EMAIL PROTECTED]
--
AC Host Canada
www.achost.ca
- Original Message -
From: "Owen Prime" <[EMAIL PROTECTED]>
To: <[EMAIL PROTEC
howdy
does any one know where i can view an uptodate session tutorial? so far I
have not found any that are up todate.
Cheers
Peter
"the only dumb question is the one that wasn't asked"
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you showed us the SQL your trying to execute and the table schema you may
get more helpful responses.
Cheers,
Owen Prime
http://www.noggin.com.au
Stephen wrote:
> Hello,
>
> I'm running a script that inserts a form's contents into a MySQL table.
> However, when I insert the contents, I ge
What does your script look like? PHP isn't going to just make up an
error. If it tells you that was the error from a query, then it really
was.
---John Holmes...
> -Original Message-
> From: Stephen [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 13, 2002 8:44 PM
> To: PHP List; [EMAI
I think you might be unable to access documents outside the root if
you're in safe mode.
Just out of curiosity--have you tried su-ing to the Apache user and
executing your script as that user?
On Sun, 2002-10-13 at 21:36, David Cook wrote:
> Hi again all
>
> Just a bit more info, trying to trac
Sascha Cunz wrote this stuff back on Mon, 14 Oct 2002 01:13:53 +0200:
> 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
No it shouldn't have work
Hi again all
Just a bit more info, trying to track some more things down.
I made a few changes, changed getmail so that it would allow the getmailrc
file to be group writable, made a few changes to the user/group structure
(including making apache a member of a specific new group, and then setti
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
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'
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
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
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
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;
>
>
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
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
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
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
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
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
> 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
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.
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
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
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
>
> >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
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
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
---
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.
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
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
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
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--
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
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
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
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
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
By Using mssql_???
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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
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
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,
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
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
> 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...
--
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?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
$_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
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:
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
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-
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
> 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
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
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
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
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
> 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
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
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
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
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
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
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
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 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
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.
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
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
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
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
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
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
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
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
>
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
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
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
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
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
"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
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
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
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
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
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
1 - 100 of 118 matches
Mail list logo