On Thu, 31 Jul 2003 14:04:02 -0400, Dan Joseph wrote:
Yeah, the framework does. The free editor is for web apps, the Visual
Studio is for normal apps.
FYI, I just had Visual Studio ordered for me - a single license for it
with a 1 year subscription to MSDN was over $2800! I don't know yet
what
On Wed, 23 Jul 2003 14:48:03 -0600, Kevin Stone wrote:
Beauford, here's a login routine that I wrote using Sessions and Header
redirects. It is my interpretation of what you are trying to do. I'm not
saying this is the only way to do it but it works well for me. Compare it
to what you're doing
On Thu, 24 Jul 2003 02:05:58 -0500, Wendell Brown wrote:
Ok, I have a question. Where is $_SESSION['valid_user'] getting set
(or unset)???
Oooops. I thought that was the code that he was talking about. I
missed your lead in. Sorry!!!
--
PHP General Mailing List (http://www.php.net
On Thu, 17 Jul 2003 05:55:27 +, Curt Zirzow wrote:
Example 4. Sending complex email
http://www.php.net/manual/en/function.mail.php
um.. don't use that example, it is the incorrect way to send a bcc. for
one it wont work and two the people will see the bcc, defeating the
purpose of a bcc.
On Fri, 18 Jul 2003 08:30:24 +0800, Louie Miranda wrote:
A message that you sent contained a recipient address that was incorrectly
constructed:
Bcc: [EMAIL PROTECTED] missing or malformed local part (expected word or
)
got this error..
Well, maybe your copy of php is expecting around
On Tue, 15 Jul 2003 14:52:36 +1000, Justin French wrote:
My *aim* was to port the expected values in the URL (/cooking/154) into
the $_GET superglobal array (eg $_GET['cat'] = 'cooking', $_GET['id'] =
154), resulting in:
If you are on Apache, you can use mod rewrite to do this for you with
NO
On Tue, 15 Jul 2003 07:28:37 -0500, Wendell Brown wrote:
If you are on Apache, you can use mod rewrite to do this for you with
NO script changes. I use this on a couple of sites, the /1/2 gets
converted into ?vara=1varb=2 in the call. Neither the search engine
nor the script can tell
So how to make sure that no one can access other people files and
server files? and is there any way that nobody would be able to
download php files or how to make them look like code when they are
downloaded. Thanks!
I think he means How do I keep people who have access to upload their
I've got a problem. I have a form that the user fills out and then
hits submit on and it sends an e-mail. My problem is that I have one
AOL user that claims that when ever he goes back to the form, it
doesn't present the form - it just sends the message. It appears that
for some reason
On Wed, 09 Jul 2003 13:23:59 +0100, David Otton wrote:
On Wed, 09 Jul 2003 07:00:38 -0500, you wrote:
if( ! isset( $HTTP_POST_VARS[EMail] ) ) {
The obvious thing to do is change all instances of EMail to emailaddress
or somesuch, and see if the problem still exists. Do you know anyone on AOL
On Mon, 07 Jul 2003 21:59:23 -0700, Ralph Guzman wrote:
I have a form where I have to check whether user is submitting a PO Box
as an address. I wrote the following using eregi, but it returns true
even when the field is not Po Box. How do I go about doing this
properly?
if(eregi(^Po Box$,
On Mon, 7 Jul 2003 21:01:40 +0100 (BST), Graham Rule wrote:
The only place that they are
available is to PHP scripts run in the relevant directory.
Which means that if a hacker finds a cross script hack in one of those
directories (ie, if you have a security hole in one of your php
scripts),
On Wed, 2 Jul 2003 19:40:37 +0200, Karina S wrote:
I want to make a php site which can generate a html code and display it on
the screen. (Display the code itself.)
See if this will do what you want:
http://us2.php.net/manual/en/function.highlight-string.php
or
On Tue, 01 Jul 2003 10:59:53 -0500, Kyle Babich wrote:
How would I set the file pointer to the very end of the last line of the
file?
Assuming you are trying to append to the file you can do the following
(open output append):
$fHandle = fopen( file.txt, a );
or you can fopen the file in
On Tue, 01 Jul 2003 22:38:38 -0700, John wrote:
When using mod_rewrite, is there any way to post variables from a form the
way you want to.
eg
a text box called first name
another textbox called second name
action being http://www.searcher.com/search
and the result being
On Mon, 30 Jun 2003 07:31:59 -0500, Wendell Brown wrote:
On Sun, 29 Jun 2003 15:19:56 -0400, Larry R. Sieting wrote:
I want to output the difference as a difference expressed in time
format: 10:05:23 - 09:45:32 = 00:39:51
Try this:
?PHP
$tot_time = ($data['end_time'] - $data['start_time
On Mon, 30 Jun 2003 13:50:21 -0600, Peter Janett wrote:
Directory /var/www/html/mydatabase
php_value mysql.default_user fred
php_value mysql.default_password secret
php_value mysql.default_host server.example.com
/Directory
H what about phpinfo()? It shows those settings in the
On Mon, 30 Jun 2003 13:50:21 -0600, Peter Janett wrote:
My concern is that a shell emulating PHP or
Perl script run as Apache can read or copy ANY PHP script used with PHP as
an Apache module.
It seems to me like the safest way to handle this would be to create a
function that opens the database
On Fri, 27 Jun 2003 21:21:34 +0200, Marcus Akre wrote:
However the $_SERVER[CONTENT_LENGTH] is between 300 and 400 bytes. The
data is there, but how can i access it?
Maybe, $_SERVER[HTTP_RAW_POST_DATA]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Fri, 27 Jun 2003 15:05:29 -0500, Erich Kolb wrote:
I am already running MySQL 4, how would I go about adding indexes?
http://www.mysql.com/doc/en/CREATE_INDEX.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, 26 Jun 2003 06:10:48 -0500, Daryl Meese wrote:
A quick thought -- It would be nice if we had a authorization code in the
What about Safe Mode? It looks like it can be configured
http://us3.php.net/manual/en/features.safe-mode.php#ini.safe-mode
Between safe_mode_include_dir and
On Tue, 17 Jun 2003 07:25:00 -0400, Vincent Bouret wrote:
I want A dog jumped over a ladder to become xyzA/xyz dog jumped over
xyza/xyz ladder.
How about this...
$str = A dog jumped over a ladder;
$str = preg_replace( /(^| )(a)( |$)/i, $1xyz$2/xyz$3, str );
--
PHP General Mailing List
On Tue, 24 Jun 2003 14:09:30 +0200, Denis 'Alpheus' Cahuk wrote:
It should be TOTALY FREE!
I've got you covered. I will happily offer all of the items you
request. No advertising or anything, full php, front page, mysql, 500
Meg disk space.
I do charge $500 per month if you want upload
How many times have you manually calculated the hours, minutes and
seconds between two dates? I was doing that again (for the million'th
and one times) and thought there should be a different way to do
this Here is what I came up with (I don't know if it's more
efficient than the old
On Wed, 28 May 2003 10:23:22 -0500, Wendell Brown wrote:
To force all of the pages (both pseudo-static and dynamic) to generate
a Last-Modified header, I set up prepend.php script which is
configured as a directory level (.htaccess) parm to auto_prepend_file.
As appears to be the usual case
On Fri, 20 Jun 2003 15:08:39 GMT, [EMAIL PROTECTED] wrote:
Directory /spool/web/www.jeamland.org/html
AddType application/x-httpd-php .html
php_value include_path .:/spool/web/www.jeamland.org/lib
php_value auto_prepend_file header.php
On Fri, 20 Jun 2003 10:15:43 -0500, Wendell Brown wrote:
Try it without the:
php_value auto_prepend_file header.php
php_value auto_append_file footer.php
Or check for the existence of the requested file in the header and if
not found, send the 302 header
On Fri, 20 Jun 2003 10:34:04 -0500, Wendell Brown wrote:
php_value auto_prepend_file header.php
php_value auto_append_file footer.php
Andy, I've tried the following (with my server info, of course) in one
of my directories and it works like a champ! It doesn't matter
On Fri, 13 Jun 2003 12:22:44 -0400, Carl Furst wrote:
How do you do this?
Use JavaScript. :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 13 Jun 2003 10:54:39 -0600, Kevin Stone wrote:
Javascript.. bah humbug. :)
Carl, you can avoid these issues by using output buffering allowing you to
call header() whever you want in your script.
But he doesn't get to see the printed info - so it's basically the same
difference. I
On Thu, 12 Jun 2003 10:13:10 -0400, James E Hicks III wrote:
There's got to be an easier way, is there?
for ($i=0; $i count($the_array); $i++){
array_pop($the_array);
}
Maybe this:
unset( $the_array );
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wed, 11 Jun 2003 14:53:13 +0100, Marios Adamantopoulos wrote:
[link][title]the link[/title][address]http://www.php.net[/address][/link]
And I need to change it to this:
a href=http://www.php.net;the link/a
E, fun try this :)
?PHP
$in = '[link][title]the
On Tue, 10 Jun 2003 21:14:52 +1000, Ben Houlton wrote:
I've tried this code on a web server and it worked, but on my localhost server it did
not work. It just looped the ADD RECORD text (not including database infomation).
My code is below:
HTML
BODY
?php
$register_globals;
It sounds like
On Tue, 10 Jun 2003 12:05:32 -0500, Todd Snyder wrote:
My hope is that their is some directive that I can output at the start that will
invoke the PHP interpreter so that my output will
be run as a PHP script rather than just HTML.
Generally speaking a script will be interpreted by one or the
On Fri, 6 Jun 2003 11:36:51 +0100, [EMAIL PROTECTED]
wrote:
How can I get that to talk to $PHP_AUTH_USER?
I'm not sure this is exactly what you want (actually, I'm pretty sure
this is coming at it from the opposite end), but here is a way I used
it for a very simple / low security situation.
I
On Mon, 9 Jun 2003 07:21:45 -0500, Jay Blanchard wrote:
I see what you are saying, but how much modification is too much? :)
OK, another waythe HTML could be read into a page (fopen())
containing the header/footer stuff. You'd have to deal with
identification of which page you want loaded,
I'm looking for a cook book script. I've googled for it, looked in
php.resourceindex.com and hotscripts but I haven't found one that does
what I'm looking for. Here's what I'm shooting for.
1) User ID registration - need to be able to have users own recipes
and cookbooks.
2) Allow users to
Ok guys, I think I have a challenge for you (actually, I don't think
this can be done, but I've been proven wrong every time I've made that
assumption with php in the past, so I'll ask anyway). Here's the
question:
Is there a way to have php insert headers and/or footers into all of
the html
On Thu, 05 Jun 2003 16:41:01 -0400, Tom Ray [Lists] wrote:
First, I would drop a .htaccess file that allows the HTML files to run
through the PHP parser. Like this AddType application/x-httpd-php .php .html
-h1-? include('header.inc'); ?-/h1-
Yeah, that would work but my goal was to not have
On Thu, 5 Jun 2003 02:10:32 +0800, Jason Wong wrote:
In case 1, a malicious person can bypass your password checks by passing
admin=1 in the URL.
Actually, I set up a very similar user security system by taking
advantage of the $PHP_AUTH_USER variable.
I would check to see if the variable
On Tue, 3 Jun 2003 18:41:59 +0200, Wouter van Vliet wrote:
I've heard something about the possibility to set an option somewhere that
will include a file to each php file requested... but I can't find it..
It's an ini setting (auto_prepend_file). Check here:
http://us4.php.net/ini_set
It can
On Tue, 3 Jun 2003 19:16:30 +0200, +ystein H†land wrote:
Now my code is
extract ($_GET);
if ($_GET['printout'] != yeah) { include(header.php); }
but I still get the following error:
Undefined index: printout
I understand nothing
Ok, it looks like you are mixing your metaphors ;)
If you
On Tue, 03 Jun 2003 12:59:41 -0500, Tim Thorburn wrote:
is it possible to have a PHP script execute on command from a cron
tab?
Absolutely!
And if so, could someone proide an example of say having the script
run on the first of every month?
It should look something like this.
0 0 1 *
On Mon, 02 Jun 2003 02:38:51 -0400, Gerard Samuel wrote:
For the life of me, according to the output of ethereal (a network
sniffer), this file is always fetched from the server.
Have you looked at what is actually coming out in the headers? If not,
grab a copy of Sam Spade for windows
On Mon, 2 Jun 2003 17:07:17 +0200, Ferhat BINGOL wrote:
I wan to do something like that, I saw some sites do but how?
I wanto code in HTML like that
img src=http://www.myserver.com/image.php?id=12321
so it will go and that the image like the id and display it in html..
Are you intending to
On Thu, 29 May 2003 10:33:16 +0100, Ford, Mike [LSS]
wrote:
Well, how about references, then? (And me, personally, I'd use isset()
rather than is_array().)
if (isset($_POST)):
$POST = $_POST;
else:
$POST = $HTTP_POST_VARS;
endif;
I was told that PHP didn't do
On Thu, 29 May 2003 07:21:01 -0700 (Pacific Standard Time), Rasmus
Lerdorf wrote:
It isn't a pointer. It is a reference which you should think of as a
symbol table alias. A pointer, at least by my definition, is a memory
address. In PHP it isn't a memory address, just another entry in the
On Thu, 29 May 2003 15:40:00 +0100, Shaun wrote:
of course ;)
but i couldn't find a reference to this particular problem...
I don't think you are going to find a standard PHP function to do this.
You are going to have to do something like this (I haven't tried it
but I think it will do what
On Wed, 28 May 2003 12:46:50 +0100, David Grant wrote:
I would've thought that $HTTP_*_VARS will be deprecated sometime in the
future. It might be an idea to write your own accessor methods, e.g.
function RetrieveGetParameter($parameterValue)
Egads! Wouldn't the following be a little
On Wed, 28 May 2003 16:13:22 +0200, [EMAIL PROTECTED] wrote:
if (!empty($_POST)) {
extract($_POST);
} else {
extract($HTTP_POST_VARS);
}
And have it in an include file, extract_post.php.
This way I can just include it and all variables are available, just like if
register_globals had been on.
On Wed, 28 May 2003 16:30:17 +0200, [EMAIL PROTECTED] wrote:
Howcome? I don't think I understand that...
Check this out.
http://us4.php.net/registerglobals
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 28 May 2003 09:31:11 -0500, Jay Blanchard wrote:
I wouldn't go as far as using the auto_prepend_file.
Neither would I in this case Jay.It was simply an example of what
could be done, not necessarily what SHOULD be done. I did however, use
auto_prepend_file in a .htaccess file for a
I had completely forgotten how much more hassel CGI / Perl is when
compared to PHP. I just got done doing a MINOR mod to a Perl script
(it took me about 4 hours compared to what would have taken me about 10
minutes in PHP) and I just want to say THANK YOU to all the PHP
developers! :)
--
PHP
On Wed, 28 May 2003 19:00:20 +0100, Jordan Elver wrote:
I can't get it to display. It just shows the broken image icon.
I assume you are sending something similar to the following before the
actual pic?
header(content-type: image/png);
I have a script set up on my page that demonstrates using
54 matches
Mail list logo