Ulrich,
Pretty sure that the way to fix this will be to make sure that PHP just
can't read those files... so that the apache (or whatever server) user
that runs the PHP [module/binary] doesn't have access to read them.
If you are concerned specifically about /etc/passwd, shadow it. You can
fi
Also, if you don't need to do this on the fly (or even if you do, in
certain cases) just use 'convert', a standard unix tool (fairly
standard, anyway). So if, for instance, your users are uploading a gif,
and you need a png (so that you can tweak with it), you could write it
to a file, and then
t: Re: [PHP] can't generate gif!!!
I thought convert was an imagemagick command, rather than unix by
default?
could be wrong tho...
- Original Message -
From: "Ben Bleything" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, July 08, 2001 5:23 PM
Have you made sure that the php on the command line and the php that
apache is using are indeed the same one? It's possible that apache is
looking at a module somewhere and that the php on the command line is
the binary you built.
Just a thought.
Ben
-Original Message-
From: Power Pro
Use a database. With mysql, you can store the text into a table with
primary key called 'page' or something like that, and a text field of
some sort.
Then, do mysql_query("SELECT pagetext FROM website WHERE page=$page;");
=>
Dive into it. It's easier than it looks.
Ben
-Original Message
er method I sent will reduce the size (and maintenance cost) of
your index.php page, while being fast (as Mark says).
Ben
-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 2:05 PM
To: Ben Bleything; [EMAIL PROTECTED]; 'PHP General List (E-mai
out how to do this...
so the switch statement idea works I guess. sounds good.
-Original Message-
From: Mark Charette [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 5:05 PM
To: Ben Bleything; [EMAIL PROTECTED]; 'PHP General List (E-mail)'
Subject: Re: [PHP] Questi
How are you executing the script? Does it come by and run 'php
yourscript.php' or does the script have a shebang ('#!/usr/bin/php') in
it? I've found that works well... just put that as the first line, and
it behaves as a shell script (after you make it executable, of course)
Ben
-Original
,
Ben
-Original Message-
From: James, Yz [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 3:57 PM
To: Ben Bleything; [EMAIL PROTECTED]
Subject: Re: [PHP] Running PHP as a cron job
Hi Ben,
When running it as a normal PHP file, I get the cron daemon emailing me
stuff like:
automation/
Interesting method, with the lynx... I imagine that if you've only built
the DSO, then that would be the way to do it.. if it worked. My guess
would be, you would have to do lynx
'http://localhost/path/to/script/script.php' to force it to go through
the server.
TO be totally honest with you, I'm
Just out of curiosity, is everyone else receiving auto-replies from
Peter Mosinskis when they post to the list? I know I am.
=> Ben
That's what I thought. Great.
I just wanted to make sure that I wasn't doing something else to provoke
his mailer =>
Ben
-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 5:19 PM
To: 'Ben Bleything'; [EMAIL PROTE
Do you mean to output the current structure of the table?
Check out http://www.mysql.com/doc/m/y/mysqldump.html. Mysqldump will
do that for you... If you mean a syntax reference, check www.mysql.com.
If you didn't mean either of those things, Sorry =>
Ben
-Original Message-
From: [EMAI
A shot in the dark would be to use HTTP Post instead of Get... but, I
don't know http.
-Original Message-
From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 08, 2001 9:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] url without a query string?
the problem
i have a page that uses
little bugs in the code . . .'
And it continued until they reached 0
- Original Message -----
From: "Ben Bleything" <[EMAIL PROTECTED]>
To: "'Jon Yaggie'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 11:25 AM
Subject
he full path, else you're creating a
security
issue.
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
- Original Message -
From: Ben Bleything <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>;
TECTED] wrote:
> "Ben Bleything" <[EMAIL PROTECTED]> wrote:
>> I believe (and I'm sure someone will correct me if I'm wrong) that
>> whenever you 'include' or 'require' a file, it drops to regular HTML
>> mode... so, yes, you wil
Couldn't you just
echo `traceroute $ipgoeshere`;
??
Ben
-Original Message-
From: Ker Ruben Ramos [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 8:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] command output
ey guys.. anyone know of doing something like with
net.yahoo.com/
It's simple. Find your php binary (or build one if you don't have
one)... I think 'which php' will find it.
Then, write a php file with '#!/path/to/php -q' at the top. Use any one
of the various execution methods to run your programs. Done!
I've been doing this for quite a while. I find it e
put tags around the file you include, and it
will parse it as PHP =>
I'm doing this now. I have a bunch of files in a subdir
of the published directory, that contain functions and
definitions to do these things, and I include them at
the beginning of each file. But, you do need
tags around th
Someone yesterday also suggested putting them in a
web-accessible location, but having lynx come by and run
them.
That seemed pretty cool =>
Good luck,
Ben
Quoting "Chadwick, Russell" <[EMAIL PROTECTED]>:
>
> You can still run php... I put my cron scripts
> in a directory on the web
> server,
Check out http://www.phpbuilder.com/columns/florian19991014.php3. I've
been using it to maintain image galleries. Works like a champ.
My guess would be that any version of php will upload multiple files...
just use multiple variables =>
Good luck and let us know,
Ben
-Original Message
This won't work if they're binary files. Also, for most binaries, it's
better to use LONGBLOB... much more flexibility. But there's a bunch of
stuff to tweak to get it to work.
http://www.phpbuilder.com/columns/florian19991014.php3 has details.
Ben
-Original Message-
From: Adam [mailt
Did you try 'SELECT categorie,item FROM your_table GROUP BY categorie'?
Ben
-Original Message-
From: Frédéric Mériot [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 5:41 AM
To: PHP General List
Subject: [PHP] How to fetch a "group by" Query?
Hello (again)
I've got a query whic
Ack! The travesty! Opportunities for OOP are literally
everywhere!
=> =>
Ben
-Original Message-
From: Adam [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 12:26 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] What the heck is this
ahh so it's for classes, then i'm fine because
Do you mean to suck down the pre-interpreted scripts from a remote
server?
Can't be done. The server interprets the scripts long before they ever
get put on the network. Your best bet will be to e-mail the admin and
ask =>
Ben
-Original Message-
From: Clayton Dukes [mailto:[EMAIL P
Hey everybody,
I've been hacking away on some scripts to do various things (primarily,
a job listing and faculty listing database for my work, Oregon State
University), and I've got to admit, I'm pretty new to this stuff, and a
lot of it I'm just hacking away at.
For instance, today, I threw t
http://php.net/manual/en/function.strpos.php
-Original Message-
From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 7:46 AM
To: PHP (E-mail)
Subject: [PHP] string search
I need a search function (if statement) that performs a search on a
string
and if the string c
Under RedHat 7.1, if you installed apache and php from the RPMs, you
should not have to change anything, other than maybe telling it to serve
up index.php pages.
The thing about MySQL from the RPM under that distro is that the server
is not started by default... if you haven't already, use 'chkco
Why don't you explode(";",$header); ??
Ben
-Original Message-
From: Adrian D'Costa [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 14, 2001 2:54 AM
To: php general list
Subject: [PHP] REGEXP
Hi,
I am trying to capture the Header from a mail for my webmail using php
and
pop3. The head
You could do something like print()'ing or echo()'ing whatever you want
into a file, and then sending a header("Location: newpage.php")... just
in case you haven't already figured out a solution.
By the way, this will not happen on the client end. PHP is server
interpreted, so anything you do wi
Could you please be quite a bit more specific? It's difficult to
diagnose the problem without really knowing what it is =>
-Original Message-
From: Jeremy Morano [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 4:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] days
The employees he
I'm not sure if this solution is not what you want to do or not... but
what I've done is to essentially send information identifying the info
to be deleted to another page (which you could pop up using jscript or
target="_blank"), which has yes or no buttons. If you click the yes
button, it does
You could write your own. . .
Just kidding... well, technically you could... but... that's not the
point.
http://sourceforge.net/projects/zipcodedb has a "Raw ZIP code dump"... It
has a little more data than just zip, city, state... I don't know what it
means, but maybe you would...
Sorry, it's
Hey all... I tried sending this earlier... accidentally sent it to
[EMAIL PROTECTED], then tried bouncing it to the write address...
anyway, apologies if it didn't work correctly.
Anyhoo...
I'm trying to get a piece of information from a server in the field that
responds to a certain command wit
My guess would be you can unset() it... but, hey.. it's a guess.
On Mon, 23 Jul 2001, ROsen wrote:
> Hi,
> how can I destroy an object created with "new" ?
>
> Thanks,
> Rosen
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional
Why not do something that parses the text, and put's tags
around the text, and use a stylesheet to highlight it?
The problem (that I can find) is that you are using eregi_replace(), which
is case-insensitive. You may need to do something like strpos() to find
the beginning and ends of the word,
check http://www.php.net/manual/en/features.safe-mode.php I suspect that
the problem is that the files you are trying to run are not owned by the
same user as the webserver user... that page should give you details on
this.
Good luck,
Ben
On Tue, 24 Jul 2001 [EMAIL PROTECTED] wrote:
> Hello al
Put it in a .php file. Your webserver probably doesn't interpret PHP in
HTML files (as is proper). If it MUST be in a HTML file, you'll have to
set up your webserver to interpret php in html files... that process
depends on your webserver.
Ben
On Tue, 24 Jul 2001, CGI GUY wrote:
> I'm trying
It can be used for (nearly) anything, it seems.
Sure, making dynamic web sites is cool... not necessarily database driven,
but perhaps driven by user input.
I'm currently using PHP as my primary shell scripting language... I have a
collection of scripts that manipulate directories full of digita
There are a wealth of available scripts at other websites...
www.hotscripts.com for instance... I find it unlike at this point that
anybody will send you anything... Just go there, or to SourceForge, and
you'll find all you need.
Ben
-Original Message-
From: Kyle Smith [mailto:[EMAIL PRO
Hey all,
I want to craft a header such that it seems to the page that data has
been POST'ed to it... Here's the situation: I'm writing a login page to
my application, and if they log in incorrectly, I want the page to
redisplay, but I want it to throw out an error message. I'm currently
doing i
the alternative ( header("Location: login.php?failure=true") ) does not
satisfy my requirement.
So... anybody else?
Ben
-Original Message-
From: Jacques [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 29, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: HTTP header question.
back to the page.
I'm having NO luck whatsoever with the HTTP RFC's... too thick =>
Thanks,
Ben
-Original Message-
From: Philip Murray [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 29, 2001 6:06 PM
To: Ben Bleything
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: HTTP header
I _believe_ (not totally sure) that mysql_query() can only handle one
statement at a time, and if you need to execute multiple, you will need
to use more than one mysql_query() statements. It's a bummer => I have
all sorts of problems with it.
What's up with your return e-mail address? It's a
nt: Sunday, July 29, 2001 7:16 PM
To: Ben Bleything; [EMAIL PROTECTED]
Subject: RE: [PHP] HTTP header question.
what is the logic behind requiring the header?
for example, to avoid using cookies and yet ensuring security, we pass a
loginkey for all pages.
every page has
include('se
one application, I can think of many other places where this would be
> valuable.
>
> Am I being unclear? It seems that my question was not understood.
> Please let me know so I can try to re-explain.
>
> Thanks,
> Ben
>
> -Original Message-
> From: Dave V
If you all would like, I can post my code... I'm still looking for a
solution.
Matt has it right. I'm trying to go for a more professional looking
thing... and I do want it to display a notice when the login fails. I
have thought of another way to do it... but it's not pretty, so I'm
still open
Ahh, and a bit of clarification before you read the code, the page posts
to itself =>
Ben
-Original Message-
From: Dave [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 8:05 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: HTTP header question.
below
>Some of the original message
Still curious about what everyone thinks =>
Ben
-Original Message-
From: Ben Bleything [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 4:16 PM
To: 'Dave'; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: HTTP header question.
Ahh, and a bit of clarification before you read
;set_enctype("multipart/form-data");
$return = $poster->send(0);
echo eregi_replace("^HTTP.*html>", "", $return);
Just thought I'd stick a little hint along with it. Sorry for the
long-windedness of this thread =>
Ben
-Original Message-
From:
small to store the serialized data?
Hope this helps =>
Ben
-Original Message-
From: Matthew Delmarter [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 8:34 PM
To: Ben Bleything
Cc: PHP Mailing List
Subject: RE: [PHP] storing array in mysql
Hi Ben,
This is a section of the inser
Whee! I'm a moron!
Anyhoo, I've always used mysql_fetch_array() =>
So... Like I said about the serialized data getting truncated... that's
still my best guess =>
Ben
-Original Message-
From: Ben Bleything [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001
One way would be to use a database (of any type) to store
username/password data, present the user with a form to fill out,
authenticate against the database, set session variable if they are
valid, and let them use the application.. if they fail, do whatever.
=> EXTREMELY brief. Can give more
I can't speak for terminal usage... I use pico and or vi... pico on
console, vi over ssh.
When working locally, I use nedit (www.nedit.org) on *nix (with custom
PHP syntax highlighting) and EditPlus on windows.
Good luck,
Ben
-Original Message-
From: Augusto Cesar Castoldi [mailto:[EMAI
, 2001 7:33 AM
To: php
Subject: RE: [PHP] Visual Login
if you go this route, you would, however, have to check
for valid-login users on every page that you want to
have security on.
> -Original Message-----
> From: Ben Bleything [mailto:[EMAIL PROTECTED]]
> Subject: RE: [PHP] Visua
AND, you can fairly easily configure it to deny all connections coming
from anywhere but localhost =>
Ben
-Original Message-
From: scott [gts] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 12:08 PM
To: php
Subject: RE: [PHP] Installing PHP probs
you dont have to have a se
Submit should get set when you click the submit button... it is not used
anywhere else...
Again, it works when you click the button, just not when you press
enter...
=>
I'm going to try what Richard just suggested, and I'll get back to you.
Ben
-Original Message-
From: Queen [mailto:[E
Chmod -R 77x test
The 'x' in the above statement is the world-permissions...
Execute is worth 1, Write is worth 2, Read is worth 4. If you add up
the numbers for the permissions you want, you get the result, so 775
would be full access for owner and group, and read/execute for world.
Hope thi
try this:
If( strcmp($voorraad[1],'on') == 0 )
// it's checked
else
// it's not
Good luck,
Ben
-Original Message-
From: Tijmen Hennink [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 1:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] array + checkbox
Hi All,
I've t
60 matches
Mail list logo