stripslashes($var);
and please, read the manual/documents.
> -Original Message-
> From: Marcus James Christian [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 27, 2001 12:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Filtering out \ when a ' is user entered?
>
>
> Hello,
>
> I'm p
is this a development box or a live hosting box?
be wary of setting arbitrary permissions on *nix
machines without knowing the consequences of doing so.
most of the time, if things are configured a certain
way, there's a pretty good reason why... :)
> -Original Message-
> From: Peter Ph
if you dont know PHP that well, you should implement it
in a language that you know, then work from that and
translate it into PHP.
i used to do that with perl/PHP when i was first learning
PHP... sometimes, things are more obvious when expressed
in a language that you're more familiar with.
>
im a textpad fan. (for windows)
http://textpad.com/
it supports custom syntax hilighting,
line numbers, and a ton of other features
that i use :)
> > -Original Message-
> > From: Tyler Longren [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 26, 2001 10:26 AM
> > To: [EMAIL P
with MySQL, TEXT is for text and BLOB is for binary data.
typemax. storage size
TINYBLOB, TINYTEXT 2^8
BLOB, TEXT 2^16
MEDIUMBLOB, MEDIUMTEXT 2^24
LONGBLOB, LONGTEXT 2^32
> -Original Message-
> From: infoz [mailto:[E
try 'cat /proc/uptime' logged in as the
webserver user and see what you get
(or try it thru a PHP script)
> -Original Message-
> From: infoz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 9:56 AM
> To: Peter Phillips; [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP Uptime er
search
for: linux4win
that's
probably what you're looking for...
you
can install on an existing windows partition
and
have it look like a giant file.
-Original Message-From: ReDucTor
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 26, 2001 7:52
AMTo: [EMAIL PROTECTED]Subj
or you could use preg_replace
preg_replace("/\n/", "\n", $var);
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 2:56 AM
> To: Joeri Vankelst
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Enter to BR
>
>
> > How
> So, people, when using PHP authentication, please use a Linux box!!! The
> windows version doesn't really work (at all).
>
> Brave Cobra
there are lots of reasons for switching to linux, but it's
not necessary to get authentication working properly,
just use a better server.
apache is one tha
i disagree with the first point. adding extra options
(like an MP3 player) will not "break the table" if you
code the system with knowledge of how the underlying
database is set-up.
a friend of mine setup a catalog system this way.
the catalogs would usually have ~5-10 custom options,
so his
sure. install PHP as a binary and run the script just
like you'd run any other script
;)
> -Original Message-
> From: Zhu George-CZZ010 [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] a standalone PHP script to update MySql serve
exactly. use the non-greedy "?" with the perl regex's
to have perl match the least amount of characters it can.
preg_match('//', $text, $matches)
in the case of perl regexp's, you have to specifically
tell the regexp not to be greedy. the "?" regexp modifier
is how you do this. (otherwise, th
always check permissions
make sure the web server can read/execute what it needs to.
also, have you tried running the program from a
shell and seeing if it generated any errors?
> -Original Message-
> From: Richard Lynch [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 25, 2001 3:12
here's my apache config i use at home
(where i have the binary version, *not* server module)
ScriptAlias /pbin/ /usr/local/php-bin/
AddType application/x-httpd-php .php
Action application/x-httpd-php /pbin/php
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
on pages with mostly HTML code, the second style is much
prefereable, but on pages with mostly PHP code, the first
style is usually OK.
overall, i tend towards the second, becuase it's a pain
in the ass to esape all the double-quotes in my HTML,
my echo statements usulaly end up looking like thi
i
wrote a simple classified and hash-enabled
template engine
as a
sort-of proof of concept placeholders in the template
are
denoted by %{name}% and they're filled with data by
the
"regvar()" func. $temp->regvar('name', 'value');
1)
class the engine so that you cay have multiple
ins
you must have permission to execute/read the binary,
and you must give the full location of that binary.
> -Original Message-
> From: Paindavoine, Matthieu (MPAINDAV) [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 20, 2001 7:26 AM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP] exec, backt
i use the full version of outlook 2000, and it didnt
even blink when the lists came back up... my "php"
folder just started filling up as usual ;)
i've noticed other people mentioning broken eudora
on this list... i dont mean to sound arrogant,
but perhaps it's time to upgrade, or get a better
em
figure out how many minutes per day, put that as a constant
in your script, then just multiply that by the number of
days between the two dates.
... or would you prefer something more convoluted? ;)
> -Original Message-
> From: Wim Koorenneef [mailto:[EMAIL PROTECTED]]
> Subject: [PHP]
i agree.
there's NOTHING more annoying than a broken validation
script when you're trying to enter valid, but weird, data.
perhaps separate the form up into one box for the
country code, one box for the number, and one box
for any add'l information (extensions, automated prompt
numbers, etc...)
yeah. at the beginning of each include file, put:
print '';
...or were you looking for something a little
harder and more convoluted? :)
> -Original Message-
> From: Tim McGuire [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 2:30 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP]
it looks like your solution *is* elegant... i tried
out your code, becuase i was astonished that such a
simple thing allegedly wasn't working... and it
did work.
below is the exact code i had in my text editor,
and it executed perfectly.
when i called $c->make(), it printed "A:: MAKE".
..am i mi
you so totally could use an assoc. array right now:
$cat_adt = "x";
$rm = "y";
$a[ $cat_adt ] = "whatever";
$a[ "$rm"."$cat_adt" ] = "Yeah";
print $a['yx'];
save yourself a lot of trouble and dont bother with
variables-of-variables and trying to get
$rm_$cat_adt == $rm_x
just use a hash... t
include() is not magical. it's all PHP code,
whether or not you put it into your "main" file,
or pull it in with an include()
if it's slow - it's slow, regardless of *how*
it was brought into the script.
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: W
along with domains, cookies respect directories.
for example:
i'd have a script in '/somewhere'
and another script in '/another'
and when they'd try to use the same cookies,
it wouldnt work...
i had to actually specify a path of '/' for
both of them to be able to use the same cookies.
>
Title: Uploading a file into a databaseideas please.
put a
on a form - cut-paste the
text onto the
form,
submit the form, and have the form put your info into
the database
if
your server supports PHP, there are many many MySQL
admin
scripts out there that you could use to add stu
i agree.
for small forms with not-a-lot-of-data to be processed,
keeping it all together is generally a lot easier to
maintain and upgrade. (it also makes it easier for others
to understand your code - since the data input *and*
processing code is all in the same place)
> -Original Message
it could be a bunch of different reasons, ranging
from software to hardware/OS errors
how much total memory is in the machine??
> -Original Message-
> From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]]
> Subject: [PHP] apache and php ate up all my memory :-[
>
> Hi all
>
> Proba
akhil, do you have a database server installed ?
> -Original Message-
> From: Andreas D. Landmark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 1:18 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] php bug reporting
>
>
> At 19.06.2001 05:29, you wrote:
> >Dear Sir
> > i am
try using full paths to your files.
> -Original Message-
> From: Splashy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 9:29 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] HELP problems running PHP4 script in CRON
>
>
> Hi,
>
> Please find script below and hopefully tell me wh
most email programs will allow you to filter
by email address also. works great for me.
> -Original Message-
> From: Chad Day [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 18, 2001 4:05 PM
> To: John Donagher; Rasmus Lerdorf
> Cc: [EMAIL PROTECTED]
> Subject: [PHP] RE: Lists are back
ject: RE: [PHP] advice on 'Nusphere Mysql Package' appreciated
>
>
> Thanks for replying Scott...
>
> Are you trying to say that Mandrake has PHP, Mysql, Apache
> and that the combination is easy to install correctly on
> Mandrake?
>
>
>
>
> >Fro
postgres outperforms mysql on very high traffic sites
where there are lots of INSERT and UPDATE commands
issued, but for small sites where a majority of database
calls are reading (SELECT), MySQL kicks postgres ass...
there was a really good article on phpbuilder.com a few
months back... check it
what else is running on the Win2k machine?
what kind of HTTP server?
if you're running IIS/MS-SQL server, i'd hazard a
guess that it's probably *those* programs that are
slowing the computer down.
i use Win2000/PHP/MySQL for local development
(after which i upload the scripts to a linux machine
Linux Mandrake (8.0) is extremely easy to install,
(it's a complete linux distrib, based off of RedHat,
so you can install it onto a clean machine)
the install is *very* interactive and it comes fully
loaded with almost everything you could want,
and is free
get the ISO's at :
http://linux
Oh, and the fields with blue link headings
dont sort correctly, becuase the actual values
of the fields are numeric...
click on "Raw" to see the actual data in the database,
click on "Complete" to see the values that have been
looked up
--
PHP General Mailing List (http://www.php.net/)
To unsu
Oh, if the headers look screwy, try de-selecting
a few fields from the box in the bottom right corner.
when there's too much info, the 'up' and 'down' sort
images kinda get smashed all over the place.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
I've been working on this thing for the past few days
and thought i'd share it all with you.
i've posted a demo up: you cannot delete rows,
but you can add and edit them
http://furt.com/php/dbedit/
to get the code: http://furt.com/php/dbedit_b1.zip
(please read specs.php for lots of information
ummm... what are you trying to do??
are you trying to parse a PHP script, then parse the
output as Ruby?? You can do that in PHP, with code.
As far as i know, the statements you suggest below
won't work (or at least, wont work the way you want
them to)
PS: having PHP parse '.html' files could
the words "shared NT server" make a chill run up my spine.
apache will beat any MS webserver hands down, and
overall, linux is more stable (and usually a lot
faster and easier to configure) than NT.
MS makes great user-interfaces and office software,
*not* great server software... i'd go with l
you need to specify those extra braces for any
multi-select HTMl object
i had the same problem with a:
> -Original Message-
> From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
> Subject: RE: [PHP] Not losing variables in forms w/ checkboxes
>
> Just append a pair of brackets to the NAM
please send a code snippet...
a lot of things changed from 3.x to 4.x
> -Original Message-
> From: Jeffrey Wang [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 18, 2001 2:37 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Got OO error after upgraded php3.0.8 to php4.05
>
>
> Hi,
> I g
i love when newbies ask for help and i'm able to help,
but when it comes to people being just plain lazy,
i agree with Miles...
** please read the docs before asking questions **
> -Original Message-
> From: Miles Thompson [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] Random number
>
and adding to what Miles says:
make sure to go thru any files that might be
require()'d or include()'d, becuase any stuff outside
the tags will be considered output also.
that error is like a rite of passage ;)
> -Original Message-
> From: Miles Thompson [mailto:[EMAIL PROTECTED]]
> S
i had to do that once with a perl script i was writing
because there were a variable number of "options" that
could be passed in, yet i needed to have a fixed number
of paramaters going into the script.
i used: ./prog.cgi?opts=x:1,y:2,z:3
sort-of like a primitive form of php's ability to pass
ar
do you have a "ScriptAlias"
directive in the apache conf's?
> -Original Message-
> From: midget2000x [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 17, 2001 5:16 PM
> To: Nathan Cook; [EMAIL PROTECTED]
> Subject: Re: [PHP] running a stand-alone PHP program
>
>
> Excellent. I got this
from the shell, you can use the mysql program
./mysql -uUser -pPass dbname
from PHP, why dont you just use: mysql_connect(...);
it seems that you might be confused about mysql, trying to
access it "via PHP" from the "unix shell". if you want to
set a unix shell enviornment variable and access
yes. netscape is incredibly anal about tables.
if you miss even one tag, the entire table
will not show... and netscape handles table background
images weird too, so keep that in mind if the table
shows up, but looks like someone vomited all over it.
per your subject header:
1) it's a netscape
even though it can be done, i strongly reccomend that
you re-evaluate the reasons why you want to do this.
making var-of-a-var is usually not the easiest/best
way to accomplish something
why not use assoc. arrays??
$stuff['foo'] = explode(...);
> -Original Message-
> From: King,
you could either install php as CGI stanalone
or download the apache header files and put them
somewhere that PHP can find them
if you've got no *.h files, that probably means
that someone deleted them, that you've got
a binary distribution of apache on your system,
or that you're telling PHP
B. van Ouwerkerk [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 4:58 PM
> To: scott [gts]
> Subject: RE: [PHP] Re-directing
>
>
> At 14:56 16-5-01 -0400, you wrote:
> >if you need to redirect a page, why not juse use
> >header("Location: ./newurl.php");
es not
> the look and see if the next file exists if it does change its name
> and run the rest of the script.
>
> If nether exists the quit the program all together
>
> Wednesday, May 16, 2001, 2:27:19 PM, you wrote:
>
> scott [gts]> what are you trying to do that for
read the docs you'll find your answer there.
php.net/delete
;)
> -Original Message-
> From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 3:53 PM
> To: PHP (E-mail)
> Subject: [PHP] deleting a file
>
>
> What is the file function to remove/delete a file
yeah. i run it as a CGI.
compile it as a binary, then edit the apache config...
that's it
> -Original Message-
> From: midget2000x [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 4:18 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] running a stand-alone PHP program
>
>
> I ap
what are you trying to do that for?
there's probably a much cleaner way to do what you
want, but i dont really know what you want to do,
so i cannot suggest anything
> -Original Message-
> From: Richard Kurth [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 5:10 PM
> To:
yes... i agree.
if you know pregs, you have the added benefit of
knowing how to write regexps for PHP *and* perl
(should you ever have to program in perl)
i personally prefer pregs becuase i think that the
syntax is cleaner and more concise...
> -Original Message-
> From: Christian Rein
you need to:
./configure [whatever options]
make
make test
make install (as root)
then you need to edit Apache httpd.conf
appropriately and restart the daemon.
then, it should work
> -Original Message-
> From: Beech Rintoul [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001
use a BLOB field type
read the docs for mysql, or whatever
DB you happen to be using.
> -Original Message-
> From: Felipe Moreno [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 11:02 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Inserting and Selecting an IMAGE from the DB
> Imp
wow, that's quite a mouthfull ;)
use dirname
>
> $path=substr(__FILE__, 0, strlen(__FILE__) - strlen(basename(__FILE__)) -
> 1);
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the li
why not use serialized arrays stored in cookies to
store a growing list of things that the user is purchasing?
then, it'd be as easy as having this array
stored as a single cookie... ;)
$items = array(
#indexed by item ID
'1003045' => array(
'name' =>'The best m
then people would think you're a perl programmer ;)
> -Original Message-
> From: phpman [mailto:[EMAIL PROTECTED]]
> Subject: Re: [PHP] Newbie-Continue Line of Code
>
> In theory you could put all your code on one line.
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
well, if all numbers are *always* 10 digits long,
use this
$old = "1234567890";
$new = preg_match('/(\d{3})(\d{3})(\d{4})/', $old, $matches);
print "(". $matches[1] .") ". $matches[2] ."-". $matches[3];
prints "(123) 456-7890"
> -Original Message-
> From: Jerry Lake [mailto:[EMAIL P
this also works:
$st1 = "abc";
$st2 = "abc";
if ($st1 != $st2) {
die("Death");
}
> -Original Message-
> From: Steve [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 15, 2001 6:39 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] How to check "aBc" different from "abc" ?
>
>
> $st1 =
day, May 15, 2001 6:00 PM
> To: PHP User Group
> Subject: RE: [PHP] PHP and GD on a Redhat linux box
>
>
> I do not believe this is the reason that you are having problems. I have
> compiled GD on many Redhat machines without X11
>
> Brandon
>
> -Original Message
i had compile problems for PHP + GD on a linux box.
my best guess is that GD requires X11 support to
work properly, and in turn blows up the PHP
compile when GD cannot find the 'X11' library
since the box is a server, bells and whistles like
Xwindows are not installed
figured i'd sha
you can get a really great SSH program
(free for non-commercial use) at http://ssh.com/
i use a registered copy here at work, but i
downloaded a free copy for use at home...
it's the best client i've found so far.
even supports SFTP.
> -Original Message-
> From: Gyozo Papp [mailto:[EMAI
even though i dont use PWS, the only time i seem to
get 500 errors is when i mistype the a filename
and the server cannot find the file so that's
probably where your problem lies.
triple check that PHP is working and installed correctly.
then triple check that the server works OK (try to load
one thought is to search http://www.hotscripts.com/PHP/
for "forum" or "message board" scripts.
> -Original Message-
> From: shaun [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 14, 2001 1:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] achive style message center
>
>
> i was wondering
oh god...
that story will probably come true in the next few years,
due to the way the public school system keeps going downhill
and the unyeilding ignorance of administrators.
> -Original Message-
> From: Kath [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 14, 2001 5:18 PM
> To: [EMAIL
i'd like to know if anyone's written anything to perform anything
of this nature also...
if not, i'll take a crack at it.
shouldnt be too hard to get a simple Updater script
to check for new versions and update local files
with newer ones
> -Original Message-
> From: elias [mailto:
phpMyAdmin
and
phpMyEdit
are two free PHP MySQL thingies.
check out http://www.phpwizard.net/
> -Original Message-
> From: Anuradha Ratnaweera [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 11:52 PM
> To: Augusto Cesar Castoldi
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] "F
besides, if anyone here dislikes hitler, they should
certainly not emulate him by trying to silence
opinions that they disagree with
ironic that some of the people that hate hitler the most
act so much like him...
dont be like hitler: support freedom of speech.
> -Original Message--
oh yeah. sorry...
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jack
> Dempsey
> Sent: Thursday, May 10, 2001 3:15 PM
> To: ..s.c.o.t.t.. [gts]
> Cc: Php-General
> Subject: Re: [PHP] ereg issues
>
>
> isn't a \w a word character, meaning a-zA-Z_0
201 - 273 of 273 matches
Mail list logo