Sessions use cookies as it is...so what do you really want to do...what
do you want to protect?
---John Holmes...
-Original Message-
From: Jule Slootbeek [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 04, 2002 9:49 PM
To: php-general
Subject: [PHP] User Authentication
Hey guys
your result set.
Then, use those numbers in your query.
SELECT * FROM table WHERE ... AND ID IN($display_ids) ORDER BY
new_sort_order
Hopefully PG supports IN().
My $0.02, I'm sure there are other ways...or maybe this isn't even what
you're looking for. :)
---John Holmes...
On Thu, 6 Jun
Actually that only highlights PHP code, not HTML, if I remember right.
It would be nice if this did highlighting for HTML, too, but I think it
just comes out all gray.
---John Holmes...
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002
. Unless you're looking to
maintain the same 30 results in the new result set, like my previous
email mentioned...
---John Holmes...
-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 05, 2002 10:19 PM
To: Miguel Cruz
Cc: [EMAIL PROTECTED]
Subject: Re
the defaults. It would be nice if you could break down this just
a little more to apply to HTML tags, strings, etc.
Search google and sourceforge, maybe something is written already.
---John Holmes...
-Original Message-
From: Jarrad Kabral [mailto:[EMAIL PROTECTED]]
Sent: Wednesday
to page 4
(well, you can, but it's going to be a whole new page four because of
the new sort order).
Example page will really help here; maybe I'm just slow in visualizing
this. We can take this off the list if necessary, too.
---John Holmes...
-Original Message-
From: Andre Dubuc
don't
have any more queries based on time or date...
---John Holmes...
-Original Message-
From: andy [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 2:02 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] date problem
Hi there,
I would like to count the users out
MySQL_num_rows()? You should use COUNT(*) in your query instead of
MySQL_num_rows(), if the count is all your after.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-insensitively you can always convert
the blob to upper case before doing the comparison:
SELECT 'A' LIKE UPPER(blob_col) FROM table_name;
We plan to soon introduce casting between different character sets to
make string comparison even more flexible.
---John Holmes...
-Original Message-
From
Is there a reason you insist on using a CHAR field, instead of a TIME
field, which would make this all easier and allow you to use the
multitude of MySQL Date and Time Functions in your query... ???
---John Holmes...
-Original Message-
From: juaid [mailto:[EMAIL PROTECTED]]
Sent
Umm...How about using UNIX_TIMESTAMP() in your query, then you won't
need any of that PHP code you just wrote...
---John Holmes...
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 2:22 PM
To: juaid
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP
to get exactly what you need
if you use the correct column types.
---John Holmes
-Original Message-
From: juaid [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 2:20 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] convertion from string to time substracting
From: Chris
Okay, sorry. I stand corrected. :)
Either way, the query still failed for some reason. The recommendation
to use MySQL_error() is still a good one...
---John Holmes...
-Original Message-
From: Chris Knipe [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 2:44 PM
To: [EMAIL
Yeah, if he kept CHAR, then he'd have to do all of that. We were trying
to convince him to switch to a TIME column, though, to make things
easier. Which he did...which does...
:)
---John Holmes...
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07
if the type script, then instead of removing it, you just show it, but
with the and replaces with HTML entities.
---John Holmes...
-Original Message-
From: Stuart Dallas [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 5:31 PM
To: Philip Hallstrom
Cc: Mikhail Avrekh; [EMAIL
javascript arrays to be evaluated when the page is loaded in the
browser. It can't do anything after that point.
---John Holmes...
-Original Message-
From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 5:41 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] dynamic pull-down
It's nothing to do with PHP. Raise your max_connections in your MySQL
configuration file...
---John Holmes...
-Original Message-
From: Dan Morris [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 08, 2002 4:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Warning: Too many connections
, then there shouldn't be any % signs in the host column.
Have you read over the GRANT command in the MySQL manual? How did you
set up these users?
---John Holmes...
-Original Message-
From: Jason Soza [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 08, 2002 5:04 PM
To: PHP-General Mailing List
No. There is, however, a function that'll tell you how many columns are
in a result set. So, if you select all columns, then you can use that
function to find out how many columns are in the table.
www.php.net/mysql_num_fields
---John Holmes...
-Original Message-
From: [EMAIL
It would be better to just have PHP do the calculating for you, instead
of trying to figure out how to pass data back and forth between a
spreadsheet. You can maybe use COM for passing the data, if you still
need to do it that way.
---John Holmes...
-Original Message-
From: Jeremy
Read the JOIN chapter of the MySQL manual and it'll tell you how to do
it. It's not a PHP issue.
(watch for line wrapping)
http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html
#JOIN
---John Holmes...
-Original Message-
From: Jule Slootbeek [mailto:[EMAIL PROTECTED
Why reinvent the wheel?
http://gallery.jacko.com/modules.php?op=modloadname=Newsfile=index
or...
http://gallery.sourceforge.net
---John Holmes...
-Original Message-
From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 9:48 PM
To: PHP General List
' . $_GET['id'] . ' world';
Or...
Echo hello $_GET[id] world;
Etc...adapt to your needs...
---John Holmes...
-Original Message-
From: X-power.be [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 8:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] URL / slash reduction
the nickname
$echo .= lia href='. $link .'. $name ./a/libr;
Notice the . in .=
Equivalent of saying $echo = $echo . lia href='. $link .'. $name
./a/libr;
---John Holmes...
-Original Message-
From: Dan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 9:36 PM
To: [EMAIL PROTECTED]
Subject
in an integer column, you may experience problems
when MySQL generates temporary tables for some complicated joins, as in
these cases MySQL trusts that the data did fit into the original column
width.
---John Holmes...
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Monday
Umm...that's what it's supposed to do...it's including it...
---John Holmes...
-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:29 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Include question
I'm trying to use the include function in some
I'm banking it's your register_globals setting in PHP.ini. Set it to on,
then read the release notes of the program you just installed so you can
learn why you want it OFF.
---John Holmes...
-Original Message-
From: Septic Flesh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002
You can't use wildcards. Use a system() or exec() call to do it.
Why use the datetime part at all? The usernames are unique, right?
---John Holmes...
-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 11:06 PM
To: [EMAIL PROTECTED]
Subject
Just be aware that if the name is based on the username, it'll be easy
for other people to guess the names of files on your computer and
possibly inject code into it. Just something to be aware of.
---John Holmes...
-Original Message-
From: Tom Ray [mailto:[EMAIL PROTECTED]]
Sent
It is $_SERVER[LOGON_USER]. You have to enable Integrated Windows
Authentication under Directory Security in IIS
---John Holmes...
-Original Message-
From: Barajas, Arturo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 12:43 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP
Just note that this will fail miserably unless you are locking your
tables around the SELECT MAX() and the INSERT. What if 3 different users
all select the same MAX() and try to insert the next number?
You really need to re-think your database design if you have to do it
this way.
---John
Make it when it's uploaded. Then you make just one user wait on the
server, instead of the multitude of users just viewing pages...
---John Holmes...
-Original Message-
From: Shane [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 4:10 PM
To: Philip Hallstrom
Cc: php
How about just
SELECT RIGHT(fieldname,4) FROM tablename
---John Holmes...
-Original Message-
From: Lazor, Ed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 7:09 PM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: [PHP] Extracting from an Array
$sql = select
query to re-format the date back to dd-mm- if
you want to? Do you realize that if you ever wanted to sort by this
column, you'd be all messed up? It'll sort as a string, where 10 is
less than 2. Do you realize what I'm trying to say??
---John Holmes...
-Original Message-
From: Andre
.
---John Holmes...
-Original Message-
From: Anzak Wolf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 6:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] POST/GET var problem
take the following html code
form method=post
input type=image name=myimg src=something.gif
/form
Now
$_POST['groups'] is an array. It's size is going to be dependant on how
many check boxes were checked.
So, in your example, if only blah2 is selected, you'll have
$_POST['groups'][0] == '2'
You can use count($_POST['groups']) to see how many boxes were checked.
---John Holmes
Show your code and learn how to use the MySQL_fetch_array() function...
www.php.net/mysql_fetch_array
---John Holmes...
-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 6:19 PM
To: PHP DB List; PHP General List
Subject: RE: [PHP] Re
Restart apache.
-Original Message-
From: Georgie Casey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 8:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] safe scripting
How do i setup safe mode scripting (each script has a different uid)
on my
win32, apache, php setup? my
Echo $$field;
--John Holmes...
-Original Message-
From: Daniele Baroncelli [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 12:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Value of variable with name stored in another variable
How can I access the value of a variable whose
else to see your PHP creations, yes, you need a
web server.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
INSERT INTO table (date_column) VALUES ('$insert');
If you're using a varchar() type column, then that'll work. If it's a
DATE/DATETIME/etc... column in your DB, then you have to format it in
the DB format...
What DB are you using?
---John Holmes...
-Original Message-
From: Cirstoiu
solution you think of with variable variables could be better solved by
using arrays.
---John Holmes...
-Original Message-
From: Peter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:42 PM
To: Php
Subject: [PHP] Varible Varibles
howdy,
I'm just curious here about varible
You can do it with two queries.
SELECT @a:=0;
SELECT @a:=@a+1, * FROM table;
This would be better taken to a MySQL list, though. Actually, you never
said what DB you were using. This works in MySQL.
---John Holmes...
-Original Message-
From: Jeff Field [mailto:[EMAIL PROTECTED
You can use
SET @a=0;
Instead of the first SELECT, too.
---John Holmes...
-Original Message-
From: John Holmes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 12:44 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] possible to add a record number to a query
,detail_start_date_d,detail_star
t_time_h,detail_start_time_m' = '$ttwo'
You are comparing the literal string of 'detail... ' is less than or
equal to a string like '200203041234' or something. That's going to
fail.
You need to go back to your SQL books...
---John Holmes...
-Original Message-
From
Step through your code. What value does $rexpiry have? What do you see
when you do print_r($Date) ?? Troubleshoot...
---John Holmes...
-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:36 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED
can't do that, then
go away and keep learning on your own, we don't have to help you.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, download it and see. Gives you a GUI to program recordsets from the
database, and drag and drop for results. Other PHP stuff along with
highlighting built in. If it didn't cost so much, I'd recommend it.
---John Holmes...
-Original Message-
From: Lazor, Ed [mailto:[EMAIL
Use it in your code; it'd be a good programming habit to get into.
--John Holmes...
-Original Message-
From: David McInnis [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 12:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] closing mysql connections
How necessary is this? Don't
Keep track of it yourself as you loop through the data. Maybe if you
explained what you need overall then we could suggest a method...
---John Holmes...
-Original Message-
From: Zac Hillier [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 3:59 AM
To: [EMAIL PROTECTED]
Subject
Yeah, do it all with regular queries. You shouldn't have to do any
replacing in PHP. You can even use the MySQL regular expressions in your
query for some more complex matching and replacing...
It's all in the manual...
---John Holmes...
-Original Message-
From: Julie Meloni [mailto
of the week. 6 minus the result of date('w'),
added to the day component of mktime(), will give you the end...
HTH,
---John Holmes...
-Original Message-
From: Rosen [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 15, 2002 7:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Determine week
Hi,
how
Fopen(http://www.example.com/page.html,r;);
Or
File(http://www.example.com.page.html);
My email program might mess up that code...either way, just use fopen()
or file() to open the page, read it into a variable, then write that
variable somewhere on your own system...
---John Holmes
Take a look at virtual()
www.php.net/virtual
---John Holmes...
-Original Message-
From: Vegitas Pride [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 16, 2002 2:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Help on including cgi scripts into php documents.
I was searching around
.
---John Holmes...
-Original Message-
From: Phil Reid [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 7:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] URGENT
I am in urgent need of help! (AGAIN)
Can anyone spot anything wrong with this query?
$sql = UPDATE IGNORE customer SET
to
match the background...heh... You ever look at your old code and realize
how funny it is... ??
---John Holmes...
-Original Message-
From: Anil Garg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 5:35 PM
To: [EMAIL PROTECTED]
Subject: [PHP] table porblem in netscape!!
I have
to
the picture, there are ways to handle that in .htacess and PHP.
---John Holmes...
-Original Message-
From: Steph [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 5:14 PM
To: Php-General
Subject: [PHP] disable ability to download image?
Is there a way to disable the users ability
Depends what you're protecting. If someone wants it bad enough, they'll
find it. It's like using a really hard to guess password and then
leaving your box open to the world to guess at...
---John Holmes...
-Original Message-
From: Fargo Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday
like 'logged-in'. On
every other page, check for this variable. If it exists, they are logged
in, if not, then redirect to the log in page.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Look at a phpinfo(); page. All of the variables you can get are shown
there. Look for the one you want.
---John Holmes...
-Original Message-
From: èdy kurniawan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002 4:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] catch the client
i want read how caracter from onepage like this
asasassasa
sasassasa
sasasassas
sasassasasa
sasasassasa
Yes, I want to one give you answer like this, okay? Thanks, no.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Why don't you just use DATE_FORMAT() in your query, then you don't have
to do any extra PHP code at all??
---John Holmes...
-Original Message-
From: Jason Soza [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 3:50 AM
To: PHP-General Mailing List
Subject: [PHP] Stumped
)
Records: 1 Duplicates: 0 Warnings: 0
mysql select * from list2;
+--+
| fname|
+--+
| O'Hare |
| O\'Henry |
+--+
2 rows in set (0.00 sec)
---John Holmes...
-Original Message-
From: David McInnis [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 1:57 AM
; }
That last part isn't tested. I used a different method, but hopefully
this gives you an idea.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can you add a checkbox to say update this row, then just check for
checked checkboxes??
---John Holmes...
-Original Message-
From: Daniel Hoffman [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 9:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mass sql update array
I am
Use NOW() in your query...
INSERT INTO table VALUES (NOW()),'John');
---John Holmes...
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 22, 2002 12:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Current date time in MySQL datetime format
I
actual programming from there. Does anyone have a presentation
like this? My audience will be people that have an HTML knowledge and
possibly a c/c++ introduction. Thanks for any help.
---John Holmes.
You can use the HTTP_*_VARS for now, but they are depreciated. They will
work right now on most any version of PHP.
I would just maintain two different versions, one for PHP 4.2+ and one
for earlier versions. Sure, it's a little more of a pain...though...
---John Holmes...
-Original
for the
checkboxes. Also, what does your CREATE TABLE look like for the table
your trying to insert this data into?
---John Holmes...
-Original Message-
From: Rob Packer [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 23, 2002 7:50 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Insert an array
= ;
$text = whatever...;
$ftext = urlencode($text);
$fp = fopen(http://www.example.com/cgi-bin/script.cgi?text=; . $ftext,
r);
while($data = fread($fp,1000))
{ $contents .= $data; }
fclose ($fd);
?
The response is now in $contents. Adapt to your needs.
---John Holmes...
--
PHP General Mailing
and the value would be
bad_data','bad_time','bad_host','bad_referrer','bad_agent')#
If slashes are not getting added to that data, either by magic quotes or
by addslashes(), then he's open to getting bad data inserted into his
table...
If magic_quotes_gpc is ON, then you're fine...
---John Holmes
The best way to do this is server side with strlen(). You can use
javascript or maxlength, but if a user wants to get around it, they can.
---John Holmes...
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 23, 2002 9:47 PM
To: '[EMAIL PROTECTED
.
Best you could do is output some JavaScript along with your HTML and
attempt to control it that way. Basically, since you already know how to
do it with JavaScript, have PHP write the JavaScript for you...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
`$new_name`,$create);
$result = mysql_query($create);
return;
}
?
Untested, add in some error checking and validate the $old and $new
names, and adapt to your needs...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You're completely right - as usual - now for the file handling...
what's
better? Storing it to the DB or as file??
File
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Using the 4.2.1 source available from the main downloads page, I'm
getting:
php_functions.c:93:27: missing binary operator before '!'
You get an error when you do what? Unzip the source, compile it, run it,
load a .php page, crap your pants???
---John Holmes...
--
PHP General Mailing List
Check your session.save_path in PHP.ini. If you don't have a PHP.ini,
make one from PHP-ini.dist or PHP-ini.recommended
---John Holmes...
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 5:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP
U...what was the question again?
John you're not paying us Holmes
-Original Message-
From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 7:46 PM
To: PHP General
Subject: Re: [PHP] Lost, need help debuggin
Look, I am glad that we are clear on
for. And if it's worth
protecting, it's worth cracking into so you don't have the protection...
What do you have that you think is so good? There are plenty of programs
that release open source code and do well...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
I want to find the number of the highest primary key in a particular
MySQL table.
SELECT MAX(ID) FROM table
Can you tell us why you need to do this? I have a feeling you're doing
something bad...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
manual, chapter 6: Date and Time Functions...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
);
readfile($download_dir . $filename);
}
else
{ echo you're not a valid user; }
?
Adapt to your needs and don't even try this if you're not going to
validate the download directory and filename...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
easier, teaching them to put
?=$_POST['name']? or {name} in the document???
---John Holmes...
-Original Message-
From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 3:50 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Seperating presentation from logic
Why not use str_repeat()?
www.php.net/str_repeat
---John Holmes...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 25, 2002 11:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Print a char from a variable number
Hello List,
I want to do
is that you read up on the cURL section of the manual
and any other documents about it you can find. I think that's the best
option to start on a project like this...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
function test1()
{$hello=hello;}
function test2()
{test1();
print $hello;}
test2();
?
This should print hello. But it does'nt work. Any idea?
Read here to find out why:
http://www.php.net/manual/en/language.variables.scope.php
---John Holmes...
--
PHP General Mailing List
I just preg_replace(/\'/,\',$text) and all was good :o)
That's what addslashes() is for. It handles single and double quotes,
backslashes, and nulls, so you won't have any problems...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
comparisons on it.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to a four
column table. Or change the menu from a vertical column on the left to a
horizontal row on the bottom that's run by images instead of text.
Do you trust your designer to do all that and not mess up any of your
PHP code that's thrown in with the HTML? That's why you use templates...
---John
),'that') |
++
| this'that |
++
1 row in set (0.01 sec)
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
time of the query, but it's the best you can get.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/user/www is your web root.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
with the same name.
Period. Use some logic when you're programming and rethink your
solution. Use function_exists() before each function declaration so you
don't declare it twice? Are both functions exactly the same?
---John Holmes..
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
,
everything is all packaged together. Results may vary on different
servers; I'd like to see a *nix/Apache result set posted...
Tested on Win2K / 1Ghz AMD / 512MB RAM / IIS 5.0 / PHP 4.2.1 (ISAPI
Module), YRMV
---John Holmes...
TEST 1.1 :: 20 registered vars :: 10 iterations
name/ total time
have to, that way I'm not wasting a bunch
of memory in PHP by creating these huge arrays...
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Function whatever()
{
global $testcookie;
or
global $HTTP_COOKIE_VARS;
or
upgrade your PHP and jus use $_COOKIE['testcookie'] and it's always
available, regardless of scope.
---John Holmes...
-Original Message-
From: Chris Morrow [mailto:[EMAIL PROTECTED]]
Sent: Thursday
Show us your code.
---John Holmes...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 5:33 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [PHP] Newbie problem - Slashes
Hi John,Phillip,
Thanks
Wouldn't you want to use preg_match() before you replace it?
www.php.net/preg_match
---John Holmes...
-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 27, 2002 9:37 PM
To: [EMAIL PROTECTED]
Subject: [PHP] preg_replace pains
Hi all,
I've
computer, they'll have to start a new session there
automatically, because they won't have the same cookie matching the
session ID from the first computer.
---John Holmes...
-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 29, 2002 1:24 AM
To: PHP
1 - 100 of 859 matches
Mail list logo