From: pan [EMAIL PROTECTED]
What provides the new data?
Can you run a html update from whatever is supplying the new data?
Hmm, I don't think I can. The data is stored in MySQL by a separate program,
but that data can be used in more pages.
I think the only good solution would be to run a
Sean O'Donnell [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
the #146; character...
*damn outlook rewrote it in my email. =/
SEAN O'DONNELL
PROGRAMMER/ANALYST
Hi Sean,
generally apply htmlentities() to all data to output. Use double quotes for
your HTML attributes so single
On Monday 16 August 2004 17:03, Brian Dunning wrote:
I think I may have solved it by an even simpler method: I emailed the
perpetrator to thank him for all of his orders to see what he'd say.
:-) Great idea! (me shows the thumbs up)
Anyone know who the proper authorities are, to whom I
Octavian Rasnita wrote:
From: pan [EMAIL PROTECTED]
What provides the new data?
Can you run a html update from whatever is supplying the new data?
Hmm, I don't think I can. The data is stored in MySQL by a separate program,
but that data can be used in more pages.
I think the only good
Hallo all.
Could me somebody recommend with building-up automatic MANAGER (DEAMON),
that will be with me communicate by MAILOV? Something how's too MANAGER for
control this conference? Just SCRIPT would with me communicate by mail and
he execute operations, according control word in transmiting
Hi all,
Still no luck with sessions. I have installed an older version: 4.3.1
and have register_globals=Off
I have 2 test pages a1.php and a2.php
All I want to do is register a session variable, set a value for it and
then in a2.php check that it is still registered and view the session's
Frank
I use a back button on a couple of sites that use session variables and
don't seem to have an issue with them. However, my back buttons are held
within IFRAME tags as I am accessing resources externally.
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
On Tuesday 17 August 2004 17:46, Angelo Zanetti wrote:
Still no luck with sessions. I have installed an older version: 4.3.1
and have register_globals=Off
I have 2 test pages a1.php and a2.php
All I want to do is register a session variable, set a value for it and
then in a2.php check that
Hi all. I'm probably biting off a little more than I can chew here but here
goes...
I've been asked to move some resources I have developed from our hosting
company's server and host them locally. I know I am going to need a licence
for MySQL as we are developing commercial applications and not
Why are you testing if $_POST['submit'] is set are you posting something to
the page??
In the two scripts you posted the code block wont be executed because there
is no post variable
being set.
Try this:
a1.php
==
?php
session_start();
On Tuesday 17 August 2004 17:25, Marko Rastislav wrote:
Could me somebody recommend with building-up automatic MANAGER (DEAMON),
that will be with me communicate by MAILOV? Something how's too MANAGER for
control this conference? Just SCRIPT would with me communicate by mail and
he execute
Thanks to all that responded, I have finally found the problem:
When I installed PHP again, I kept on modifying the PHP.ini in the
WINNT directory (as specified in the manual) but the PHP.ini that was
being looked up was the 1 in the c:\php directory so I kept on trying
all new things and nothing
How do you do that exactly - sorry for the stupid question - but the perms
for [absolute_path¹]/ is already rwxrw-rw-.
Let me know if you are referring to a different way to set permissions...
Thanks for your help!
/T
on 8/16/04 23:52, Jason Wong at [EMAIL PROTECTED] wrote:
On Tuesday 17
Hi Angelo,
--- Angelo Zanetti [EMAIL PROTECTED] wrote:
Still no luck with sessions.
[snip]
a1.php:
?
session_start();
header(Cache-control: private); // IE 6 Fix.
if(isset($_POST['Submit']))
{
$_SESSION[login]=inside;
session_write_close();
Please do not top post.
On Tuesday 17 August 2004 19:31, [EMAIL PROTECTED] wrote:
How do you do that exactly - sorry for the stupid question - but the perms
for [absolute_path¹]/ is already rwxrw-rw-.
Let me know if you are referring to a different way to set permissions...
1) What is the
Hi everyone;
I´m having a trouble with mktime. It is not generating negative values since the
OS was updated to Linux version 2.6.7 (gcc version 3.2.3).
I belive php uses mktime from glibc, and when this library was changed, mktime
with this new stupid feature stoped generate
Hi all,
I want to do something like this:
http://www.cgnetworks.com/story_custom.php?story_id=2259
Where we can publish an article, multiple page even and lay it out in a
nice design with images etc. How do you think this is done? These
stories are dynamically generated it seems since the page
Hi all,
I want to do something like this:
http://www.cgnetworks.com/story_custom.php?story_id=2259corresponding
Where we can publish an article, multiple page even and lay it out in a
nice design with images etc. How do you think this is done?
Uh...HTML? It is a website, correct?
These
please ask a PHP specific question.
rogue wrote:
Hi all,
I want to do something like this:
http://www.cgnetworks.com/story_custom.php?story_id=2259
Where we can publish an article, multiple page even and lay it out in
a nice design with images etc. How do you think this is done? These
stories
--- rogue [EMAIL PROTECTED] wrote:
I want to do something like this:
http://www.cgnetworks.com/story_custom.php?story_id=2259
Where we can publish an article, multiple page even and lay
it out in a nice design with images etc. How do you think
this is done?
Nice designs and images come
THats kinda cool. you see that there is also a page=2 query if you
click to a different page, so i would assume, they store the html in a
database for each page of a story. and then give a story_id to those
records. so in the table, if there is 4 pages for story 12, then there
are 4 records all
On Mon, 16 Aug 2004 09:31:04 +0300, Octavian Rasnita [EMAIL PROTECTED] wrote:
Hi,
I took a look to Smarty and Savant templating systems, and I like a few
things from both of them.
However, none of them are satisfactory.
I don't like Smarty because it needs another language and I find
rogue wrote:
Hi all,
I want to do something like this:
http://www.cgnetworks.com/story_custom.php?story_id=2259
Where we can publish an article, multiple page even and lay it out in a
nice design with images etc. How do you think this is done? These
stories are dynamically generated it seems
I understand how the pages are designed etc. What I wanted to
understand better was how the pages were being displayed using PHP. I
guess it is obvious now after getting a few responses, that the HTML is
stored in a table, perhaps one record per page... then you just query
the story_id and
Friendly crew today. :)
Jason
John Nichel [EMAIL PROTECTED] wrote:
rogue wrote:
Hi all,
I want to do something like this:
http://www.cgnetworks.com/story_custom.php?story_id=2259
Where we can publish an article, multiple page even and lay it out in a
nice design with
Hi All,
I am having a hard time connecting to a mssql db from within a class. I
keep getting this error;
Warning: mssql_connect() [function.mssql-connect]: message: Login failed
for user 'SERVER\IUSR_SERVER'. (severity 14) in
G:\wwwdev\includes\dbclass.inc.php on line 20
$this-dbh
Jason Davidson wrote:
Friendly crew today. :)
We're all friendly...
Except for that Chris guy
I hear he's real mean. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I understand how the pages are designed etc. What I wanted to
understand better was how the pages were being displayed using PHP. I
guess it is obvious now after getting a few responses, that the HTML is
stored in a table, perhaps one record per page... then you just query
the story_id and
Yea, But then I took his advice and found this
http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was
not so offended :)
I had all the other links, but that one and did not think my question
was that out there for the list... oh well.
On Aug 17, 2004, at 12:31 PM, Jason Davidson
Hi Markus,
Markus Mayer wrote:
[MTA in chroot()'d env]
Yes, I'm afraid it requires an MTA.
Maybe it's a risk, but unsing PHP (or general non-static webpages)
generally is a potential security risk #
Dan Bernstein, the author of qmail will pay you 1000$ if you exploit
qmail. The offer stands
Yea, But then I took his advice and found this
http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was
not so offended :)
I had all the other links, but that one and did not think my question
was that out there for the list... oh well.
On Aug 17, 2004, at 12:31 PM, Jason
Rather than kill myself trying to do this, I'm simply cutting the file
at the content point and saving each half of the file, and using
INCLUDE(Start.php) and INCLUDE(finish.php). Template variables are
included in the $template array.
As far as the actual template is concerned, I'll keep
hehe, funny crew too :)
Matthew Sims [EMAIL PROTECTED] wrote:
Yea, But then I took his advice and found this
http://www.catb.org/~esr/faqs/smart-questions.html#keepcool so I was
not so offended :)
I had all the other links, but that one and did not think my question
was that out
On Aug 17, 2004, at 1:04 PM, Matthew Sims wrote:
snip
hn C. Nichel
OMG, John. You broke through to someone. This could be good sign. Now
if
we can just get him to stop top posting he'll be ready for anything. ;)
/snip
oops... now i got it! :)
--
PHP General Mailing List (http://www.php.net/)
To
I'm on Windows 2000 trying to get the JSR 223: Scripting Pages in
Java^TM Web Applications working of which PHP is the initial concrete
implementation. Zend has been working with Sun to support PHP (and other
scripting languages) better within Tomcat basically. Things get running
fine thou
On Mon, 16 Aug 2004 11:22:30 +0300, Skippy [EMAIL PROTECTED] wrote:
I'm looking for PHP code that will produce diff's between two texts, and
render them inline. By that I mean not the standard *nix diff output,
which compares and outputs lines, but a diff that compares inline text
and outputs
I want to send emails to 2700 addresses selected from a MySQL
database (an opt-in list). I am using the Mail module, assembling
the addresses into an array, and passing that to the module. I have
done this before with a few hundred addresses, but in this case, it
fails.
I know that some of
On Tue, 17 Aug 2004 10:17:50 -0700, Sandy Keathley
[EMAIL PROTECTED] wrote:
I want to send emails to 2700 addresses selected from a MySQL
database (an opt-in list). I am using the Mail module, assembling
the addresses into an array, and passing that to the module. I have
done this before
Hi all! I could use some perspective on a project that I am currently
working on.
I am trying to utilize OO to make my PHP easier, but I keep running into
problems that revolve around the stateless nature of the web.
Consider the following: I have a login class that is instantiated at the top
of
Hello,
My name is Brendan Kettle ([EMAIL PROTECTED]), and
I was wondering is there anyway to test/run php code on a pocket
pc?
Any help is appreciated.
Cheers,
Brendan
_
It's fast, it's easy and it's free. Get MSN Messenger today!
put something in your script like
if($_SESSION['authed'] == true)
$user = new User($_SESSION['userId']);
or something similar.
Jason
Jed R. Brubaker [EMAIL PROTECTED] wrote:
Hi all! I could use some perspective on a project that I am currently
working on.
I am trying to utilize
The real reason for having the login class like this is to eliminate
database calls. I thought I could have one session variable that said yo
uwere logged in, but then the database calls would still have to be made on
each page.
Thanks for the idea - any others?
Jason Davidson [EMAIL PROTECTED]
I recently had a hard-drive go down in which I was running os x 10.2.x. I do not
remember exactly what version of mysql, php etc. I had on it. I had a small mysql
database with some php code that worked fine. Now that I have my new drive I have put
php 4.3.2, phpmyadmin 2.5.7-pl1, and mysql
Is there anything that says I can't instantiate the login class into the
$_SESSION ? Pros, cons?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jed R. Brubaker wrote:
Consider the following: I have a login class that is instantiated at
the top of every page. It can log you in, check to see if you are
logged in, etc. This class has an assortment of class variables such
as userID, userType, etc.
[...]
A solution is to set all of these
--- John Nichel [EMAIL PROTECTED] wrote:
We're all friendly...
Except for that Chris guy
I hear he's real mean. ;)
Hey, that's not true! :-)
Chris
=
Chris Shiflett - http://shiflett.org/
PHP Security - O'Reilly
Coming Fall 2004
HTTP Developer's Handbook - Sams
Does anyone have information on PHP and FirstPay.net? I'm looking at using
them to do credit card processing and wondering how easy it will be to
communicate back and forth with them, whether scripts are available, etc..
Thanks,
Ed
So dont make db call, pass appropriate vars thru session... i like to
pass an array of data into my classes, so that there is no db call
inside the constructor, this saves db calls tremendously at times.
so you could pass an array into session called, UserData or whatever,
and use that to
* Thus wrote Jed R. Brubaker:
Hi all! I could use some perspective on a project that I am currently
working on.
I am trying to utilize OO to make my PHP easier, but I keep running into
problems that revolve around the stateless nature of the web.
Consider the following: I have a login
On Tue, 17 Aug 2004 12:03:56 -0600, Jed R. Brubaker
[EMAIL PROTECTED] wrote:
Hi all! I could use some perspective on a project that I am currently
working on.
I am trying to utilize OO to make my PHP easier, but I keep running into
problems that revolve around the stateless nature of the
-Original Message-
The real reason for having the login class like this is to eliminate
database calls. I thought I could have one session variable that said yo
uwere logged in, but then the database calls would still have to be made
on
each page.
Playing Devil's Advocate
_
From: Bobbie Atristain [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 3:27 PM
To: '[EMAIL PROTECTED]'
Subject: Help with PHP 5 - code not working since upgrade
Greetings,
I've had to move an application from a Rehat Linux 6 apache server running
PHP 3.x to a MAC OS
Chris Shiflett wrote:
--- John Nichel [EMAIL PROTECTED] wrote:
We're all friendly...
Except for that Chris guy
I hear he's real mean. ;)
Hey, that's not true! :-)
Well, I'll quit spreading that rumor then. ;)
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP
Greetings,
I've had to move an application from a Rehat Linux 6 apache server running
PHP 3.x to a MAC OS X apache 1.3 running PHP 5 and the code listed below
bombs out..i have commented it out for now and it works but the code
listed
below doesn't work on the new server - do any of you see
I don't know - is it?
Ed Lazor [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
-Original Message-
The real reason for having the login class like this is to eliminate
database calls. I thought I could have one session variable that said
yo
uwere logged in, but then
On Tue, 17 Aug 2004 12:40:00 -0700 (PDT), in php.general you wrote:
I didn't have to look much further than this. You have a class that was
designed in PHP3 and suddenly you're wondering why it work in PHP5?
Actually, I too would wonder why it worked :)
--
- Peter Brodersen
--
PHP General
Okay - I apologize but I'm a systems admin - not a programmer - would I
even need those classes now?
-Original Message-
From: Matthew Sims [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 3:40 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] FW: Help with PHP 5 - code not
How are you reading you POST variables? You're probably hitting the
register globals off change that occurred in PHP for security reasons.
Values passed for a POST (or GET) are no longer automatically declared
as variables.
You should be accessing your POST variables like
Doesn't MSFT have PIIS? Pocket Internet Information Server?
If there's a web server that runs on the Pocket PC ... but I don't think so.
MT
At 03:14 PM 8/17/2004, dark monkey wrote:
Hello,
My name is Brendan Kettle ([EMAIL PROTECTED]), and
I was wondering is there anyway to test/run php code on a
On Tue, 17 Aug 2004 18:14:52 +, dark monkey
[EMAIL PROTECTED] wrote:
Hello,
My name is Brendan Kettle ([EMAIL PROTECTED]), and
I was wondering is there anyway to test/run php code on a pocket
pc?
Any help is appreciated.
Have you looked to see if there's an Apache/PHP build for
Thanks for the info Matt - recommend any good websites for learning to
script???
Cheerios,
Bobbie
For PHP, there's no beating php.net. Probably one of the best sites for
learning. I'm sure someone else can list other sites to help but I've
always used php.net and Google Groups for anything
I am having troubles with a script im trying to write. I was wondering
if anyone could help me. The script needs to upload 2 files to a
directory, and have a field for a name, which will then figure out the
URLs of the files put them in the database along with the specified
name. Please help :o
Hello,
On 08/17/2004 02:17 PM, Sandy Keathley wrote:
I want to send emails to 2700 addresses selected from a MySQL
database (an opt-in list). I am using the Mail module, assembling
the addresses into an array, and passing that to the module. I have
done this before with a few hundred
Maybe this help.
http://www.phpclasses.org/browse/package/1708.html
[s]
Mt
- Original Message -
From: Brad Ciszewski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 17, 2004 5:18 PM
Subject: [PHP] multi-uploading
I am having troubles with a script im
post some code please.
Jason
Brad Ciszewski [EMAIL PROTECTED] wrote:
I am having troubles with a script im trying to write. I was wondering
if anyone could help me. The script needs to upload 2 files to a
directory, and have a field for a name, which will then figure out the
URLs of the
-Original Message-
I don't know - is it?
I would think so. It's optimized for speed on small data sets. Does anyone
else have an opinion on this?
-Ed
Ed Lazor [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
-Original Message-
The real reason for
One day I need to take a vacation with a big pot of coffee and study arrays. They're
my downfall.
We're moving to a new server and finally have a recent version of PHP.
We have a page on the site for captioning the photos with the names of the subjects.
After the form is posted, the script
i think for the ease of use, 1 db call per page is minimal, especially
sinse we are talking about some small fields here. THe db is local to
the webserver, so really, whats the problem.
Jason
Ed Lazor [EMAIL PROTECTED] wrote:
-Original Message-
I don't know - is it?
I would
while (list ($key, $val) = each ($_POST[firstname])){
$_POST[firstname][$key] = trim($_POST[firstname][$key]);
$_POST[middlename][$key] = trim($_POST[middlename][$key]);
$_POST[lastname][$key] = trim($_POST[lastname][$key]);
you might be able to get this one yourself.
Remove $_POST from $_POST[firstname][$key], $_POST[middlename][$key] and
$_POST[lastname][$key].
It should simply be $firstname[$key], $middlename[$key], and $lastname[$key]
Not sure what your array data looks like but instead of using while() use
foreach():
foreach($_POST['firstname'] as $key
When using mysql_fetch_array() is it necsessary to specify the second
argument - meaning the constant of MYSQL_NUM or MYSQL_ASSOC?
I have seen many examples where it is left out and it is coded:
$row = mysql_fetch_array($sql);
as opposed to
$row = mysql_fetch_array($sql, MYSQL_BOTH);
Thank
On Tue, 17 Aug 2004 18:18:24 -0400
[EMAIL PROTECTED] (Anthony Ritter) wrote:
When using mysql_fetch_array() is it necsessary to specify the second
argument - meaning the constant of MYSQL_NUM or MYSQL_ASSOC?
php.net/mysql_fetch_array
array mysql_fetch_array ( resource result [, int
Thanks, that worked.
So I understand this better did this
($_POST[firstname][$key] = trim($_POST[firstname][$key]);)
not work because the variable to the left of the '=' was no longer POSTed?
Original Message
Remove $_POST from $_POST[firstname][$key], $_POST[middlename][$key] and
On Tue, 17 Aug 2004 18:18:24 -0400
[EMAIL PROTECTED] (Anthony Ritter) wrote:
When using mysql_fetch_array() is it necsessary to specify the second
argument - meaning the constant of MYSQL_NUM or MYSQL_ASSOC?
php.net/mysql_fetch_array
array mysql_fetch_array ( resource result [, int
Anthony Ritter wrote:
When using mysql_fetch_array() is it necsessary to specify the second
argument - meaning the constant of MYSQL_NUM or MYSQL_ASSOC?
I have seen many examples where it is left out and it is coded:
$row = mysql_fetch_array($sql);
as opposed to
$row = mysql_fetch_array($sql,
hello,
I have a webpage which includes a frame containing a table made of 24
tds which in turn contain little images. When the mouse clicks on a
little image the appropriate larger image is loaded into an adjacent frame.
Can somebody point me in the direction to do this in php without frames
file_get_contents(http://www.yoursite.com/script.php;);
using http:// causes it to get the html source.
Hannes Magnusson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
http://www.php.net/manual/en/ref.outcontrol.php
On Mon, 16 Aug 2004 10:35:42 -0400
[EMAIL PROTECTED] (Doug Parker)
On Wed, 18 Aug 2004 00:50:45 -0700
[EMAIL PROTECTED] (Josh Acecool M) wrote:
file_get_contents(http://www.yoursite.com/script.php;);
I belive that this method will hang for ever since the script doesnt exit until
file_get_contents() has got the complete results.. ...and the complete results
I am extracting text from a text datatype field of a
database. The target text is marked (beginning and
end) by html comments that have a known--but not
uniform--format. Unfortunately, the web-based
interface used to maintain the data inserted hard line
breaks in the text.
I initially tried
I am extracting text from a text datatype field of a
database. The target text is marked (beginning and
end) by html comments that have a known--but not
uniform--format. Unfortunately, the web-based
interface used to maintain the data inserted hard line
breaks in the text.
I initially tried
Hannes Magnusson wrote:
file_get_contents(http://www.yoursite.com/script.php;);
I belive that this method will hang for ever since the script
doesnt exit until file_get_contents() has got the complete results..
...and the complete results wont be ready until file_get_contents()
returns.
There
Hello,
How to understand this warning?
I thought maybe the directory name is incorrect, but it's fine.
The Browser said..
Warning: readdir(): 2 is not a valid Directory resource in
C:\xxx\x\news.php no line 78.
?php
if ($handle = opendir('news')) {
$sortArray=array();
while (false !==
hello,
I have a webpage which includes a frame containing a table made of 24
tds which in turn contain little images. When the mouse clicks on a
little image the appropriate larger image is loaded into an adjacent
frame.
Can somebody point me in the direction to do this in php without frames
On Tue, 17 Aug 2004 19:34:18 -0700
[EMAIL PROTECTED] (John Holmes) wrote:
Hannes Magnusson wrote:
file_get_contents(http://www.yoursite.com/script.php;);
I belive that this method will hang for ever since the script
doesnt exit until file_get_contents() has got the complete results..
On Wed, 18 Aug 2004 02:54:35 +0300
[EMAIL PROTECTED] (Labunski) wrote:
Hello,
How to understand this warning?
I thought maybe the directory name is incorrect, but it's fine.
The Browser said..
Warning: readdir(): 2 is not a valid Directory resource in
note the 2 in that message. You are
Chris Shiflett wrote:
--- John Nichel [EMAIL PROTECTED] wrote:
We're all friendly...
Except for that Chris guy
I hear he's real mean. ;)
Hey, that's not true! :-)
must be the other cris then.
--
Raditha Dissanayake.
Hannes Magnusson wrote:
On Tue, 17 Aug 2004 19:34:18 -0700
[EMAIL PROTECTED] (John Holmes) wrote:
Hannes Magnusson wrote:
file_get_contents(http://www.yoursite.com/script.php;);
I belive that this method will hang for ever since the script
doesnt exit until file_get_contents() has got the
On Tue, 17 Aug 2004 12:25:42 -0600, Jed R. Brubaker [EMAIL PROTECTED]
wrote:
The real reason for having the login class like this is to eliminate
database calls. I thought I could have one session variable that said yo
uwere logged in, but then the database calls would still have to be made
Just wondering if someone has some suggestions here.
Using ftp_connect($server, $port) returns a false on the server I am trying
to use. Doesn't matter which server I am trying to connect to. According
to the provider, ftp from the server is allowed and php is compiled with
--enable-ftp
Any
Hi,
Wednesday, August 18, 2004, 9:09:02 AM, you wrote:
KB I am extracting text from a text datatype field of a
KB database. The target text is marked (beginning and
KB end) by html comments that have a known--but not
KB uniform--format. Unfortunately, the web-based
KB interface used to maintain
Hi,
note the 2 in that message. You are prob. resetting the readdir()
parameter in the script somewhere
No, as far as I can see, I'm not resetting the readdir().. but..
You loop twice throu the same dir?
Yes I do.
Here is whole script:
?php
if ($handle = opendir('news')) {
91 matches
Mail list logo