In article <[EMAIL PROTECTED]>, Tom
Rogers wrote:
> Thats what I was after :)
Glad I could help.
> At the top of each page I now do
>
> $reltoroot = preg_replace("|/[^/]+|", "../", dirname($_SERVER['PHP_SELF']));
> ini_set ("include_path",ini_get("include_path").":".$reltoroot."../include");
>
QaDRAM Studio enables Rapid Application Development for Web applications
http://studio.qadram.com
ELCHE, Spain - April 6, 2002 - QaDRAM Software today announced the next
release of QaDRAM Studio 1 for Rapid Web Application Development. QaDRAM
Studio enables web developers to build and debug web a
Thanks Chris
Thats what I was after :)
At the top of each page I now do
$reltoroot = preg_replace("|/[^/]+|", "../", dirname($_SERVER['PHP_SELF']));
ini_set ("include_path",ini_get("include_path").":".$reltoroot."../include");
which takes care of the include path
I use the path translated info
On Sat, 6 Apr 2002, Justin French wrote:
> on 06/04/02 11:05 AM, Maxim Maletsky ([EMAIL PROTECTED]) wrote:
>> It DOES NOT work fine in every browser. I'd love to give you a prov, but
>> because I am lazy I will just tell you this formula:
>
> Again. I was only stating MY experience. "Every brow
In article <[EMAIL PROTECTED]>, Tom
Rogers wrote:
> I am trying to calculate how far into a directory structure I am so that I
> can include images and include files without having to hard code them.
> I need to turn $PHP_SELF which could be /admin/emails/index.php into ../../
> which I can then
In article <[EMAIL PROTECTED]>, Phil Schwarzmann wrote:
> $query = "UPDATE table SET (var1, var2, var3) VALUES ($var1, $var2,
> $var3) WHERE username='$username'";
>
>
> Im wondering cause I have an INSERT query
>
> $query = "INSERT INTO table (var1, var2, var3) VALUES ($var1, $var2,
> $
On Fri, Apr 05, 2002 at 09:42:37PM -0500, Analysis & Solutions wrote:
> If you want to evaluate the variable $checkboxName, you need to write:
>
>$var = "checkbox$cb[$i]";
>if ($$var == 'validate')
>
> But, of course, that assumes you actually set the name of your
> checkbox to "che
I noticed today that UPDATE will behave like that if you are running it on
an empty table.. I'm certain you would get an error if your query was too
large.
Bob
- Original Message -
From: "Phil Schwarzmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 3:01 PM
S
Just install the source RPM, change the option and rebuild the RPM..
Then -Fvh it and it should be the way you want it. This is after all the
reason they include the source files with Linux..
Later,
Bob
- Original Message -
From: "Eric Kilgore" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Interestingly, php-mysql-4.0.6-7.i38.rpm is installed, but phpinfo still
shows --without-mysql
-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 9:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] newbie configuration question
On Saturday 06 April
On Saturday 06 April 2002 06:01, Phil Schwarzmann wrote:
> Is there a maximum number of characters you can use in a query?
>
> I have a giant query using the UPDATE command (updating about 120
> different columns).
Yes there is.
> I run this query of mine and nothing happens. No errors. No upd
On Saturday 06 April 2002 11:12, Eric Kilgore wrote:
> I'm a newbie to Linux and Apache, not so new to php itself. I'm using Red
> Hat 7.2. The RPM installs apache with php, etc. as part of the standard
> install but --without-mysql in the configuration. I've read quit a bit on
> how you are suppo
On Saturday 06 April 2002 09:46, Rob Packer wrote:
> Hi,
> I have a contact form and when someone fills it out, all the single
> quotes (apostrophes) end up having a slash in front of them in the e-mail,
> like this:
>
> I\'m
>
> Can someone tell me how to stop this? Thanks you.
Check o
http://www.zend.com/codex.php?CID=22
olinux
--- David Johansen <[EMAIL PROTECTED]> wrote:
> I was wondering if someone just point me to a good
> example of a PHP
> interface for Authorize.net to work with ADC Relay
> Response. Thanks,
> Dave
>
>
>
> --
> PHP General Mailing List (http://www
There we go.
Thanks Rodolfo.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
> -Original Message-
> From: Rodolfo Gonzalez [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, April 06, 2002 2:23 AM
> To: Max
I'm a newbie to Linux and Apache, not so new to php itself. I'm using Red
Hat 7.2. The RPM installs apache with php, etc. as part of the standard
install but --without-mysql in the configuration. I've read quit a bit on
how you are supposed to be able to update the configuration etc.
./configure -
Depends on the OS of your host.. On Linux it took me about 48 seconds to
setup.. Just be sure to compile it sith SSL..
Bob
- Original Message -
From: "Georgie Casey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 6:33 PM
Subject: [PHP] Getting my host to impleme
Hey Rob:
On Fri, Apr 05, 2002 at 08:31:15PM -0800, Rob Packer wrote:
> if ("\$checkbox".$cb[$i]=="validate")
> {echo"can NOT get here";// HINT, HINT
Because you're making a string "$checkboxName" Of course it doesn't
equal "validate"
If you want to evaluate the variable $checkboxName, you
on 06/04/02 11:05 AM, Maxim Maletsky ([EMAIL PROTECTED]) wrote:
> You're deadly wrong, Justin. Years of coding and I have never seen this
> behavior of nl2br(). Perhaps I missed its new behavior's introduction
> (guilty as charged if so) but I only remember it returning me not
> . I have several
Would it be hard? Like, is it a lot of work for them and/or a security risk?
--
Regards,
Georgie Casey
[EMAIL PROTECTED]
***
http://www.filmfind.tv
Online Film Production Directory
***
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Sorry for the vague Subject, but I have this code that looks fine to me.
There's some logical error, because I can't get to the second if statement,
although when I echo "\$".$cb[$i] I get $checkboxName. If I hard code
$checkboxName it will work though. Anyone know why? TIA!
$num_fields= 8 ;//the
On Sat, 6 Apr 2002, Maxim Maletsky wrote:
> But again (I like insisting on such things),
> Why do I have it now and didn't have it before? Why did it change
> anyway? I haven't seen it on any other my server and I use it quite a
> lot.
Directly from the manual:
Note: Starting with PHP 4.0.5, nl
> nl2br() has returned for as long as I can remember.
You're deadly wrong, Justin. Years of coding and I have never seen this
behavior of nl2br(). Perhaps I missed its new behavior's introduction
(guilty as charged if so) but I only remember it returning me not
. I have several regex depending
well.. i dunno y yet.. but if the (from)email is [EMAIL PROTECTED]
it worked.. but i tried other email and it doesnt work (that happens only
for IE 5.0 ...)
kknow y ??
- Original Message -
From: "Analysis & Solutions" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Frida
YES!! MY SCRIPT RUN AND I'M NOT RECEIVING ANY EMAIL!
Thanks to all!!
Specials thanks to Miguel and Dan!!
Regards! Julian
- Original Message -
From: Analysis & Solutions
To: PHP List
Sent: Friday, April 05, 2002 9:44 PM
Subject: Re: [PHP] CRONTAB
On Fri, Apr 05,
On Fri, Apr 05, 2002 at 09:03:04PM -0300, Alexandra Aguiar wrote:
>
> well.. i got a script that sends an email automatically to the user (he
> informed his email) . everything works fine .. but that the IE 5.0 users
> just don't receive the email!!
>
> any1 know y ??
Because there's a bug in y
On Fri, Apr 05, 2002 at 09:42:02PM -0300, Julian wrote:
> 0 0 * * * /usr/bin/php /path/to/my/script.php
>
> But I continue receiving an email each time that the script run that say:
>
> X-Powered-By: PHP/4.0.6
> Content-type: text/html
Those two lines are PHP's default output. Crontab, by defa
On Fri, 5 Apr 2002, Julian wrote:
> My script run fine with:
>
> 0 0 * * * /usr/bin/php /path/to/my/script.php
>
> But I continue receiving an email each time that the script run that say:
>
> X-Powered-By: PHP/4.0.6
> Content-type: text/html
PHP thinks it's producing output to be sent via a w
OK, James, even worth.
But again (I like insisting on such things),
Why do I have it now and didn't have it before? Why did it change
anyway? I haven't seen it on any other my server and I use it quite a
lot.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begi
Hi Miguel!!
Thank you for your help!
My script run fine with:
0 0 * * * /usr/bin/php /path/to/my/script.php
But I continue receiving an email each time that the script run that say:
X-Powered-By: PHP/4.0.6
Content-type: text/html
I don't understand it, because in my script I didn't put cont
actually,
is not parsed in the same way as for many browsers. is
XHTML, and is not a fully supported language set yet.
--
James Cox :: [EMAIL PROTECTED] :: Landonize It! http://landonize.it/
Was I helpful? http://www.amazon.co.uk/exec/obidos/wishlist/23IVGHQ61RJGO/
-Original Message
Not same, Andrew, It had made my pages VERY VERY UGLY!
I know that it can be parsed well, but should not have done such effect
on the site. I wouldn't care about this thing if I wouldn't find a few
pages on my site 1000 pixel wide.
But, the question is: why only on this machine? I run the same
On Sat, 6 Apr 2002, Maxim Maletsky wrote:
> I've never seen that nl2rb would return me instead of the
> traditional . But it did.
>
> Is that normal or it that a bug?
In Yon Coming Days of HTML ye shall find that such notation is The Way And
The Law.
Might as well get used to it...
miguel
is that XML style newline or something...
Don't worry about it, it parsed the same as
Andrew
- Original Message -
From: "Maxim Maletsky" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 06, 2002 1:13 AM
Subject: [PHP] nl2br returns ? normality or a bug?
>
> I've ne
I've never seen that nl2rb would return me instead of the
traditional . But it did.
Is that normal or it that a bug?
Here's some test code:
returns me such HTML:
--
Hello
this is
the
silliest
test
I can
ever
invent
on machine: [Apache-AdvancedExtranet
hi list!
well.. i got a script that sends an email automatically to the user (he =
informed his email) . everything works fine .. but that the IE 5.0 users =
just don't receive the email!!
any1 know y ??
thnx in advance
Alexandra Aguiar
ps.: in other browsers it works just fine...
I have had a similar idea. I also tried the custom error handler
aproach and it didn't work here either. I have set the project aside
that I was thinking about it for but I do have some ideas that would
help and may be able to contribute. I wasn't even able to get php to
call my custom error ha
stripslashes($text)
-Original Message-
From: Rob Packer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 7:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] getting slash with single quotes in form mail
Hi,
I have a contact form and when someone fills it out, all the single
quotes (
Hi,
I have a contact form and when someone fills it out, all the single
quotes (apostrophes) end up having a slash in front of them in the e-mail,
like this:
I\'m
Can someone tell me how to stop this? Thanks you.
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Fri, 5 Apr 2002, Julian wrote:
> I am attempting execute automatically an script PHP, all the days at a
> certain hour.
>
> I configured the cron to executes it, but when it is executed, instead of
> working, I receive an email in
> my main account where say:
>
> /home/vipteam/public_html/dis
If you want a real time clock you're going to have to do it in
Javascript. If you just want the page to display the current time/date
then look up the date() function on php.net
-Original Message-
From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 1:53 PM
T
Ditto on that one Adam. "PHP And MySQL Web Development" comes highly
recommended. Big book lots of content. Real world working examples.
Very well written. You will break the binding on this book I guarantee
it. ;)
-Kevin
-Original Message-
From: Adam Alkins [mailto:[EMAIL PROTECTED]
Hello to all !!!
I write you because I have the following question:
I am attempting execute automatically an script PHP, all the days at a
certain hour.
I configured the cron to executes it, but when it is executed, instead of
working, I receive an email in
my main account where say:
/home/vip
Is there a maximum number of characters you can use in a query?
I have a giant query using the UPDATE command (updating about 120
different columns).
I run this query of mine and nothing happens. No errors. No updates
either.
Thanks!!
Phil
On Fri, 5 Apr 2002, Liam Gibbs wrote:
> I'm trying to connect to the server (same one from
> which the page is at). My code is as follows:
>
> if($searchsocket = fsockopen("127.0.0.1", 8080,
> &$errornumber, &$errormessage, 30)) {
>
> Obviously 127.0.0.1 is not the real IP address. But it's at t
... I gotta problem with them.
I'm trying to connect to the server (same one from
which the page is at). My code is as follows:
if($searchsocket = fsockopen("127.0.0.1", 8080,
&$errornumber, &$errormessage, 30)) {
Obviously 127.0.0.1 is not the real IP address. But
it's at this point that it's
A great book I read is PHP and MySQL Web Development, authors Luke Welling
and Laura Thomson.
Its an excellent book to read if you are new to PHP and MySQL, and even if
you have a good knowledge. I learnt a lot from it, and still am learning. :)
Adam
- Original Message -
From: "Mikhail
"Professional PHP Programming" by Castagnetto et al. (from Wrox) is pretty
good IMHO. So is "Web application development with PHP", by
Ratschiller/Gerken. These are the ones I've used for my purposes, as well
as for a PHP class that I taught a while back.
On Fri, 5 Apr 2002, cyberskydive wrote:
Does anyone know where I can get a script to all a clock done in PHP or will
I have to do it with Java script.
Chuck Payne
Magi Design and Support
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
For some reason $DOCUMENT_ROOT always points to /usr/local/apache/htocs
even when the actual document root on the virtual domain is
/usr/local/apache/domains/domain.com/www/
You can use PATH_TRANSLATED but that doesn't solve the http side when you
may need to find the images directory from a
On Fri, 5 Apr 2002, Chris wrote:
> Just wondering, under what circumstances would you use sockets under PHP?
> Any examples?
The most obvious answer is to use them for speaking internet protocols not
directly supported by other functionality in PHP. For instance, there are
already ways to speak
any idea what might be the problem ?
how did you compile it ??
./configure --with-mysql=/dir --with-apxs=/dir
make
make install
any other modifications ? ? or config options ?
can you put the libphp4.so somewhere to download it ?
cheerss.
--
Sapilas@/dev/pinkeye
~~
why not use somthing like this then
include($DOCUMENT_ROOT."/include/mysql_connect.inc");
Robert W. Collins II
Webmaster
New Orleans Regional Transit Authority
Phone : (504) 248-3826
Email : [EMAIL PROTECTED]
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: F
Hi
Yes that would be fine for the html examples I gave but the real use is for
php to find the include directory which I keep out of the server tree, one
directory back like this
include($relative_root."../include/mysql_connect.inc")
Each domain has its own include directory which I want to ke
Can anyone tell me why when stepping through an array and trying to delete a
specific element in the array it deletes not only the one that I want it to
delete, but also the first and last element in the array as well.?
Here is the situation:
I am retrieving information from a text file, dump
How about:
$site_root = '/www/user/htdocs/';
Instead of going relative, go from the root. Or you could put $site_root
as your url:
$site_root = 'http://www.your_site.com/';
--
Julio Nobrega.
Um dia eu chego lá:
http://sourceforge.net/projects/toca
Ajudei? Salvei? Que tal um presentinh
Just wondering, under what circumstances would you use sockets under PHP?
Any examples?
How is it different from Java sockets etc?
Thanks for any reply.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thank you!!
Now I need to figure out how to put all this hair back in my head.
Brian
"Rick Emery" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I corrected the syntax errors Erik found and added var_dump() after each
$t
> equation/assignment
>
> The proble
Hi
I am trying to calculate how far into a directory structure I am so that I
can include images and include files without having to hard code them.
I need to turn $PHP_SELF which could be /admin/emails/index.php into ../../
which I can then use to get to any directory from root.
like IMG src=im
Hi Erik
Thanks for the reply. I'm not sure how I missed the opening { in my
message -- I copy/pasted the code. But the opening { is definitely there in
the code -- I'd get a nice error message if it weren't. I believe it's OK
to have a ; after the class def end-brace, but I removed it and I go
As miguel suggests, these are just arrays. Use them like
any other array:
print $arr['key'];
print "string {$arr['key']} string";
print 'string ' . $arr['key'] . ' string';
etc.
Read about arrays and strings:
http://us2.php.net/manual/en/language.types.array.php
http://de.php.net/
Corrected typo:
The problem is that you refer to $test->$words. You should refer to
$test->words
BIG DIFFERENCE
$test->$words means find the value of $words and look for that variable in
$test. That is, if $words ="abc",
then $test->$words means $test->abc
-Original Message-
From: Ric
I corrected the syntax errors Erik found and added var_dump() after each $t
equation/assignment
The problem is that you refer to $test->words. You should refer to
$test->words
BIG DIFFERENCE
$test->words means find the value of $words and look for that variable in
$test. That is, if $words ="a
I might be completely mistaken here, but it looks like there are a few
errors in your code:
- No starting brace for the test() method
- semi-colon used after class def end-brace
- no parentheses after "new test" instance assignment
Don't you want to keep your class as general as possible, and p
On Friday, April 5, 2002, at 01:58 PM, Phil Schwarzmann wrote:
> Is this query legal?
>
> $query = "UPDATE table SET (var1, var2, var3) VALUES ($var1, $var2,
> $var3) WHERE username='$username'";
No. The SET modifier (or whatever that is) can only be used to create
column name/value rela
what happened when you tried your query?
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL - UPDATE & INSERT
Is this query legal?
$query = "UPDATE table SET (var1, var2, var3) VALUE
This is driving me crazy! I've created a class to hold data so I can just
put the object into the session rather than saving off each piece of data
separately. But I'm getting odd results from the arrays in my class that I
can't explain. Here's a hunk of code that demonstrates:
$words;
ech
The UPDATE syntax in the manual:
http://www.mysql.com/doc/U/P/UPDATE.html
UPDATE [LOW_PRIORITY] [IGNORE] tbl_name
SET col_name1=expr1, [col_name2=expr2, ...]
[WHERE where_definition]
[LIMIT #]
Yes, it is different than the INSERT syntax.
PS> ...but only there are like 150 diffe
Good starters. I would add one more starter item: don't blindly grab
everything out of the $_POST[] array. Instead, only grab the variables that
*you* put on the form page. A cracker might send you a name/value pair like
"$admin=1", trying to guess what flag you are using for "admin" users.
Kirk
Is this query legal?
$query = "UPDATE table SET (var1, var2, var3) VALUES ($var1, $var2,
$var3) WHERE username='$username'";
Im wondering cause I have an INSERT query
$query = "INSERT INTO table (var1, var2, var3) VALUES ($var1, $var2,
$var)";
...but only there are like 150 diffe
Using sessions, $HTTP_HOST, form keys, $HTTP_REFERER, ip address,
Javascript.
On a session you can record the user_agent on the first page, the ip, the
host, and check on the form's action page. Form keys are some number you
come up and pass either via url or post, and check on the action pag
On Fri, 5 Apr 2002, Chris Boget wrote:
>> You can never assume that submitted data is benign or untampered.
>
> Ok, then how do you go about checking to make sure that submitted
> data is, in fact, benign and acceptable for your use?
I use two general principles:
1) Rather than trying to rule
I was trying to write a some code that would disallow specific users access
to certain pages. I had thought this would be as simple as looking at
$PHP_AUTH_USER and sending a 401 header if it was a user that shouldn't have
access to that page.
The problem is the HTTP header was not going out. I
On Saturday 06 April 2002 02:26, Chris Boget wrote:
> > You can never assume that submitted data is benign or untampered.
>
> Ok, then how do you go about checking to make sure that submitted
> data is, in fact, benign and acceptable for your use?
For starters:
If it's supposed to be a number ma
Thanks to Tyler Longren, Hiroshi Ayukawa, and Matt
Schroebel for your help. I've made big changes; the
encryption thing is still throwing me for a loop, but
the other two are fixed up (mostly).
__
Do You Yahoo!?
Yahoo! Tax Center - online filing wi
On Fri, 5 Apr 2002, Phil Ewington wrote:
> This is for an events calendar, I want all the dates form the db but when I
> am generating the individual days for the calendar I need to know whether
> there is an event for that day, hence pulling out all the dates from the db.
> As I am looping throug
On Friday, April 5, 2002, at 01:15 PM, Miguel Cruz wrote:
>> For security, you can modify your code so that you check
>> the $_POST elements instead of using the magic globals.
>> That's all well and good.
>> However, someone copy and save your HTML to their local
>> machine, change some values
In article ,
[EMAIL PROTECTED] (Andrew Warner) wrote:
> Is it okay practice to condtionally include php files that contain
> only classes or functions (as opposed to just straight code)? The
> result is a class or function inserted right in the middle of
> > Is there any way to determine from where the post request came
> > from w/o using http_referer?
> No, nor with it.
I know that http_referer is unviable, that's why I asked if you can find
out that data w/o using it.
> Someone who wants to mess with you can supply any HTTP
> referer they wan
In article
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Thalis A. Kalfigopoulos) wrote:
> If I have as part of a text:
> ...and then 'the quick brown fox jumped over the lazy dog's piano'...
>
> How can I substitute the single quote in "dog's" with say \'
> I want to aply a substitution for only th
yes, put the name of the PHP file
-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 12:23 PM
To: Rick Emery
Subject: RE: [PHP] refresh
When I delete a record from a table in php it loops back to the table.
However, It does not show that the recor
regexp is not what you need then
You will require a character-by-character search/replace
or try:
which produces:
$q= 'here's to you'
$a= \'here\'s to you\'
$z= 'here\'s to you'
-Original Message-
From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 11
On Fri, 5 Apr 2002, Anthony Ritter wrote:
> Any idea what the cost is for the ISP to install mySQL on their end so that
> I can utilize my database that I've set up on localhost?
MySQL is free for that sort of usage, so it only costs their time. If
they've done it before, it takes about 5 minute
> "Erik" == Erik Price <[EMAIL PROTECTED]> writes:
[. . .]
Erik> There is another way, it's a bit more involved. You open a
Erik> socket with the server and directly send the data as POST
Erik> data. This allows you to avoid having to bother with a
On Fri, 5 Apr 2002, Chris Boget wrote:
> For security, you can modify your code so that you check
> the $_POST elements instead of using the magic globals.
> That's all well and good.
> However, someone copy and save your HTML to their local
> machine, change some values, change the "Action" pag
I was wondering if someone just point me to a good example of a PHP
interface for Authorize.net to work with ADC Relay Response. Thanks,
Dave
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 5 Apr 2002, Jas wrote:
> So adding a hidden field would definately pass the contents of the select
> box to the other script so I am not doing anything wrong with this portion,
> but what if I wanted to append the path of the file name? Any tips?
This isn't an answer to your question, but
On Fri, 5 Apr 2002, cyberskydive wrote:
> So I wanna learn how to code properly with register_globals off, I reead on
> PHP.net about the new auto globals and inmy new php4.1.2 windows
> installation using php.ini-rec edited according to the intall.txt file, and
> a few changes from books I have (
For security, you can modify your code so that you check
the $_POST elements instead of using the magic globals.
That's all well and good.
However, someone copy and save your HTML to their local
machine, change some values, change the "Action" page of the
form to be http://www.yoursite.com/form
On Fri, 5 Apr 2002, Anthony Ritter wrote:
> Now I have a .txt file of my sql statement.
>
>> As others have suggested, you can use phpmyadmin to import this file, or
>> you can just pipe it into the mysql command-line tool on the server once
>> you've created your database. Look inside the file
> -Original Message-
> From: Andrew Warner [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 04, 2002 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] conditionaly including classes/functions
>
> Is it okay practice to condtionally include php files that contain
> only classes or functio
Nop. I don't want to affect the first and last ' of every line.
On Fri, 5 Apr 2002, Rick Emery wrote:
> addslashes($textline)
>
> -Original Message-
> From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 05, 2002 10:54 AM
> To: [EMAIL PROTECTED]
> Subject: [PH
http://dev.zaireweb.com/phpcoder.exe
That should be the file
- Original Message -
From: "Charles Little" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 04, 2002 4:59 AM
Subject: RE: [PHP] php+myslq+IDE
> > Try PHP Coder (not Maguma's Version, becuase PHP Coder kicks
try creating a script with fopen(), fwrite(), etc.
When you run into problems, ask here.
$filex = fopen("myfile","w");
fwrite( $filex, "write this here");
fclose($filex);
-Original Message-
From: Sebastian A. [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:29 AM
To: PHP Gener
addslashes($textline)
-Original Message-
From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] regexp for ' replacement
Yet another regexpr question.
If I have as part of a text:
...and then 'the quick brown f
after database submission, header("location: ...") re-directed to the script
you wish to go to
-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:31 AM
To: [EMAIL PROTECTED]
Subject: [PHP] refresh
I want to be able to refresh my browser window
> $number = $sumItUp[$name];
> $number++;
> $sumItUp[$name] = $number;
this could be done easier:
$sumItUp[$name]++;
:)
"Scott Fletcher" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi!
>
> I'm a little baffled on why the array is not working t
On Friday, April 5, 2002, at 12:12 PM, cyberskydive wrote:
> what are your opinions and what are some other grest books out there?
grest -- is that like "great" and "best" ? ;)
I think that Visual QuickPro PHP Advanced, which just came out a month
or two ago, is pretty good. I learned a lo
perhaps:
$FFR = array("TU4R" => array("data" => array(array("count" => "TU4R is 0"),
array("count" => "TU4R is 1"),
array("count" => "TU4R is
2"))),
"PH01" => array("data" => array(array("count
On Friday, April 5, 2002, at 12:09 PM, cyberskydive wrote:
> the thing is, using the methods I described in my first post, the
> superglobals or autoglobals arent working. I cant figure out why, and ,
> like
> the other guy said, most books dont include this feature in a topic for
> discussion
1 - 100 of 176 matches
Mail list logo