RE: [PHP] quick echo output

2003-03-03 Thread Rich Gray
think it's because the '=$blah' syntax relies on short tags ? ... ?... and short tags can upset XML parsers... as a result short tags aren't supported by all hosting providers so your code could break if ported to another site... Cheers Rich -- PHP General Mailing List (http://www.php.net

RE: [PHP] question about smarty

2003-03-04 Thread Rich Gray
server. It can be outside the document root though if it bothers you... HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] submit button

2003-03-06 Thread Rich Gray
are u; ? please help, diksha. Can you post the form code? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Uploading file problem

2003-03-06 Thread Rich Gray
the permissions on the 3rd target directory to check if it allows writes by the web server process. Are all 3 files going into the same directory? Is the server *nix or Windows? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Uploading file problem

2003-03-06 Thread Rich Gray
that is echoed after the copy is the one that pops up. So, it could be some other problem, but I'm not sure what to look for. Take out the @ sign so you can see what the PHP error message is. ---John Holmes... Try using move_uploaded_file() as well... Rich -- PHP General Mailing

RE: [PHP] MySQL Alias and PHP

2003-03-07 Thread Rich Gray
this - SELECT a.area_name as area_a, b.area_name as area_b FROM tbl_1 x, tbl_2 a, tbl_2 b Then you can refer to the columns as $array['area_a'] and $array['area_b'] HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Persistent values between executions

2003-03-10 Thread Rich Gray
Use a 404 handler to build static html pages from the database. To refresh the content just delete the static content - this could be done automatically at predetermined intervals using cron or similar. FFT Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

RE: [PHP] file

2003-03-28 Thread Rich Gray
- what exactly are you expecting $contents to be set to? . Does your user or web server process have the permissions to create files in the directory? . What does readfile('sandrew.html'); after your fclose($fp) return? HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] string replace problem!!

2003-03-28 Thread Rich Gray
('/^./','',$string,1); wich results in slideimages[0]slideimages[1]slideimages[2] Can somebody help me out here?? thnx Thijs $string = substr($string,1); Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Time stamp and changing to a date.

2003-03-28 Thread Rich Gray
$mydate = 20030328231154; $myPrintDate=date (l dS of F Y h:i:s A,$mydate); echo $myPrintDate; Whats wrong $mydate should be a unix style timestamp not a MMDDHHMMSS type date/time format... Check the functions time() and mktime() to help you generate unix timestamps. HTH Rich

RE: [PHP] Microsoft SQL Server varchar(500) field text concatenated at 255 characters.

2003-03-28 Thread Rich Gray
thanks. Scott Hi Scott I believe this is a problem because of the relatively old TDS libraries used by native access methods... Possible workarounds are... . cast the data to TEXT before returning it . use ODBC which doesn't have this problem IIRC HTH Rich -- PHP General Mailing List (http

RE: [PHP] easy things - forms, variable sending

2002-11-22 Thread Rich Gray
Hi Some suggestions below... Cheers Rich This is a trivial question - what function can I use to automatically proceed to some link, one that can be executed without any user input. header('Location: http://www.newurl.blah') How can we, most efficiently, send all the data (variables) from one

RE: [PHP] session trouble

2002-11-22 Thread Rich Gray
related calls were made. HTH Rich -Original Message- From: empty [mailto:[EMAIL PROTECTED]] Sent: 22 November 2002 14:22 To: [EMAIL PROTECTED] Subject: [PHP] session trouble hi guys ; I can't use session bla..as on my site. PHP Code ?php session_register(); if(isset($username) isset($pass

RE: [PHP] using cookies

2002-11-23 Thread Rich Gray
can remove them by using stripslashes() or switch off magic quotes in your php.ini file. But I would repeat *don't* continue down the path you are going unless you like being hacked! HTH Rich -Original Message- From: Ken Nagorski [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 11:52

RE: [PHP] using cookies

2002-11-23 Thread Rich Gray
Try the system() or passthru() functions... Rich -Original Message- From: Paul Marinas [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 13:09 To: Rich Gray Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] using cookies dose anyone how to send a ping in local network thanks

RE: [PHP] Passing Variables

2002-11-23 Thread Rich Gray
Is your register_globals setting set to Off? This is the default setting in v4.2.x upwards. Rich -Original Message- From: Craig Edgmon [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 11:43 To: [EMAIL PROTECTED] Subject: [PHP] Passing Variables I am sure this question has been answered

RE: [PHP] getting mysql dump using php

2002-11-23 Thread Rich Gray
Answer is No. 2) Use cron to run the mysqldump utility instead of a php script. Let me know if you need more info. Cheers Rich -Original Message- From: See Kok Boon [mailto:[EMAIL PROTECTED]] Sent: 23 November 2002 07:35 To: PHP Subject: [PHP] getting mysql dump using php hi, can

[PHP] File upload on Win2k ...

2002-11-26 Thread Rich Gray
) ) Not Uploaded The copy() function works in that the temp file is copied to c:\test.jpg. So why is is_uploaded_file() returning false? TIA Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] File upload on Win2k ...

2002-11-26 Thread Rich Gray
Don't bother to respond people... worked out the issue - the double backslashes in the name... Cheers Rich -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED]] Sent: 26 November 2002 21:14 To: [EMAIL PROTECTED] Subject: [PHP] File upload on Win2k ... PHP v4.2.3 Win2K Sp2 Apache

RE: [PHP] Newbie : How work with parameters?

2002-11-27 Thread Rich Gray
Stephane http://www.php.net/manual/en/security.registerglobals.php http://www.php.net/manual/en/faq.php Substitute 'fr' for 'en' if your prefer it en francais Use: $_GET['id'] or $_REQUEST['id'] Ciao Rich -Original Message- From: Stéphane Génin [mailto:[EMAIL PROTECTED]] Sent: 27

RE: [PHP] Newbie Mail() Question...

2002-11-27 Thread Rich Gray
Er yea - just call the mail() function at the appropriate time in your script... http://www.php.net/manual/en/function.mail.php However IMO if you need to log this sort of information then using a database is far more appropriate than sending emails - especially on a busy site... Rich

RE: [PHP] ignoring client supplied session data

2002-11-27 Thread Rich Gray
time or delete/tamper with cookies so don't make your code reliant on the stuff stored in them... In effect it is up to you what you save and process from persistent cookies... HTH Rich -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm not worried about them using the query string for malicious

RE: [PHP] session problems again

2002-11-27 Thread Rich Gray
Jason session.cookie_lifetime set to 0 means the session cookie persists until the client browser is closed... I'm not clear if you are still having session problems now or the advice you got earlier sorted it? Rich -Original Message- From: Jason Romero [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP] Bizarreness with htmlentities() and other things

2002-11-28 Thread Rich Gray
Hi James There is a bug in PHP for the capitalisation problem http://bugs.php.net/bug.php?id=14655 If you check the link then a workaround was posted by someone. HTH Rich -Original Message- From: James Coates [mailto:[EMAIL PROTECTED]] Sent: 28 November 2002 13:11 To: [EMAIL PROTECTED

[PHP] documentation on

2003-10-01 Thread Rich Fox
Can someone point me to documentation on the operator? I am wondering if there are some quirks I don't know about. Yet I can't find it documented on the php website. THanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Reloading a specific window

2003-10-02 Thread Rich Fox
; } ... This reloads the popup window, and then I have a close button to close the popup. Then I have to refresh the browser window manually to see the updated table from the database. Can I get some advice on how to accomplish (1) and (2) above? Many thanks, Rich -- PHP General Mailing List (http://www.php.net

Re: [PHP] Reloading a specific window

2003-10-02 Thread Rich Fox
. Marek Kilimajer wrote Output from action.php: script opener.location.reload(); close(); /script Rich Fox wrote: Warning for server side purists: My php scripts use javascript to popup and close windows. So this question, although posted to a php newsgroup, has elements of javascript too

[PHP] Nested queries don't work

2003-10-15 Thread Rich Fox
); $anr = mssql_num_rows($res1); ... } This does NOT work! It seems that the 2nd query steps on the results of the first one! Can someone verify this effect? I am 99.999% sure this is what's happening. Who is the bonehead responsible for not implementing this for MS SQL Server? Thanks Rich

[PHP] Shouldn't script errors show in my browser?

2003-10-17 Thread Rich Fox
script and the browser just shows me a blank page. Is this because I am running php as a CGI module? Thanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Shouldn't script errors show in my browser?

2003-10-17 Thread Rich Fox
Yeah, that did it, thanks David Otton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 17 Oct 2003 11:29:41 -0400, you wrote: I hope this question is not too stupid! When I have an error in my script, it seems to me that the web server, or in my case the php CGI module I am

[PHP] Re: Use include function (newbie)

2003-10-17 Thread Rich Fox
But *why* does logic.php need html.php? There is no recursion issue, or endless nesting of includes, because html.php refers to logic.php as an action for a form... this does not include the logic.php code into the html.php page. Rich Karina S [EMAIL PROTECTED] wrote in message news:[EMAIL

RE: [PHP] Calling PHP functions from within javascript

2003-11-13 Thread Rich Gray
incurring a page reload ... well it is definitely possible using javascript remote scripting techniques and a hidden iframe however if the browser has javascript switched off then this won't work of course... Cheers Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] PHP's MySQL Query Length Limit? (Long SQL failing!)

2003-12-11 Thread Rich Gray
at the moment) setting in your my.ini file... HTH Cheers Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Best way to increment an integer column in mysql

2003-12-11 Thread Rich Gray
my_int_column = my_int_column + 1 where blah blah ...'); HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Uploading Files

2004-02-24 Thread Rich Gray
the manual) . use move_uploaded_file(...) rather than copy(...) HTH Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] seesions problem

2004-02-27 Thread Rich Gray
Notice: Undefined index: user_id in /home/pance/public_html/menu.php on line 13 Has anybody else come accross this problem - and how did you solve it? Pance Stojkovski are you using session_start() at start of each page that manipulates $_SESSION ? rich -- PHP General Mailing List (http

RE: [PHP] Alternatives to Flush()

2004-03-24 Thread Rich Gray
- send a request to that socket from your web page... . IPC through shared memory... . probably loads more... Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] JavaScript Enabled?

2004-03-29 Thread Rich Gray
document.write() which will be ignored by disabled clients and then use noscript/noscript tags to enclose whatever stuff is necessary for the disabled clients? Just a thought Cheers Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Array concatenation behaviour change

2004-10-08 Thread rich gray
... 4.2.3 Array ( [0] = Zero [1] = One [2] = Two ) and on my development server... 4.3.8 Array ( [1] = One [2] = Two [0] = Zero ) hth rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array concatenation behaviour change

2004-10-08 Thread rich gray
Can't you sort the array? Yes of course but that wasn't the point of my post I was trying to show that the same code produces differing results on 2 different versions of PHP ... rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Debugging Help Needed

2011-04-12 Thread Rich Shepard
the application running again? Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Debugging Help Needed

2011-04-12 Thread Rich Shepard
not found error, or how to capture output from debug_print_backtrace. Thanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Debugging Help Needed

2011-04-13 Thread Rich Shepard
as I try to invoke the application and transferring control to the error handler? There has to be something either in the index.php, or a function it's calling, that cannot find the opening display. I need to learn what's happening so I can get this application running here. Rich -- PHP General

<    1   2