Register globals is no longer ON I believe. That is why it happened.
To fix this:
Foreach($_POST as $key = $value) ${$key} = $value;
That will convert all of your post variables to local variables.
:)
Thanks,
Matt Babineau
Criticalcode
858.733.0160
[EMAIL PROTECTED]
http
System Time
Is the system time through Linux, Apache or through the php.ini file?
On 12/11/05, Sebastian En3pY Zdrojewski [EMAIL PROTECTED] wrote:
afaik it's the system time.
Cheers
En3pY
Sebastian Konstanty Zdrojewski
URL:
$query = SELECT * FROM login WHERE username = '.$_POST['username'].' AND
pass = '. $_POST['pass'].';
What is the correct syntax for
$query = SELECT * FROM login where
username='$_POST['username']' AND pass ='$_POST['pass']';
Thought this would work.
R.
--
PHP General Mailing
,
Matt Babineau
Criticalcode
858.733.0160
[EMAIL PROTECTED]
http://www.criticalcode.com
-Original Message-
From: Christian Calloway [mailto:[EMAIL PROTECTED]
Sent: Friday, July 15, 2005 10:56 AM
To: php-general@lists.php.net
Subject: [PHP] HTML - PDF PHP Package
Hi Everyone,
I am looking
explain this very wellanyone have
any thoughts?
Thanks,
Matt Babineau
Criticalcode
858.733.0160
[EMAIL PROTECTED]
http://www.criticalcode.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
have to even think about the server. I spend about 1 hr a month messing
around with the server (daemon restarts or php config changes). That's where
LAMP's value really shines through I think you will find.
Thanks,
Matt Babineau
Criticalcode
858.733.0160
[EMAIL PROTECTED]
http
I bet if you connect using the IP directly it will solve your problem.
Thanks,
Matt Babineau
Criticalcode
858.733.0160
[EMAIL PROTECTED]
http://www.criticalcode.com
-Original Message-
From: Jonathan Duncan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 22, 2005 6:27 PM
To: php
on this?
Everything I have read so far has been very helpful and I thank you for
that.
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Marcus Bointon [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 5:02 AM
To: PHP General
to print a copy. I've looked into PDFing the invoice but its just a bit
easier to hit the print button and be done since Adobe PDF usually crashes
your browser :(
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Warren
right now - unless I convert the bg images to foreground image which would
really suck...but could be done.
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Leif Gregory [mailto:[EMAIL PROTECTED]
Sent: Thursday, June
.
Thx-
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Kristen G. Thorson [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 09, 2005 2:05 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Beautiful HTML Invoice
Yikeshas anyone got a url for a good Make PDF From HTML Class that
uses my newly installed PDFlib library?
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Leif Gregory [mailto:[EMAIL PROTECTED]
Sent: Thursday
Well after the first query you could do this:
$art_id = mysql_insert_id();
There is your new unique art_id you just created.
Do this for the next table, the do the insert on your 3rd table.
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED
? I'm on
a linux box and have php 4.3.10.
Thanks for the help!
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
on the
server to do the convert work.
Thanks,
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Jack Jackson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 07, 2005 3:21 PM
To: php-general@lists.php.net
Subject: Re: [PHP
,
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
Yeah, I read this article, and it works, but it doesn't set you up for a
drill down scenario...
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Chris W. Parker [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 24
in the
methods you used to achieve your success.
Thanks All!
PS- Thanks to those who suggested the Linux command line HTML 2 PDF
package!!
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
Hi All, I have some reports I need converted from HTML to PDF, I'm on a LAMP
box, so does anyone have any free suggestions?
Thanks,
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
Ok I installed PHP 4.3.10 and it still has not fixed the problem. If I
remove the SQL_CALC_FOUND_ROWS from the query, it works no problems! This is
very strange behavior!
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message
Ahh so the regex gods are pissed at me. This is simple (I think), but I need
to figure out how to strip out everything in a string that is not a number.
Any takers?
Thanks,
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
refresh. I have thought about the Iframe solution - does this work in
Mozilla? Are there non-iFrame solutions?
Thanks,
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
;-)
Matt Babineau
Criticalcode
w: http://www.criticalcode.com
p: 858.733.0160
e: [EMAIL PROTECTED]
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: Friday, January 21, 2005 12:41 PM
To: Matt Babineau
Subject: Re: [PHP] Multiple select boxes - select in one box
Installing GD for Linux can be a little more challanging:
If you are running red had here are a few things you will probably need:
RPMS:
Zlib
Zlib-devel
Libjpeg
Libjpeg-devel
GD (comes with php 4.3.0)
I think that was all I needed.
Then when you compile php try something like this:
Its getting run from PHP with the User of nobody:nobody in Apache
-Original Message-
From: Vail, Warren [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 5:45 PM
To: 'Matt Babineau'; [EMAIL PROTECTED]
Subject: RE: [PHP] SCP a file from my server to another using PHP
Matt,
Question
Hey All:
Interesting problem that I haven't been able to solve using google. I want
to move a file from my system using php, and I want to SCP it to another
system. I setup the 2 keys and I can SCP files w/o using a password from the
command line with no problem. When I take the same string that
Hey All -
just wanted to check in with anyone who has used this function. I
currectly have a function that I created, and inside it I have this
function.
Outside of my custom function I have a mysql_pconnect() statement and a
mysql_select_db() statement.
I also have another custom function that
On Mon, 2003-11-10 at 16:43, Jay Blanchard wrote:
[snip]
Outside of my custom function I have a mysql_pconnect() statement and a
mysql_select_db() statement.
So the end result being if I take the connect statement out of the
function one(), it fails, but function two() still works!
Am I
Ok, this ended up working well. I'm still wondering why in my example
function two() works, without needing to provide the resource identifier
to mysql_query(), how can mysql_query() pick up the resource identifier
automatically while mysql_list_fields does not?
Thx-
Matt
On Mon, 2003-11-10 at
All this aside what about using the ASCII value of the symbol. (I
think its ASCII).
You know how sometimes links with spaces in them are %20 instead of the
actual space? I'm not sure what it is but I am pretty sure there is a
%something for and ampersand symbol.
That may workif its not
Hey all-
I found another strange problem. I am creating a mysql database
connection like this:
@ $db = mysql_pconnect(host, user, pass);
mysql_select_db(dbname);
Now, I have a function that inside uses mysql_list_fields()
function getFields($table, $dbname) {
$fields =
Khalid wrote:
Matt Babineau wrote:
Hey All-
Just built a cart, and I want to connect it to Authorize.net with cURL
and I am able to do that fine. The problem is, it takes a while to
process the transaction. Sometimes the user's browser just sits there
for 5, 10 or even 30 seconds before
In this example, index.php would be a violation i think. however you
don't need to provide an absolute URL, you could provide / or ever
/index.php
I say this because the header specifying the Host had already been sent.
so you could do Location: Host + Relative_URL or Location: Relative_URL
Hey All-
Just built a cart, and I want to connect it to Authorize.net with cURL
and I am able to do that fine. The problem is, it takes a while to
process the transaction. Sometimes the user's browser just sits there
for 5, 10 or even 30 seconds before the page finishes processing and
they are
Perhaps you wrap a table around your image and set the background= of
the table to an image of the same size that says Loading Thumbnails,
then when the image loads, it loads over the background.
Matt
On Fri, 2003-08-22 at 15:08, Jeffrey D. Means wrote:
I am looking for a way to say please wait
Hey All-
If anyone has some experience getting GD setup on RH9, I could really
use some. Please email me off list if you are willing to answer a few
questions. Thanks!
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi All--
Does anyone have a function or something they have already written to
remove any URL hacking characters, mainly the single quote, but I'm
looking for a nice function to filter my _GET variables against. Gotta
protect the database...ya know :)
TIA-
Matt
--
PHP General Mailing List
Hi All--
Does anyone have a function or something they have already written to
remove any URL hacking characters, mainly the single quote, but I'm
looking for a nice function to filter my _GET variables against. Gotta
protect the database...ya know :)
TIA-
Matt
--
PHP General Mailing List
Hmmwondering why I keep receiving email sent to the list, that has
this stupid attachment...anyone else getting these?
Matt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You could try this:
input type=hidden name=box1 value=0
input type=checkbox name=box1 value=1
So basically when it get submitted, you'll have either a 0 or 1 response
to know whether or not it has been checked.
Does this help?
Matt
On Fri, 2003-08-15 at 14:25, Cesar Aracena wrote:
Hi all,
mysql_num_rows($news)
On Fri, 2003-08-15 at 17:42, John Taylor-Johnston wrote:
OK,
I tried this, but am getting this error:
Warning: Wrong parameter count for mysql_num_rows() in /.../testals.php on line 189
189 if (mysql_num_rows() == 1)
What's up?
John
$myconnection =
No problems :-) It sounds like Outlook was working like a charm?
On Wed, 2003-08-13 at 13:48, [EMAIL PROTECTED] wrote:
Aloha all,
I just wanted to apologize for some of the Out of Office alerts some of
you may have gotten from me yesterday. I had thought I had disabled the
function, but it
I have RH9, Apache 2.0.47 running in SAPI compiled with apxs2, PHP
4.3.2, and MySQL 4.0.14-standard
I compiled all of these as doing it the rpm was too annoying.
On Tue, 2003-08-12 at 14:54, Rankin, Randy wrote:
I am setting up a new Redhat Linux 9 box for use as a non-production test
server.
Take a look at cURL: http://www.php.net/manual/en/ref.curl.php
On Tue, 2003-08-12 at 20:13, Dan Anderson wrote:
I have noticed that sometimes I cannot fopen($web_address,'r') or use
any similar files if the web address contains a form get in it. (i.e.
ends in a ?var1=xxxvar2=xxx...). I was
Hi All-
I was wondering if anyone had any suggestions on how to properly
authenticate users using redhat php and mysql. Currently we are using
.htaccess files, but I was thinking it may be easier to manage this via
a php/mysql admin interface... I imagine plenty of authentication
schemes have
Anyone have a good place to help with this... Google was seeming a bit
light on good help. I tried to get it going but there seemed to be some
dependant libraries tha tI could not build myself, they were erroring
out..blah blah. Is there any easier way to do this?
Thanks,
Matt
--
PHP General
Yeah, I believe on Apache/Linux, it needs to be compiled in, and on
windows there is just some configuration and file moving to do.
cURL will do what you need it to, there is even code on the PHP site for
making the POST happen.
Matt
On Tue, 2003-08-12 at 20:27, Dan Anderson wrote:
Doesn't
I have a client that currently gets MDB exports of their database to run
reports and mail merges with. Has anyone heard of or have any idea of
how to make an MDB (Access Data File) on the file from PHP or any other
scripting language?
Thx-
Matt
Hi everyone:
I just read the reply from Jason Wong pretty much just about my
question. Using the ini_set() command at the top of all my pages I think
would work out ok, but when I upload my pages to the server, how can I
dynamically set the include path to match the root of my web folder on
TABLE
TR
TDIMG SRC=/images/image.gif/TD
TDIMG SRC=/images/image.gif/TD
TDIMG SRC=/images/image.gif/TD
TDIMG SRC=/images/image.gif/TD
/TR
/TABLE
Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http
If any PHP hosts are out there I have a question:
How do you keep users from erasing / altering files out side of their
web folder with PHP? Doesn't PHP run in the system user context? Is is
possible to prevent a user from using PHP to alter anything but in their
Web folder?
Matt Babineau
?php
$XML = \?xml version='1.0'
encoding='UTF-8'\?ProductApple/Product;
echo $XML;
?
Try this?
Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
-Original Message
could work.
Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
-Original Message-
From: Dennis Gearon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 12:12 PM
Yeah probably, you might need to add a 1 or 2 second delay to the meta
refresh...
Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
-Original Message-
From: Chris
Did you restart Apache? I am an Apache Newbie, but I would think you
would need to simple restart apache to take the old PHP out of memory so
it can load the new one?
Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http
the thread, I can't seem to find it.
Matt Babineau
MCWD / CCFD
-
e: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com/ http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
but I have had experiences in other languages in the past
where this is the case. The session cookie stayed in the users browser,
so they kept getting the same session and not a new session if they left
and came back a day later.
Matt Babineau
MCWD / CCFD
-
e
When first speaking with a client, would you charge an initial
constation fee for lets say conference calls? How would you invoice
stuff like this? on a monthly basis? Or every two weeks?
Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w
Not only the solution just posted, but I was using this before and
needed to set the dll used to php_gd2.dll, I am pretty sure it got
renamed in one of the more recent releases of PHP.
Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w
Heh
ASP.
Hehehehehe
Matt Babineau
MCWD / CCFD
-
e: [EMAIL PROTECTED]
p: 603.943.4237
w: http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
-Original Message-
From: 1LT John W. Holmes [mailto:[EMAIL PROTECTED]]
Sent: Monday
I have never had a clear understanding about what this does, the php.ini
has an explanation but being newer to PHP I don't understand it very
well. Could someone prodive a human explanation about what
register_globals does and why it is so important?
Matt Babineau
MCWD / CCFD
If I set the SESSION autostart = 1 in the PHP config, would that
eliminate my need to use session_start() in my code? I have some PHP
inline with some HTML, and the PHP is telling me:
Warning: Cannot send session cookie - headers already sent
Any ideas how to remedy this?
Matt Babineau
MCWD
execution space so that I can get the results from the first
becaus eI think it is running them separately so when I try to pull the
results, it has no results to pull. Does this make sense? any
suggestions?
Thanks,
Matt Babineau
MCWD / CCFD
-
e: mailto
63 matches
Mail list logo