you don't need a sepaerate script.
define two functions and then loop through calling the second function.
much neater (and easier)
Steve
"David Tod Sigafoos" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am sure that I am just .. missing this ..
>
> From
you need:
{can't remember the exact syntax but it's the file type you're looking for,
opens the file open dialogue so they can choose local file}
Steve
"Don" <[EMAIL PROTECTED]> wrote in message
004a01c16b33$b43a2c60$4fad2b18@cr993021a">news:004a01c16b33$b43a2c60$4fad2b18@cr993021a...
Hi,
I
why not just keep the module and drop the #!/usr/local/bin/php at the
beginning of each script .. ?
I've not heard of an ISP that asked for this b4 ...
Steve
"Michael Rice" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All,
> I have a kind of unique prob
have a look at get_html_translation_table htmlspecialchars() ,
htmlentities() and get_html_translation_table.
these function do all the work for you without reinventing the wheel.
Steve
"Joe Van Meer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Hi there...I'm new to php co
why not just drop access and move to postgresql or mysql.
go on .. make the leap; you know you want to
Steve
"Jon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> We are working with PHP & MYSQL, and we would like to publish some
> information th
you need to update the page that the frame displays. call the page and then
use 'target=' to direct the output to the frame of your choice.
Steve
"Hvm" <[EMAIL PROTECTED]> wrote in message
001001c14270$8a563380$0601a8c0@Hans">news:001001c14270$8a563380$0601a8c0@Hans...
Hi all,
Is there a command
konquerer is krap.
:-)
only kidding. i seem to remember that konquerer has specific settings for
script execution - it may be worth checking out the setup...
Steve
"Scott" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a database browser that I made w
i'd have a look at the table structure.
also if you're using <> to denote inequality then use !=
both of the previous posts are incorrect
Steve
"Chris Fry" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Should be ORDER BY ID, DESC
>
> Chris
>
> Martin Kamph
okay - read all the code now.
this might be a better way:
0)
{
for ($x=0;$x<$numrows;$x++)
{
$id=$one["id"];
$title=$one["title"];
$description=$one["description"];
print "
$title$description\n
\n
";
} // end of for
}
else
{
print "
NO
RESULTS\n
\n
";
}
?>
--
PHP Ge
try using mysql_num_rows() to get the number of rows returned by the query.
you need to supply it with the identifier for the query not the sql you sent
to the query. not exactly sure what you're trying to do though ...
Steve
<[EMAIL PROTECTED]> wrote in message
BB6D932A42D6D211B4AC0090274EBB1D2
did you do it again ?
:-)
pasting you code is ok ...
Steve
<[EMAIL PROTECTED]> wrote in message
BB6D932A42D6D211B4AC0090274EBB1D2EF0EE@GLOBAL1">news:BB6D932A42D6D211B4AC0090274EBB1D2EF0EE@GLOBAL1...
>
> Here's the attachment - I hate it when I do that! :)
>
>
>
> -Original Message-
> Fr
you're there already.
have an if statement on mail.php:
if (isset($posted_info))
{
// send mail here
// do db insert here
} // end of if
Steve
"Jack" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Dear all
> I was trying to get a user input form to inse
what about registering a var called loggedin with the session and then
testing on each script to see if it's set to 1 or something ?
then base the access on that ? that's what i use and then register uid with
the session as well so you can use it througout your site ...
ok you've got me worried
i think pgp has a quick install text file that is superb.
sorta step-by-step simple and complicated.
Steve
"Jean-Arthur Silve" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
check de readme or install files provided in each one !
At 15:39 14/08/01 +0200, Roman
oh dear.
Steve
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Okay I got it working!
>
> http://www.futurebird.com/wordstream/index.php3
>
> go on give it a try!
>
> Susan
>
>
> --
> [EMAIL PROTECTED]
> http://futurebird.diaryland.com
>
>
--
PHP General M
i tend to get this error when the page being called doesn't exist.
check the link and the file name
Steve
"Phil Driscoll" <[EMAIL PROTECTED]> wrote in message
01080909463405.04245@linux">news:01080909463405.04245@linux...
> On Thursday 09 August 2001 09:46, karthik wrote:
> > Hi,
> >
> > In ins
check the cache settings in IE and change to check for new version always.
sounds like you're reading a cached version of your page.
Steve
wrote in message
news:[EMAIL PROTECTED]...
Hi:
I'm coding my first programs in PHP using MySQL in Windows. I
instaled the Xitami Web Server for Windows.
indeed.
i also use the cgi version.
Steve
"Bernie Kruger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I am running PHP 4.0.5 on Win2K. The ISAPI module gave me lots of
headaches
> and crashed the server every other minute, but the CGI one runs li
check this in php.ini
session.gc_maxlifetime specifies the number of seconds after which data will
be seen as 'garbage' and cleaned up
Steve
"Sheni R. Meledath" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I am using sessions for user authenticatio
ive used a very similar function and found that javascript like single
queted strings passed into it.
i.e. java_function('link/to/file')
just noticed in the original post that double quotes were used
Steve
"Dave" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
if you have a shell account write a batch file and install it in the crontab
of the user whihc mysql runs under.
i did this at work for a postgresql database and it owrks perfectly.
something like this will work.
crontab -u -e
add:
30 7-19/2,23 * * * /backup/dumpit
which runs /backup/dumpit
instalation under windows 2000 is very simple. just reinstall php.
Steve
"Amarjit Jutley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> We are presently running PHP on a Windows NT 4.0 platform and all is
working
> correctly, we however want to upgeade to Wi
i know this has been posted before but i still haven't figured it out.
the bloke who runs the server for a 'client' of mine has set safe mode on
and therefore the standard file upload scripts fail.
i needed to create a 'dump' of the database in text files whihc i've done by
creating a dir within
i don't think the last post was right, there is some stuff at phpbuilder
about using php with shell access, i guess you could write a shell script
that is called from cron ...
here you go ... http://www.phpbuilder.com/columns/darrell2319.php3
Steve
"Adrian D'Costa" <[EMAIL PROTECTED]> wrote
the zend ide @ www.zend.com is a pretty cool debugging env.
Steve
"René Moonen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,
I'm using PHP for a few weeks now, so you can imagine that I'm making a
lot of typing errors...
Often I make a typing error in o
wouldn't the structure of the database be determined by the fact you have a
many to many relationship ?
i.e. the two tables would decompose into three with a 'link' table defining
the many to may part ?
steve
"Mike Gifford" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROT
'order by text asc' will sort in alphabetical order A-Z
.. and your query should be select [campo] from table where campo like 'A%'
... seems like an expensive way of sorting ...
i think mysql has natural order sorting functions in there somewhere ...
Steve
"Marisol díaz e." <[EMAIL PROTECTED
yup.
what you need is ob_start("ob_gzhandler"); at the beginning of the bit you
want to compress, usually at the top of the script and //ob_end_flush(); to
send the output to the browser.
bit of a time lag as the browser decompresses but should save you a bomb on
bandwidth.
check out the php man
you only need to register vars with the session once.
Steve
"Rudolf Visagie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Bernie,
>
> Do a session_register in the second script as well:
> > session_start();
> > session_register("my_session_variable");
>
TED]...
> Im using win2k, but I have no intetntion of serving a webpage off of it, I
> only have a 56k modem! I'll be running the website off of an ISP. Do I
> still need to install IIS and stuff? What for?
>
> - seb
>
> -Original Message-
> From: Steve Brett
another thing you could try is find out where the php session data is stored
and see if the session files are there - i think on win2k they are in
c:\php\sessiondata ...
Steve
"Bernie Kruger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I use this s
id' resgister the session var first then change / set it.
don't actually know if it makes a diff
Steve
"Bernie Kruger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> I use this simple session script below, but the session variables are not
> car
needed :-)
> Hadn't seen nor heard of front ends for it, will look into them!
>
> - seb
>
> -Original Message-
> From: Steve Brett [mailto:[EMAIL PROTECTED]]
> Sent: 19 July 2001 14:27
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Basic database questio
"Seb Frost" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi everyone, this is my first ever post on the list so please be gentle
with
> me ;-)
>
> OK I want to put a database on my website. Up until yesterday my
knowledge
> of databases was having created a
great minds and all that
this is some code i use but i have a login page that takes the username and
passowrd and passes that to another page that does the verification.
so:
page 1 takes the username and password.
page 2 registers session vars and sets logged in to true if accepted.
every
have a javascript function that is fired when you load the index page.
i have a calendar system that i wrote at work that is displayed in a window
with most of the features turned off like toolbars etc.
have a look at 'on load' and window properties.
it's a doddle.
and no i didn't find it on a
as afr as i know it's a recompile with a path to sendmail ...
great when it works though !
Steve
"Patrick W. Rateliff" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am getting this error when using the trying to use the mail function.
Any
> insite will hel
how about using php mail functions if you've got the support on your server
then a simple form to send the mail and you can track everything you need to
...
Steve
"Jorg krause" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> > Brian White [mailto
i seem to remember reading somewhere that print acts like (is) a function,
presumably returning false if it cannot print to screen, whereas echo just
dumps it.
also you can drop vars in print like
print "you have $points points";
whereas to echo it you'd have to concatenate the string.
Steve
sorry posted to wrong group
Steve
"Steve Brett" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi,
>
> i've got myself into a bit of a mess. i have a database with approx 4000
> records (mysql) and when i pop
hi,
i've got myself into a bit of a mess. i have a database with approx 4000
records (mysql) and when i populated the database i was given 4000 text
files with the product name as the file name and the description of the
product as the contents.
so i set up a text field in the table to hold the
have a look at ereg() (regular expression match) functions in manual.
they'll do exactly what you want.
Steve
"Joseph Bannon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I need a search function (if statement) that performs a search on a string
> and if t
don't echo and printf do different jobs ?
as i understand it echo will dump anything to screen, fprint will accept
formatted text args like "you owe me %d dollars",$owed_amount) or something
like that.
i kind of use print by itself (harking back to the old days of basic etc)
but use echo quite a
> this should be set up by your isp though so as part of a mysql package
> you'd get this type of access to your db's
Well, my point was, that it's normally not setup as most users don't have
static ip's and allowing connects from any ip (even allowing net connects at
all) is/can/might be a secu
> -Original Message-
> From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
> Sent: 13 July 2001 10:57
> To: Steve Brett; Alexander Skwar; Steve Brett; Matthew Loff; Steve
> Brett; 'Steph'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Alternative to phpMyAdmin
&g
ere
in the states.
i install mysql and php in windows and then develop at home, then i update
the live db throught mysql-front.
Steve
> -Original Message-
> From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
> Sent: 13 July 2001 10:15
> To: Steve Brett; Alexander Skwar; Matthew Lof
if you install mysql on a windoze machine then you can administer ANY mysql
database going through the socket.
i do it all the time.
Steve
> -Original Message-
> From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
> Sent: 12 July 2001 19:15
> To: Matthew Loff
> Cc: '
mysql front is by far my favourite
available from mysql download section.
Steve
> -Original Message-
> From: Steph [mailto:[EMAIL PROTECTED]]
> Sent: 12 July 2001 05:01
> To: [EMAIL PROTECTED]
> Subject: [PHP] Alternative to phpMyAdmin
>
>
> Hi all! I love phpMyAdmin, just makes life
have a look at date_format in the mysql help and pull your sate filed out as
a date
Steve
> -Original Message-
> From: Jack [mailto:[EMAIL PROTECTED]]
> Sent: 12 July 2001 21:04
> To: [EMAIL PROTECTED]
> Subject: [PHP] time compare in my sql
>
>
> Hi folks
> I have a filed in data type
$age_result = mysql_query("select AVG(age) as avgage FROM bat_rost WHERE
ownerID = '$teamID'");
$row = mysql_fetch_row($age_result);
$average_age=$row[0];
echo "Average age of ".$teamID." is ".$average_age;
or
$age_result = mysql_query("select AVG(age) as avgage FROM bat_rost WHERE
ownerID = '$t
you could move to a database that supports hot backups. postgresql perhaps ?
> -Original Message-
> From: Thies C. Arntzen [mailto:[EMAIL PROTECTED]]
> Sent: 10 July 2001 10:40
> To: Taylor, Stewart
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Oracle 8i + non perstistant database connecti
string stripslashes (string str)
Returns a string with backslashes stripped off. (\' becomes ' and so on.)
Double backslashes are made into a single backslash.
Steve
> -Original Message-
> From: Andy [mailto:[EMAIL PROTECTED]]
> Sent: 06 July 2001 10:29
> To: [EMAIL PROTECTED]
> Subj
gt;
> Justin Farnsworth wrote:
>
> >Steve Brett wrote:
> >
> >>does anyone know the ascii value for EOF ?
> >>
> >
> >I think it is four (CTRL-D), viz:
> >
> >| 00 nul| 01 soh| 02 stx| 03 etx| 04 eot| 05 enq| 06 ack| 07 bel|
> >
>
your session_start() has to be the first thing in the page. no blank lines
etc.
like
right at the top of your page. a blank line will send header info ...
Steve
> -Original Message-
> From: Brad Wright [mailto:[EMAIL PROTECTED]]
> Sent: 05 July 2001 16:21
> To: [EMAIL PROTECTED]
> Subj
fixed it now by adding ascii(10) to reply from server BUT what if i use
fgetc ?
does anyone know the ascii value for EOF ?
cheers,
Steve
> -Original Message-
> From: Steve Brett [mailto:[EMAIL PROTECTED]]
> Sent: 05 July 2001 12:58
> To: Php-General (E-mail)
> Subjec
printf("Steve%c Hello world",255);
fputs($socket,$message);
echo fgets($socket, 255);
fclose($socket);
}
the socket is opened using fsockopen() and the message get there but i only
get the reply when the remote socket server is closed ...
can anyone help ?
""Phil Driscoll"" <[EMAIL PROTECTED]> wrote in message
001201c0b768$60da60a0$0c81@philsntserver">news:001201c0b768$60da60a0$0c81@philsntserver...
> Steve
>
> unlink works fine for me (on my nt boxes) providing the anonymous web user
> has permission to delete the files. Note that under II
hi,
i need to delete files in my web folder so i can 'tidy' them up. i have a
username and password that has ftp access and so far i've tried system(),
unlink() and setting up an ftp connection (they use php 4.03 whihc seems to
have ftp access closed).
i have no problem listing the files i want
hi,
i'm busily rewriting an exisitng calendar system that is in use at work.
we're using UML as a design tool and hope to have an OO version of the
system we have at the minute that wil 'fit in' with future devs.
our system at the moment makes heavy use of postgresql and i am hoping to
populate
59 matches
Mail list logo