Re: [PHP] mysql_connect noob question

2013-04-23 Thread Tedd Sperling
On Apr 21, 2013, at 3:33 PM, Glob Design Info wrote: > What question did I not answer? That proves that you're not listening -- you are total waste of time for anyone trying to help. Welcome to my ignore file. tedd _ tedd.sperl...@gmail.com http://sperling.com

Re: [PHP] A little confused

2013-04-23 Thread Chris Knipe
Thanks for the replies guys - figured it out! Using date() directly with strtotime() and the appropriate formating works :) date("D, \\t\h\e jS \o\\f M Y", strtotime($_SESSION['ExpiryTime'])) On Tue, Apr 23, 2013 at 12:16 PM, shiplu wrote: > > On Tue, Apr 23, 2013 at 4:07 PM, Chris Knipe w

Re: [PHP] A little confused

2013-04-23 Thread shiplu
On Tue, Apr 23, 2013 at 4:07 PM, Chris Knipe wrote: > echo date_format($_SESSION['ExpiryDate'], "D, \t\h\e jS \o\f M Y"); > Why not construct DateTime object echo date_format(new DateTime($_SESSION['ExpiryDate']), "D, \t\h\e jS \o\f M Y"); Or $dt = new DateTime($_SESSION['ExpiryDate']); echo

Re: [PHP] A little confused

2013-04-23 Thread Stuart Dallas
s 3ft9 Ltd http://3ft9.com/ > On Tue, Apr 23, 2013 at 12:09 PM, Stuart Dallas wrote: > On 23 Apr 2013, at 11:07, "Chris Knipe" wrote: > > > $_SESSION['ExpiryDate'] = "2013-04-23"; > > echo date_format($_SESSION['ExpiryDate'], "

Re: [PHP] A little confused

2013-04-23 Thread Chris Knipe
" wrote: > > > $_SESSION['ExpiryDate'] = "2013-04-23"; > > echo date_format($_SESSION['ExpiryDate'], "D, \t\h\e jS \o\f M Y"); > > > > Required Result: Mon, the 23rd of Apr 2013 > > > > I get however: PHP Warning: date_form

Re: [PHP] A little confused

2013-04-23 Thread Stuart Dallas
On 23 Apr 2013, at 11:07, "Chris Knipe" wrote: > $_SESSION['ExpiryDate'] = "2013-04-23"; > echo date_format($_SESSION['ExpiryDate'], "D, \t\h\e jS \o\f M Y"); > > Required Result: Mon, the 23rd of Apr 2013 > > I get howeve

[PHP] A little confused

2013-04-23 Thread Chris Knipe
Hi All, $_SESSION['ExpiryDate'] = "2013-04-23"; echo date_format($_SESSION['ExpiryDate'], "D, \t\h\e jS \o\f M Y"); Required Result: Mon, the 23rd of Apr 2013 I get however: PHP Warning: date_format() expects parameter 1 to be DateTime, integer gi

Re: [PHP] Load testing an app

2013-04-22 Thread Adam Richardson
the exec() calls were not being executed (e.g., they were bypassed) and weren't being accounted for in terms of processing time, then these tests would likely fail to recreate the load issues with similar numbers. The site is running PHP 5.3 on IIS/Windows Server 2003. The netsh calls are >

[PHP] Load testing an app

2013-04-22 Thread Andrew Ballard
I'm looking for ideas to help load test a PHP site my office wrote and maintains. Peak usage for this site is during the fall when new students arrive, and for the first time this past fall the traffic rendered the web server completely unresponsive, almost as quickly as we could restart it

Re: [PHP] mysql_connect noob question

2013-04-22 Thread Jim Giner
change your current authentication script to use an ordinary user id and pswd that steers the users to a script that helps them access their data views without revealing to them the connect values. And personally, I think PHP is the best thing I've ever taken up since my first Univac assembler cours

Re: [PHP] [ask] convert unknown Korean's string to readable string

2013-04-22 Thread Richard Quadling
On 18 April 2013 08:06, Morning Star wrote: > $string = \uc548\ub155\ud558\uc138\uc694 outputs (at least for me) ... 안녕하세요 Based upon http://stackoverflow.com/questions/7274183/php-convert-unicode-to-character. Hope this helps. -- Richard Quadling Twitter : @RQuadling

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
After all this, the OP remains unenlightened. This is just a waste of time. "You are doing this wrong." "There are existing tools that do what your client wants." "A command line tool is not the same as the php library." are all met with "I don't want t

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-21 Thread shiplu
On Apr 22, 2013 7:00 AM, "Bastien Koert" wrote: > > I have an app that gets passed in xml and use this code to read that data in > > // We use php://input to get the raw $_POST results. > $xml_post = file_get_contents('php://input'); $xml_post is string. I think now you know what to do.

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-21 Thread Bastien Koert
I have an app that gets passed in xml and use this code to read that data in // We use php://input to get the raw $_POST results. $xml_post = file_get_contents('php://input'); Maybe it will help Bastien On Sat, Apr 20, 2013 at 7:48 AM, shiplu wrote: > > > > > >

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
ment tool than connecting to a MySQL server and running queries. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
mebody else has built is not. Or, if it makes more sense substitute a car and inventing wheels. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
time/money) is daft when you discover a pre-built solution. To refuse to investigate it due to a refusal to throw the result of that time away is pure stubbornness, a normally expensive path to walk. I want the script to work - as it should if PHP is 1/2 what it's cracked up to be. If no

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
ke it work because it's already cost you time/money) is daft when you discover a pre-built solution. To refuse to investigate it due to a refusal to throw the result of that time away is pure stubbornness, a normally expensive path to walk. I want the script to work - as it should if PHP i

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Glob Design Info
As shown in the OP I am already doing that in the PHP scipt: $host = "instance43490.db.xeround.com:8904"; And then passing that as the 1st param to mysql_connect On 4/21/13 4:23 PM, Stuart Dallas wrote: On 22 Apr 2013, at 00:14, Glob Design Info wrote: However, I may have found t

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
ay is pure stubbornness, a normally expensive path to walk. > I want the script to work - as it should if PHP is 1/2 what it's cracked up > to be. If not, I'll have to look for another solution (like C which I have > been using for 20 years). Am I supposed to care whether yo

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
email address, however the dots in that address are *not* being converted to underscores as mentioned (at least not visibly). I just created a free account there and the email says my username is dgobr...@gmail.com but I connected to it from sqlyog and a php page by using JUST "dgobrien" &

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
just created a free account there and the email says my username is dgobr...@gmail.com but I connected to it from sqlyog and a php page by using JUST "dgobrien" "; } } ?> Login UserName*: Password*: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Stuart Dallas
ace the first parameter to your mysql_connect call with 'instance43490.db.xeround.com:8904' and it will probably work. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread David Robley
other variables first when you're >> only going to use them in that one place? It's a waste of memory. It's a >> minor niggle but it's a pet hate of mine. > > I am using them in other places - printing them on the response page to > see their values/show the

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
es as mentioned (at least not visibly). This could be the culprit. Try using a username without an @ in it. -Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
Except that I want to use my script and form - precisely because I have already sunk time into it. I'm not going to sink *more* time into something that could potentially create *another* problem. I want the script to work - as it should if PHP is 1/2 what it's cracked up to be. If

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Glob Design Info
es first when you're only going to use them in that one place? It's a waste of memory. It's a minor niggle but it's a pet hate of mine. I am using them in other places - printing them on the response page to see their values/show the user who logged in, etc. I have already

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
> the dots in that address are *not* being converted to underscores as > mentioned (at least not visibly). > > > I just created a free account there and the email says my username is > dgobr...@gmail.com > but I connected to it from sqlyog and a php page by using JUST "dgobr

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
rom sqlyog and a php page by using JUST "dgobrien" "; } } ?> Login UserName*: Password*:

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
t an @ in it. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
he proverbial dead horse >> >> I am developing a web portal that has to display the tables in the DB via a >> form/script. The web page has a login with user and password. Right now I am >> just trying to connect. >> This for a commercial app - the client wants both an A

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Stuart Dallas
;password'] in local $pass first and then passing those to > mysql_connect. And I am connecting to a remote server, not localhost. Side note: why are you putting them in other variables first when you're only going to use them in that one place? It's a waste of memory. It's a mi

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
On Sun, Apr 21, 2013 at 6:01 PM, Glob Design Info wrote: > One other thing I noted in the FAQ was this: > > "Dots in incoming variable names > Typically, PHP does not alter the names of variables when they are passed > into a script. However, it should be noted that the do

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
One other thing I noted in the FAQ was this: "Dots in incoming variable names Typically, PHP does not alter the names of variables when they are passed into a script. However, it should be noted that the dot (period, full stop) is not a valid character in a PHP variable name. For the r

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
portal that has to display the tables in the DB via a > form/script. The web page has a login with user and password. Right now I am > just trying to connect. > This for a commercial app - the client wants both an API connect via PHP and > a web portal in which they can login from a

Re: [PHP] mysql_connect noob question

2013-04-21 Thread David OBrien
nnect via PHP > and a web portal in which they can login from a web page and view the > tables in the DB. Right now I am just trying to get the form/PHP > interaction to work. > This sounds like a very good use statement for http://www.phpmyadmin.net/<http://www.phpmyadmin.net/hom

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Glob Design Info
t; problem. His focus is on a specific tree instead of the forest. He doesn't > want to widen his view. > > Until the poster answers our question, I'm afraid our recommendations will > fall on deaf ears. > > Some days you can help and some days you can't. > >

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Glob Design Info
This for a commercial app - the client wants both an API connect via PHP and a web portal in which they can login from a web page and view the tables in the DB. Right now I am just trying to get the form/PHP interaction to work. On Apr 21, 2013, at 6:42 AM, tamouse mailing lists wrote: >

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Glob Design Info
necting to a remote server, not localhost. I have already documented both the exact HTML and PHP code in this thread and so see no need to post it elsewhere. On Apr 21, 2013, at 6:32 AM, Stuart Dallas wrote: > On 21 Apr 2013, at 11:20, Glob Design Info wrote: > >> I don't under

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
On Fri, Apr 19, 2013 at 3:43 PM, Glob Design Info wrote: > I know this has probably been answered already. > > When I pass a user name and password from a form to my PHP script and then > pass those to mysql_connect it doesn't connect. When I paste those exact > same values i

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
teach >> than those attempting to learn. :) > > To me that means that you won't recognise the teacher until you're ready to > learn. Teachers are always all around all of us, we just need to be willing > to learn. Yes, that is the intended meaning. My alternate means that teachers should not try to teach students who aren't ready. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Stuart Dallas
e Zen saying "When the student is ready, the teacher > appears." -- which to me says more about those attempting to teach > than those attempting to learn. :) To me that means that you won't recognise the teacher until you're ready to learn. Teachers are always all around all of us, we just need to be willing to learn. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
on deaf ears. > > Some days you can help and some days you can't. > > Cheers, > > tedd There's the Zen saying "When the student is ready, the teacher appears." -- which to me says more about those attempting to teach than those attempting to learn. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread Tedd Sperling
a specific tree instead of the forest. He doesn't want to widen his view. Until the poster answers our question, I'm afraid our recommendations will fall on deaf ears. Some days you can help and some days you can't. Cheers, tedd _ tedd.sperl...@gmail.com

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
o have them come from a web form at all? What value is that providing at all? While it is certainly an interesting question as to why it doesn't work, if you have other things in your app to work on, just leave it and come back to it when you've time, if it's still that interesting. --

Re: [PHP] Looking for complete entered URL

2013-04-21 Thread Andrew Ballard
#x27;$_SERVER:'.PHP_EOL; > >var_dump($_SERVER); > >?> > > > >When I called it with the following URL: > > > >http://localhost/~tamara/teststuffout/logger.php/one/two?a=true#fragment > > > >It showed all the stuff in $_SERVER as a result of that,

Re: [PHP] Re: mysql_connect noob question

2013-04-21 Thread Stuart Dallas
you'll "deal with that later," but I question how you're going to deal with it. What exactly are you developing that requires DB credentials to come from a form on a web page? -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mysql_connect noob question

2013-04-21 Thread Glob Design Info
s in your database, rather store hashes (e.g. MD5) of the > passwords and then use the appropriate function to hash the user input > and compare with the stored hash). > > HTH, > > -- > Geoff Lane > Cornwall, UK > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mysql_connect noob question

2013-04-21 Thread Glob Design Info
ddress = 127.0.0.1 > Comment this out and replace with: > bind-address = 0.0.0.0 > > Hopefully, that'll sort out the one test user you've tried so far. > Note that you'll need to take responsibility for verifying your users > at the application level or you'll need to create a new entry in the > user table with CREATE USER; GRANT appropriate privileges; and then > update the user's record to permit connection from the appropriate > host(s). > > HTH, > > -- > Geoff Lane > Cornwall, UK > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for complete entered URL

2013-04-21 Thread Ashley Sheridan
the following URL: > >http://localhost/~tamara/teststuffout/logger.php/one/two?a=true#fragment > >It showed all the stuff in $_SERVER as a result of that, including: > > ["REQUEST_URI"]=> > string(47) "/~tamara/teststuffout/logger.php/one/two?a=true" > >

Re: [PHP] Looking for complete entered URL

2013-04-21 Thread tamouse mailing lists
ing(47) "/~tamara/teststuffout/logger.php/one/two?a=true" ["PATH_INFO"]=> string(8) "/one/two" ["QUERY_STRING"]=> string(6) "a=true" Interestingly, it appears nothing reports #fragment... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-21 Thread tamouse mailing lists
art is exactly right. >> >> If you are checking someone's credentials to access your site, such as a >> user, then giving them the "keys to the kingdom" is a bit of an overkill. >> >> My advice, set up "user_id" and "password" fields i

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
e's credentials to access your site, such as a user, then giving them the "keys to the kingdom" is a bit of an overkill. My advice, set up "user_id" and "password" fields in a "user" table for users you want to access some portion of your site, here&#x

Re: [PHP] Looking for complete entered URL

2013-04-20 Thread Tom Rogers
gt; Angela > BTW, I know about Piwik and I use that, as well. This is something I'm doing > on my own. You can put this in the page and email your self the information that is available: mailto:trog...@kwikin.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looking for complete entered URL

2013-04-20 Thread Angela Barone
file. There are a lot of pages that have come up in my search, but nothing seems to pertain to what I'm trying to do. Thank you, Angela BTW, I know about Piwik and I use that, as well. This is something I'm doing on my own. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
ials to access your site, such as a user, then giving them the "keys to the kingdom" is a bit of an overkill. My advice, set up "user_id" and "password" fields in a "user" table for users you want to access some portion of your site, here's the code to d

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
ect. Have you tried $LINK = mysql_connect( $host, "$form_user", "$form_pass" ); just for the heck of it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Jim Giner
the form. There are very few legitimate reasons to be doing this, so the question is well worth asking. -Stuart oops - now I see. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Stuart Dallas
form. There are very few legitimate reasons to be doing this, so the question is well worth asking. -Stuart -- Stuart Dallas 3ft9 Ltd http://3ft9.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Jim Giner
y the login? Cause I'm doing the same kind of thing all over the place. With good practices on validation and such before doing my query of course. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-20 Thread David OBrien
> > > $form_user = $_POST[ 'user' ]; > > $form_pass = $_POST[ 'password' ]; > > > > # Connect to remote DB > > > > $LINK = mysql_connect( $host, $form_user, $form_pass ); > > > > And yes, my $host param is correct. > Have you tried $LINK = mysql_connect( $host, "$form_user", "$form_pass" ); just

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Tedd Sperling
On Apr 19, 2013, at 4:43 PM, Glob Design Info wrote: > I know this has probably been answered already. > > When I pass a user name and password from a form to my PHP script and then > pass those to mysql_connect it doesn't connect. When I paste those exact same > values i

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
ame and password consist of only ASCII characters, or do they also contain others? If so, then it might be that your sending these characters in a different charset. - Matijn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Glob Design Info
ox.net' (using password: YES) in */Library/WebServer/Documents/wservices/connect.php* on line *29* (But with the real user name, not just '') Thanks, On 4/19/13 3:28 PM, tamouse mailing lists wrote: On Fri, Apr 19, 2013 at 3:43 PM, Glob Design Info < i...@globdesign.com>

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread shiplu
> > > > Question: how do you use $mylist when the xml is not as a file but is > returned on a web page? > I assume It returns as a string from page. Then use simplexml_load_string(). See http://php.net/manual/en/function.simplexml-load-string.php -- Shiplu.Mokadd.im ImgSign.com | A dynamic sig

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 12:51 AM, dealTek wrote: > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < > tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting processed - > then coming back to the *same pa

Re: [PHP] mysql_connect noob question

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 10:36 AM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > No, that's for writing safe html output. > > If the user or password contains special chars, sending them through > htmlspecialchars would turn them into html entities. i doubt you want that. > > I'm at a l

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread tamouse mailing lists
This will be brief as I'm on a tablet... On Apr 19, 2013 5:53 PM, "dealTek" wrote: > > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting

Re: [PHP] mysql_connect noob question

2013-04-20 Thread tamouse mailing lists
-162-142-180.ph.ph.cox.net' (using password: YES) > in > >>>> */Library/WebServer/Documents/wservices/connect.php* on line *29* > >>>> > >>>> (But with the real user name, not just '') > >>>> > >>>> Thanks,

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
ysql-connect>]: Access denied for >>>>>> user ''@'ip70-162-142-180.ph.ph.cox.net' (using password: YES) in >>>>>> */Library/WebServer/Documents/wservices/connect.php* on line *29* >>>>>> >>>>>> (But

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Jim Giner
hp* on line *29* (But with the real user name, not just '') Thanks, On 4/19/13 3:28 PM, tamouse mailing lists wrote: On Fri, Apr 19, 2013 at 3:43 PM, Glob Design Info wrote: I know this has probably been answered already. When I pass a user name and password from a form to my PHP scrip

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
t;> Thanks, >>>> >>>> On 4/19/13 3:28 PM, tamouse mailing lists wrote: >>>>> On Fri, Apr 19, 2013 at 3:43 PM, Glob Design Info >>>>> wrote: >>>>>> I know this has probably been answered already. >>>>>

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Jim Giner
Glob Design Info wrote: I know this has probably been answered already. When I pass a user name and password from a form to my PHP script and then pass those to mysql_connect it doesn't connect. When I paste those exact same values into mysql_connect as string literals it works. Can anyone tel

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
bably been answered already. When I pass a user name and password from a form to my PHP script and then pass those to mysql_connect it doesn't connect. When I paste those exact same values into mysql_connect as string literals it works. Can anyone tell me why this happens? I know the strings

Re: [PHP] mysql_connect noob question

2013-04-19 Thread David Robley
;>> I know this has probably been answered already. >>> >>> When I pass a user name and password from a form to my PHP script and >>> then pass those to mysql_connect it doesn't connect. When I paste those >>> exact same values into mysql_connect as string li

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
t.php* on line *29* (But with the real user name, not just '') Thanks, On 4/19/13 3:28 PM, tamouse mailing lists wrote: On Fri, Apr 19, 2013 at 3:43 PM, Glob Design Info wrote: I know this has probably been answered already. When I pass a user name and password from a form to

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
Nope, quotes are not visible in the output. Both the HTML and the script it calls are shown below. They are in 2 separate files. The variable names in both are "user" and "password". The data comes through to the PHP script fine - if I print them I see exactly what I ty

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread dealTek
On Apr 19, 2013, at 3:32 PM, tamouse mailing lists wrote: >> >> page1.php is sending out to credit card company - getting processed - then >> coming back to the *same page1.php* with the XML data listed below... > > Please expand what you mean by "sending out&q

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread tamouse mailing lists
> > > Thanks Sebastian for the help > > Actually what is happening in my case is: > > page1.php is sending out to credit card company - getting processed - then > coming back to the *same page1.php* with the XML data listed below... Please expand what you mean by &quo

Re: [PHP] mysql_connect noob question

2013-04-19 Thread tamouse mailing lists
On Fri, Apr 19, 2013 at 3:43 PM, Glob Design Info wrote: > I know this has probably been answered already. > > When I pass a user name and password from a form to my PHP script and then > pass those to mysql_connect it doesn't connect. When I paste those exact > same values i

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Matijn Woudt
On Fri, Apr 19, 2013 at 10:59 PM, Glob Design Info wrote: > Already did that. I printed the form values in the PHP script after they > are received and they print exactly as entered in the form. Even checked > for extra spaces. > > Any functions I can pass the values to to remove t

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread dealTek
't work, download the content > (for example with file_get_contents()) and pass it to > simplexml_load_string(). There are obviously many other approaches, but you > should now have an idea :-) > Thanks Sebastian for the help Actually what is happening in my case is: p

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
Already did that. I printed the form values in the PHP script after they are received and they print exactly as entered in the form. Even checked for extra spaces. Any functions I can pass the values to to remove the magic quotes? Thanks, On 4/19/13 1:47 PM, Matijn Woudt wrote: On Fri, Apr

Re: [PHP] mysql_connect noob question

2013-04-19 Thread Matijn Woudt
On Fri, Apr 19, 2013 at 10:43 PM, Glob Design Info wrote: > I know this has probably been answered already. > > When I pass a user name and password from a form to my PHP script and then > pass those to mysql_connect it doesn't connect. When I paste those exact > same values i

[PHP] mysql_connect noob question

2013-04-19 Thread Glob Design Info
I know this has probably been answered already. When I pass a user name and password from a form to my PHP script and then pass those to mysql_connect it doesn't connect. When I paste those exact same values into mysql_connect as string literals it works. Can anyone tell me why this ha

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread Sebastian Krebs
that I get ... > > Question: how do you use $mylist when the xml is not as a file but is > returned on a web page? > > > an example of the real xml I am trying to work with is like this demo > below > > Goal : when this response comes back - I would like to be able to

[PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread dealTek
trying to work with is like this demo below Goal : when this response comes back - I would like to be able to get the data as php and then update the database example 1 SUCCESS 1865264174 100 123456 N N sale 12.00 ::1 ecommerce ccprocessora USD Small Order

Re: [PHP] Date weirdness

2013-04-18 Thread Larry Martell
;) >> { >> $time_object = new DateTime($date_time, new DateTimeZone($from_tz)); >> $time_object->setTimezone(new DateTimeZone($to_tz)); >> return $time_object->format('Y-m-d H:i:s'); >> } > > I don't seem to have the DateTime object. We are running 5.1.6 and > that was added in 5.2.0. We are getting the Date module from an > external extension. I'll have to see about upgrading. I've upgraded to 5.3.3, got rid of the external Date extension and implement your solution. It's working perfectly. Thanks much! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2013-04-18 Thread Micky Hulse
On Thu, Apr 18, 2013 at 8:36 AM, Larry Martell wrote: > That was it. Thanks!! Np. Glad it helped. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2013-04-18 Thread Larry Martell
hort tags are turned on for your 5.3.3? That was it. Thanks!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2013-04-18 Thread Lester Caine
Larry Martell wrote: Continuing in my effort to port an app from PHP version 5.1.6 to 5.3.3, the app uses this construct all over the place when building links: I never could find any documentation for this, but I assumed it was some conditional thing - use $var if it's defined, otherwis

[PHP] [ask] convert unknown Korean's string to readable string

2013-04-18 Thread Morning Star
to 'UTF-8' , but no luck either. It should be 안녕하세요! How can I convert that $string to Korean's character? my regards, Marco -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP]

2013-04-17 Thread Micky Hulse
Ah, I see now. Sorry, I must have read the original question wrong. There's a good thread on stack about short tags: "Are PHP short tags acceptable to use?" <http://stackoverflow.com/questions/200640/are-php-short-tags-acceptable-to-use> Which kinda links to the do

RE: [PHP]

2013-04-17 Thread Daevid Vincent
ent: Wednesday, April 17, 2013 3:51 PM > To: PHP General > Subject: [PHP] > > Continuing in my effort to port an app from PHP version 5.1.6 to 5.3.3, the > app uses this construct all over the place when building > links: > > > > I never could find any docum

Re: [PHP]

2013-04-17 Thread Micky Hulse
On Wed, Apr 17, 2013 at 3:59 PM, Micky Hulse wrote: > You might need to turn on the short tag option > in your conf file. Sorry, ini file, not conf. Been a long day. :D I guess I should have asked if short tags are turned on for your 5.3.3? -- PHP General Mailing List (http://www.php.ne

Re: [PHP]

2013-04-17 Thread Micky Hulse
It should still work. You might need to turn on the short tag option in your conf file. <http://stackoverflow.com/a/2185331/922323> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP]

2013-04-17 Thread Larry Martell
Continuing in my effort to port an app from PHP version 5.1.6 to 5.3.3, the app uses this construct all over the place when building links: I never could find any documentation for this, but I assumed it was some conditional thing - use $var if it's defined, otherwise use nothing. In 5.1

RE: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Daevid Vincent
> -Original Message- > From: Matijn Woudt [mailto:tijn...@gmail.com] > Sent: Wednesday, April 17, 2013 3:11 PM > To: Daevid Vincent > Cc: PHP List > Subject: Re: [PHP] Need a tool to minimize HTML before storing in > memecache > > On Wed, Apr 17, 2013

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread David OBrien
> compress our HTML in these cache slabs. > > > > Anyone know of a good tool or even regex magic that I can call from PHP to > compress/minimize the giant string web page before I store it in the cache? > > > > It's not quite as simple as stripping white space b/c o

Re: [PHP] Need a tool to minimize HTML before storing in memecache

2013-04-17 Thread Matijn Woudt
> compress our HTML in these cache slabs. > > > > Anyone know of a good tool or even regex magic that I can call from PHP to > compress/minimize the giant string web page before I store it in the cache? > > > > It's not quite as simple as stripping white space b/

<    9   10   11   12   13   14   15   16   17   18   >