On Wednesday 14 November 2007 18:47, Daniel Brown wrote:
| On Nov 14, 2007 1:27 PM, [EMAIL PROTECTED] wrote:
| Hey list,
|
| I'm doing some RD for a project at my job and my boss wants the
| ability to send pictures to cell phones. I was wondering if
| anyone had any experience with
On Wed, 14 Nov 2007 23:45:40 -0800, Daevid Vincent [EMAIL PROTECTED]
wrote:
I want to put a code snippet section on my site and want to colorize them
like the user comments on any PHP site page.
http://www.php.net/manual/en/language.operators.arithmetic.php
What's the easiest way to do
Daevid Vincent wrote:
Plus it looks freakin' slick as hell and gives the appearance that I
am smarter than I am. *grin*
Definitely a point worth making :-)
besides, modulus 8 is done by one single instruction - of
which a modern processor does some three billion per second.
Perhaps. But
Hi all:
In my quest to make things seem easier for the user to understand, I'm
trying to retrieve the time that I start posting a very large file via a form
post. The form action sends it back to itself, which is fine. It took me some
time to figure out that NOTHING happens on the client
Jon Westcot wrote:
Is there a way that I can intercept the click of the Upload
button, have it update a field (probably a hidden one) with a
date/time stamp, and then have that value included in the $_POSTed
values?
Sure, javascript is the answer.
/Per Jessen, Zürich
--
PHP
Per Jessen wrote:
Jon Westcot wrote:
Is there a way that I can intercept the click of the Upload
button, have it update a field (probably a hidden one) with a
date/time stamp, and then have that value included in the $_POSTed
values?
Sure, javascript is the answer.
pseudocode:
[EMAIL PROTECTED] wrote:
But don't forget to send a server timestamp within the form. Just for
the case that server time and client time may differ in some minutes
(or even timezone).
The OP said I'd like to be able to notify the user of when the file
upload actually began., so the timestamp
Instruct ICC wrote:
Date: Thu, 15 Nov 2007 00:20:52 +
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: php-general@lists.php.net
Subject: Re: [PHP] file_exists
Philip Thompson wrote:
I've run into similar problems where I *thought* I was looking in the
correct location... but I
Daevid Vincent wrote:
Worked pretty good. It seems to have trouble with the \ and \\ chars
for some reason, but close enough for jazz as they say... (notice the
array has \\ when it should only be a single one,
What do you actually have in the code - a double (an escaped backslash)
or a
-Original Message-
From: T.Lensselink [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2007 12:05 AM
On Wed, 14 Nov 2007 23:45:40 -0800, Daevid Vincent [EMAIL PROTECTED]
wrote:
I want to put a code snippet section on my site and want to
colorize them like the user
Jon Westcot wrote:
Is there a way that I can intercept the click of the Upload
button, have it update a field (probably a hidden one) with a
date/time stamp, and then have that value included in the $_POSTed
values?
Sure, javascript is the answer.
But don't forget to send a
Instruct ICC wrote:
Date: Thu, 15 Nov 2007 00:20:52 +
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: php-general@lists.php.net
Subject: Re: [PHP] file_exists
Philip Thompson wrote:
I've run into similar problems where I *thought* I was looking in the
correct location... but I wasn't.
Hm,
Still no hyperlink?
$email = $_REQUEST['email'] ;
$fromaddress .= '[EMAIL PROTECTED]';
$fromname .= 'Zone of success Club';
$eol=\r\n;
$headers = From: .$fromname..$fromaddress..$eol;
$headers .= Reply-To: .$fromname..$fromaddress..$eol;
$headers .= Return-Path:
On 15 November 2007 00:32, Jeffery Fernandez wrote:
How
can I get a sequence of values like:
AX0001
AX0002
AX0003
AX0004
.
AX0099
AX0100
and so on ?
Actually, the ++ operator will do this for you:
$seq = AX;
++$seq; // AX0001
++$seq; // AX0002
Cheers!
Mike
We are sending email now,
But we are back to the original problem,
No hyperlink!
$email = $_REQUEST['email'] ;
$fromaddress .= '[EMAIL PROTECTED]';
$fromname .= 'Zone of success Club';
$eol=\r\n;
$headers .= From: .$fromname..$fromaddress..$eol;
$headers .= Reply-To:
On Thu, 15 Nov 2007 03:40:32 -0800, Daevid Vincent [EMAIL PROTECTED]
wrote:
-Original Message-
From: T.Lensselink [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2007 12:05 AM
On Wed, 14 Nov 2007 23:45:40 -0800, Daevid Vincent [EMAIL PROTECTED]
wrote:
I want to put a code
Hi,
I'm looking for a recommendation for a small easy to use free article
manager.It must be able to fit in with existing site and be able to include
a picture.It does not need an all singing editor a simple form system will
do I can control the look by css.
Cheers
Chris
--
PHP General
Still parsing as text and not html!
a href=http://www.zoneofsuccessclub.com;link /a
//a href=http://www.zoneofsuccessclub.com;link /a
$email = $_REQUEST['email'] ;
$fromaddress .= '[EMAIL PROTECTED]';
$fromname .= 'Zone of success Club';
$eol=\r\n;
$headers = From:
No access to the server command line to install it!
And, I am into this guy too deep to switch technologies. For the next time
around, no problem, this time I am just trying to get php to do what it is
supposed to do.
The suggestion of mime was presented to me from another kind sole trying to
Brad wrote:
Beginning with
$headers .= --.$htmlalt_mime_boundary.$eol;
It starts to read it as text and not html??
Could this be a server side problem?
Nope.
$email = $_REQUEST['email'] ;
$fromaddress .= '[EMAIL PROTECTED]';
$fromname .= 'Zone of success Club';
$eol=\r\n;
$headers =
Beginning with
$headers .= --.$htmlalt_mime_boundary.$eol;
It starts to read it as text and not html??
Could this be a server side problem?
$email = $_REQUEST['email'] ;
$fromaddress .= '[EMAIL PROTECTED]';
$fromname .= 'Zone of success Club';
$eol=\r\n;
$headers = From:
Brad wrote:
Beginning with
$headers .= --.$htmlalt_mime_boundary.$eol;
It starts to read it as text and not html??
Could this be a server side problem?
$email = $_REQUEST['email'] ;
$fromaddress .= '[EMAIL PROTECTED]';
$fromname .= 'Zone of success Club';
$eol=\r\n;
$headers = From:
On Nov 14, 2007 10:00 PM, Instruct ICC [EMAIL PROTECTED] wrote:
Enough about me. I never thought I'd say this in earnest...
RTFM
Have I become like who I've despised?
We all do eventually
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
If at first you
On Wed, 14 Nov 2007 23:45:40 -0800, Daevid Vincent [EMAIL PROTECTED]
wrote:
I want to put a code snippet section on my site and want to colorize them
like the user comments on any PHP site page.
Hi:
It was suggested to use php's highlight_string -- I wouldn't do that.
Why don't you use css
I'm working on one my first PHP projects, and I have extensive
experience with coding, so I know what I want to do is not
outrageous.
The short version is: I need to master the download stream for a file,
while delivering it to the enduser, I need to change some bytes in the
file data. A simple
I think file_exists returns false for remote files ;)
On Nov 15, 2007, at 2:33 AM, Colin Guthrie [EMAIL PROTECTED] wrote:
Instruct ICC wrote:
Date: Thu, 15 Nov 2007 00:20:52 +
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: php-general@lists.php.net
Subject: Re: [PHP] file_exists
On Nov 15, 2007 7:16 AM, Stut [EMAIL PROTECTED] wrote:
Instruct ICC wrote:
Date: Thu, 15 Nov 2007 00:20:52 +
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: php-general@lists.php.net
Subject: Re: [PHP] file_exists
Philip Thompson wrote:
I've run into similar problems
I want to put a code snippet section on my site and want to colorize them like
the user comments on any PHP site page.
http://www.php.net/manual/en/language.operators.arithmetic.php
What's the easiest way to do that?
I've used Geshi, but that seems a lot of overhead just to colorize a wee
Paul Farr wrote:
The short version is: I need to master the download stream for a
file, while delivering it to the enduser, I need to change some bytes
in the file data. A simple search and replace. I want to do it in the
stream, don't want to create a new file each time.
Assuming you've a
On Nov 15, 2007 10:31 AM, Mike Yrabedra [EMAIL PROTECTED] wrote:
Hello,
I am getting these errors all the time now, on multiple scripts at random
times.
Warning: bcompiler: Bad bytecode file format at in Unknown on line
0
This tells me it has to be PHP in some fashion.
Only
Hi,
I'm looking for a recommendation for a small easy to use free article
manager.It must be able to fit in with existing site and be able
to include
a picture.It does not need an all singing editor a simple form
system will
do I can control the look by css.
I'm currently doing the same
On Nov 14, 2007 10:29 PM, Instruct ICC [EMAIL PROTECTED] wrote:
I'm going to have to move this to gmail to keep it threaded better.
As long as the subject doesn't change, it works great.
Unfortunately, I don't think Gmail uses message IDs for threading.
--
Daniel P. Brown
[office] (570-)
Brad wrote:
My bad,
You do not need command line access!
I should have read more.
I just need to get this puppy working is all.
Php should be able to do this by it's self!
It can, *if* you create the email correctly.
PHPMailer will be quicker to put in than this merry-go-round you're on
Hi!
Can somebody give me some guideline how to install PHP 5.3 to a Mac
(intel based) with mysqlnd support?
TIA!
Best Regards,
Felhő
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Nov 15, 2007, at 10:17 AM, Daniel Brown wrote:
On Nov 14, 2007 10:29 PM, Instruct ICC [EMAIL PROTECTED]
wrote:
I'm going to have to move this to gmail to keep it threaded better.
As long as the subject doesn't change, it works great.
Unfortunately, I don't think Gmail uses message
On Nov 15, 2007 9:41 AM, Brad [EMAIL PROTECTED] wrote:
Beginning with
$headers .= --.$htmlalt_mime_boundary.$eol;
It starts to read it as text and not html??
Could this be a server side problem?
Negative. It's client-side error E304, resulting from a
null-pointer exception between the
On Thu, 15 Nov 2007 09:58:59 -0500, Brad [EMAIL PROTECTED] wrote:
Still parsing as text and not html!
a href=http://www.zoneofsuccessclub.com;link /a
//a href=http://www.zoneofsuccessclub.com;link /a
$email = $_REQUEST['email'] ;
$fromaddress .= '[EMAIL PROTECTED]';
$fromname .= 'Zone of
On Nov 15, 2007 11:05 AM, Mike Yrabedra [EMAIL PROTECTED] wrote:
on 11/15/07 10:55 AM, Daniel Brown at [EMAIL PROTECTED] wrote:
On Nov 15, 2007 10:31 AM, Mike Yrabedra [EMAIL PROTECTED] wrote:
Hello,
I am getting these errors all the time now, on multiple scripts at random
times.
Daniel Brown wrote:
On Nov 15, 2007 11:10 AM, Stut [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On Nov 15, 2007 9:41 AM, Brad [EMAIL PROTECTED] wrote:
Beginning with
$headers .= --.$htmlalt_mime_boundary.$eol;
It starts to read it as text and not html??
Could this be a server side problem?
Casey wrote:
I think file_exists returns false for remote files ;)
Even if it did (it doesn't:
http://uk3.php.net/manual/en/wrappers.ftp.php), I'd still rather not let
someone steal my /etc/passwd or /etc/shadow etc. files.
As I said before. Some form of regexp or similar restriction is
On Nov 15, 2007 5:34 PM, Brad [EMAIL PROTECTED] wrote:
Thank you so much!
It worked like a champ first try!
I would have never seen that and have been looking everywhere on the net for
a working example!
Funny thing is, right after is work perfectly twice, my database crashed!
But, this
Thank you so much!
It worked like a champ first try!
I would have never seen that and have been looking everywhere on the net for
a working example!
Funny thing is, right after is work perfectly twice, my database crashed!
But, this is the technology we play with!
Problem solved and I am going
Mike Yrabedra wrote:
Hello,
I am getting these errors all the time now, on multiple scripts at random
times.
Warning: bcompiler: Bad bytecode file format at in Unknown on line
0
This tells me it has to be PHP in some fashion.
Only thing I have found is this...
I do this
Example:
?
switch($_REQUEST['req'])
{
default:
$click_stamp =date('is');
echo form action=? method=postinput type=hidden name=clicks
value=$click_stamp
input type=file name=upfile tabindex=1 size=35
input type=submit value=upload name=req/form;
break;
case upload:
//Upload function
On Nov 15, 2007 10:00 AM, Hodicska Gergely [EMAIL PROTECTED] wrote:
Hi!
Can somebody give me some guideline how to install PHP 5.3 to a Mac
(intel based) with mysqlnd support?
TIA!
Best Regards,
Felhő
Consider using Macports (http://www.macports.org/) to install it. After
installing
On Nov 15, 2007 9:16 AM, Jason Pruim [EMAIL PROTECTED] wrote:
On Nov 15, 2007, at 10:17 AM, Daniel Brown wrote:
On Nov 14, 2007 10:29 PM, Instruct ICC [EMAIL PROTECTED]
wrote:
I'm going to have to move this to gmail to keep it threaded better.
As long as the subject doesn't
On Nov 15, 2007 11:20 AM, Stut [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On Nov 15, 2007 11:10 AM, Stut [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On Nov 15, 2007 9:41 AM, Brad [EMAIL PROTECTED] wrote:
Beginning with
$headers .= --.$htmlalt_mime_boundary.$eol;
It starts to read
Brad wrote:
Why is php refusing to parse as html?
Here your code cut down to what you need:
$headers = From: \.$fromname.\ .$fromaddress..$eol;
$headers .= X-Mailer: PHP .phpversion().$eol;
$headers .= MIME-Version: 1.0\r\n;
$headers .= Content-Type: text/html; charset=\iso-8859-1\\r\n;
on 11/15/07 11:07 AM, Daniel Brown at [EMAIL PROTECTED] wrote:
On Nov 15, 2007 11:05 AM, Mike Yrabedra [EMAIL PROTECTED] wrote:
on 11/15/07 10:55 AM, Daniel Brown at [EMAIL PROTECTED] wrote:
On Nov 15, 2007 10:31 AM, Mike Yrabedra [EMAIL PROTECTED] wrote:
Hello,
I am getting these
Hi,
I was wondering, is there any way to send an email to a Blackberry PIN,
using PHP?
Thanks
Alexis
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Nov 15, 2007 12:36 PM, Mike Yrabedra [EMAIL PROTECTED] wrote:
on 11/15/07 11:17 AM, Colin Guthrie at [EMAIL PROTECTED] wrote:
Mike Yrabedra wrote:
Hello,
I am getting these errors all the time now, on multiple scripts at random
times.
Warning: bcompiler: Bad bytecode file
on 11/15/07 10:55 AM, Daniel Brown at [EMAIL PROTECTED] wrote:
On Nov 15, 2007 10:31 AM, Mike Yrabedra [EMAIL PROTECTED] wrote:
Hello,
I am getting these errors all the time now, on multiple scripts at random
times.
Warning: bcompiler: Bad bytecode file format at in Unknown
Brad wrote:
Why is php refusing to parse as html?
Here your code cut down to what you need:
$headers = From: \.$fromname.\ .$fromaddress..$eol;
$headers .= X-Mailer: PHP .phpversion().$eol;
$headers .= MIME-Version: 1.0\r\n;
$headers .= Content-Type: text/html; charset=\iso-8859-1\\r\n;
Paul Farr wrote:
I'm working on one my first PHP projects, and I have extensive
experience with coding, so I know what I want to do is not
outrageous.
The short version is: I need to master the download stream for a file,
while delivering it to the enduser, I need to change some bytes in the
Not a single reference to sending a hyperlink on that page!
-Original Message-
From: Dimiter Ivanov [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2007 11:27 AM
To: Brad
Cc: Stut; php-general@lists.php.net
Subject: Re: [PHP] Cannot send a hyperlink
On Nov 15, 2007 5:34 PM, Brad
No problem!
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 15, 2007 10:37 AM
To: Brad
Cc: php-general@lists.php.net
Subject: Re: [PHP] Cannot send a hyperlink
Brad wrote:
Thank you so much!
It worked like a champ first try!
I would have never seen
I am having trouble generating a sequence of numbers from the following start
value:
AX0001
what I have done so far is loop through each character and check if its a
alphabet and separating the characters and digits.
But when I increment the digits, its strips of the leading zeros. How can I
Daevid Vincent wrote:
I want to put a code snippet section on my site and want to colorize
them like the user comments on any PHP site page.
http://www.php.net/manual/en/language.operators.arithmetic.php
What's the easiest way to do that?
php -s yourcode.php
/Per Jessen, Zürich
--
PHP
We are sending email now,
But we are back to the original problem,
No hyperlink!
$email = $_REQUEST['email'] ;
$fromaddress .= '[EMAIL PROTECTED]';
$fromname .= 'Zone of success Club';
$eol=\r\n;
$headers .= From: .$fromname..$fromaddress..$eol;
$headers .= Reply-To:
On Nov 15, 2007 11:10 AM, Stut [EMAIL PROTECTED] wrote:
Daniel Brown wrote:
On Nov 15, 2007 9:41 AM, Brad [EMAIL PROTECTED] wrote:
Beginning with
$headers .= --.$htmlalt_mime_boundary.$eol;
It starts to read it as text and not html??
Could this be a server side problem?
On Nov 14, 2007, at 4:21 PM, Jürgen Wind wrote:
better use Date() in js ...
tedd-2 wrote:
Current date/time for whom?
For your server, use php's date().
For the user, use javascript's date().
It's so cool to be multilingual. :-)
Cheers,
tedd
I don't know that that's better. Then, suddenly,
Brad,
please, try solving these kinds of things yourself. Especially seen as
the parse error which you posted here was already found and shown to you
in one of your earlier posts to this list (if I'm not mistaken).
So, your problem is:
$body.= 'a href='http://www.zoneofsuccessclub.com'link
Per Jessen wrote:
Jim Lucas wrote:
If this is an EXE, I assume it is in binary format?
If so, would not your serial number have been compiled into the
software?
Wouldn't a simple search/replace fail in this case?
If the string (the serial number) is unique, and all in one place, a
simple
on 11/15/07 11:17 AM, Colin Guthrie at [EMAIL PROTECTED] wrote:
Mike Yrabedra wrote:
Hello,
I am getting these errors all the time now, on multiple scripts at random
times.
Warning: bcompiler: Bad bytecode file format at in Unknown on line
0
This tells me it has to be PHP
On Nov 15, 2007 3:35 PM, Jammer [EMAIL PROTECTED] wrote:
Hi All,
This is my first post here ... I'm very much a newbie to php but work
during the day using SQL Server, VS2005 and Foxpro. Looking to gen up
on my PHP.
Are there any IDE's for PHP worth checking out. Particularly free ones!
Still parsing as text and not html!
You should be able to do this in both PHPmailer and Example 1127. Sending HTML
email before I finish reading the 60 emails I have remaining to catch up on
this list. Including any download.
_
Next time Brad, please try to take a look yourself at the line the error
indicates (and the lines around it aswell) and TRY to figure out what
MIGHT be wrong.
- Tul
If it's not on the line it reported, it may be immediately above that line.
The only unhelpful error I've seen (once you
Jammer wrote:
Hi All,
This is my first post here ... I'm very much a newbie to php but work
during the day using SQL Server, VS2005 and Foxpro. Looking to gen up
on my PHP.
Are there any IDE's for PHP worth checking out. Particularly free ones!
TIA,
Will you please check the freakin'
On Nov 15, 2007 4:14 PM, mike [EMAIL PROTECTED] wrote:
On 11/15/07, Randy Patterson [EMAIL PROTECTED] wrote:
Hey,
I am needing to install a bug tracking system on a web server and looking
for
a good PHP open source solution. Looking for a pretty mature system that
still has active
On Nov 15, 2007 4:07 PM, Jay Blanchard [EMAIL PROTECTED] wrote:
=
Please feel free to add more points and send to the list.
20050322jb - Note the new location of PHP Editors list.
=
I like Zend Studio. www.zend.com.
William Betts
On Nov 15, 2007 2:35 PM, Jammer [EMAIL PROTECTED] wrote:
Hi All,
This is my first post here ... I'm very much a newbie to php but work
during the day using SQL Server, VS2005 and Foxpro. Looking to gen up
on my PHP.
Are there any IDE's for
=
Please feel free to add more points and send to the list.
20050322jb - Note the new location of PHP Editors list.
=
1. If you have any queries/problems about PHP try
Yeah, not sure why the invite a friend option is still there
On Nov 15, 2007 4:48 PM, William Betts [EMAIL PROTECTED] wrote:
Great with the times. :P It's not invite anymore.
On Nov 15, 2007 3:40 PM, Daniel Brown [EMAIL PROTECTED] wrote:
I know a good deal of us here are already using
I think file_exists returns false for remote files ;)
Even if it did (it doesn't:
http://uk3.php.net/manual/en/wrappers.ftp.php), I'd still rather not let
someone steal my /etc/passwd or /etc/shadow etc. files.
As I said before. Some form of regexp or similar restriction is 100%
I make use of CURL to talk to a back-end system and I'm calling it
several times per requested page and there are several page requests a
second. Is there anything I can do to make this process more efficient?
Does keep alive work? Do I need to keep the same connection handler and
not close it
On Nov 15, 2007 10:13 AM, Per Jessen [EMAIL PROTECTED] wrote:
Paul Farr wrote:
The short version is: I need to master the download stream for a
file, while delivering it to the enduser, I need to change some bytes
in the file data. A simple search and replace. I want to do it in the
Brad wrote:
Thank you so much!
It worked like a champ first try!
I would have never seen that and have been looking everywhere on the net for
a working example!
Funny thing is, right after is work perfectly twice, my database crashed!
But, this is the technology we play with!
Problem solved
Hello,
I am getting these errors all the time now, on multiple scripts at random
times.
Warning: bcompiler: Bad bytecode file format at in Unknown on line
0
This tells me it has to be PHP in some fashion.
Only thing I have found is this...
http://pecl.php.net/bugs/bug.php?id=10742
Date: Thu, 15 Nov 2007 13:16:46 +
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: php-general@lists.php.net
Subject: Re: [PHP] file_exists
Instruct ICC wrote:
Date: Thu, 15 Nov 2007 00:20:52 +
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC:
Great with the times. :P It's not invite anymore.
On Nov 15, 2007 3:40 PM, Daniel Brown [EMAIL PROTECTED] wrote:
I know a good deal of us here are already using Gmail accounts,
but if you're not one of us and would like to be, let me know. I
still have 95 invites left, and whomever would
You can get it for free. Go to mail.google.com and click Get Gmail
or something like that.
On Nov 15, 2007 1:48 PM, William Betts [EMAIL PROTECTED] wrote:
Great with the times. :P It's not invite anymore.
On Nov 15, 2007 3:40 PM, Daniel Brown [EMAIL PROTECTED] wrote:
I know a good deal
bugzilla or mantis
bastien From: [EMAIL PROTECTED] To: php-general@lists.php.net Date: Thu, 15
Nov 2007 15:06:08 -0600 Subject: [PHP] Open Source BTS?? Hey, I am
needing to install a bug tracking system on a web server and looking for a
good PHP open source solution. Looking for a pretty
Hi All,
This is my first post here ... I'm very much a newbie to php but work
during the day using SQL Server, VS2005 and Foxpro. Looking to gen up
on my PHP.
Are there any IDE's for PHP worth checking out. Particularly free ones!
TIA,
--
jammer
www.jammer.biz
--
PHP General Mailing
No, you've missed the point. $expecteddir is a fixed variable that you,
the script author, specify. It does not contain anything coming from
external veriables. You then compare the full path you build from the
external variables to $expecteddir to verify that the file is in the
HI,
I'm working with an associative array, and generating its data a form. I use
foreach to loops the contents of the array and echo to print the table and
the data. Everything goes well, however I would like to add a counter to
print the row's number.
The question : Am I able to add a counter
Instruct ICC wrote:
No, you've missed the point. $expecteddir is a fixed variable that you,
the script author, specify. It does not contain anything coming from
external veriables. You then compare the full path you build from the
external variables to $expecteddir to verify that the file is
On Thursday 15 November 2007 21:35:04 Jammer wrote:
Hi All,
This is my first post here ... I'm very much a newbie to php but work
during the day using SQL Server, VS2005 and Foxpro. Looking to gen up
on my PHP.
Are there any IDE's for PHP worth checking out. Particularly free ones!
Instruct ICC wrote:
Date: Thu, 15 Nov 2007 13:16:46 +
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: php-general@lists.php.net
Subject: Re: [PHP] file_exists
Instruct ICC wrote:
Date: Thu, 15 Nov 2007 00:20:52 +
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC:
My server is down right now so I can't do my usual example script.
A likely story.
Just kidding.
Stut, YOU WERE RIGHT, AND I WAS WRONG.
Your code is golden.
_
Help yourself to FREE treats served up daily at the Messenger Café.
Something like the following would be much better (untested)...
$page = realpath(dirname(__FILE__).'/inc/'.$_GET['page'].'.php');
$expecteddir = realpath(dirname(__FILE__).'/inc');
if (substr($page, 0, strlen($expecteddir)) != $expecteddir)
{
// Ideally return a 403 status here
It could present a problem depending on how the permissions are setup
on the shared hosting and if open_base is in effect.
If they can get the /etc/shadow file from a php being ran by apache
then you have an issue, because apache would be
running as root. Take the below example.
Yes, I made a mistake in the first sentence.
The code is :
[...]
foreach ($equipos as $key = $val){
echo trtd;
echo 1 . /tdtd; // I would like to add the counter here reeplacing
1
print input type=\radio\ name=$key value=\l\ / . /tdtd;
echo $key . /tdtd;
print input type=\radio\ name=$key
In news: [EMAIL PROTECTED] - Edward Kay
wrote :
Hi,
I'm looking for a recommendation for a small easy to use free
article manager.It must be able to fit in with existing site and be
able
to include
a picture.It does not need an all singing editor a simple form
system will
do I can control
Instruct ICC wrote:
Something like the following would be much better (untested)...
$page = realpath(dirname(__FILE__).'/inc/'.$_GET['page'].'.php');
$expecteddir = realpath(dirname(__FILE__).'/inc');
if (substr($page, 0, strlen($expecteddir)) != $expecteddir)
{
// Ideally return a 403
2007/11/15, Philip Thompson [EMAIL PROTECTED]:
On Nov 15, 2007 5:12 PM, Juan Marcelo Rodríguez
[EMAIL PROTECTED]
wrote:
Yes, I made a mistake in the first sentence.
The code is :
[...]
foreach ($equipos as $key = $val){
echo trtd;
echo 1 . /tdtd; // I would like to add the
I know a good deal of us here are already using Gmail accounts,
but if you're not one of us and would like to be, let me know. I
still have 95 invites left, and whomever would like one is more than
welcome to it.
If you're not familiar with Gmail, check out the site at
On Nov 15, 2007 4:54 PM, Casey [EMAIL PROTECTED] wrote:
You can get it for free. Go to mail.google.com and click Get Gmail
or something like that.
On Nov 15, 2007 1:48 PM, William Betts [EMAIL PROTECTED] wrote:
Great with the times. :P It's not invite anymore.
On Nov 15, 2007 3:40 PM,
Hey,
I am needing to install a bug tracking system on a web server and looking for
a good PHP open source solution. Looking for a pretty mature system that
still has active development. Thanks for any suggestions.
Randy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Nov 15, 2007 12:14 PM, [EMAIL PROTECTED] wrote:
FOR GODS SAKE DON'T comment on syntax or design. I DO NOT CARE this is a
example ONLY!!!
OF COURSE I LEFT OUT CODE. OF COURSE THIS IS NOT A COPY PASTE AND IT WILL
RUN!!
There should be an apostrophe in GODS and your sentence should
Brad wrote:
No access to the server command line to install it!
And, I am into this guy too deep to switch technologies. For the next time
around, no problem, this time I am just trying to get php to do what it is
supposed to do.
You don't need command line access to install it. PHPMailer
1 - 100 of 116 matches
Mail list logo