[PHP] Named pair array from variable

2009-06-29 Thread Mikey Knutson
Is this even possible? I'm building a string, properly formatted, to create a named pair or associative array. The string is fine, and when I use it directly to create the array, all is well. When I try to use the var to create the array, I get an empty array (I think). Huh? Here is what I

Re: [PHP] Fastest way to get table records' number

2008-03-19 Thread Mikey
ase assuming the table has a field 'id' then i think select count(id) from some_table; -nathan If you are talking about millions of rows then the fastest way is to put a trigger on create and delete on the table in question that updates a single column in another table that is a coun

Re: [PHP] Detecting \u0000 in a string...

2008-03-19 Thread Mikey
Casey wrote: On Mon, Mar 17, 2008 at 3:56 AM, Mikey <[EMAIL PROTECTED]> wrote: Hi! I was wondering if anyone here had experienced a simliar problem to mine. I am updating an Oracle XMLType column with XML built using DOM that is populated with values from an Excel spreadsheet saved

Re: [PHP] __halt_compiler()

2008-03-17 Thread Mikey
Shawn McKenzie wrote: Daniel Brown wrote: On Sun, Mar 16, 2008 at 4:18 PM, Casey <[EMAIL PROTECTED]> wrote: Hi list! __halt_compiler(). Does anyone use it? I've used it obsessively in my past two "projects" to store data (specifically CSV) in the PHP files. These two "projects" consisted o

[PHP] Re: __halt_compiler()

2008-03-17 Thread Mikey
t is all personal taste (before the flames start) but what is the problem with opening and parsing a CSV file in your script? That way your code is more modular and a lot easier to understand for other developers. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Detecting \u0000 in a string...

2008-03-17 Thread Mikey
find the null in the string - again, no luck. So my question is whether or not anyone here has a reliable way of detcting and removing \u chars from strings? regards, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP/XML/XSLT

2007-09-13 Thread Mikey
with commenting out sections of XSLT until we get the page back. Has anyone else encountered this problem (google was reticent) and do they know of any workarounds/fixes for this? TIA, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: URLs

2007-07-12 Thread Mikey
nsion? Is this done through PHP or is this a server setting? Thanks in advance! ~Philip It is a server setting - see ModRewrite for Apache. HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: DOM support

2007-06-26 Thread Mikey
Mikey wrote: Hey! I have been looking through the docs writing test code and am going a little bit mad trying to work this out. Does anyone know where I can find a definitive list of DOM XML functions that are supported in specific versions of PHP? I write my code in Zend and it has 5.2.0

[PHP] Re: parsin XML with DOM

2007-06-26 Thread Mikey
[EMAIL PROTECTED] wrote: [snip] its type is not DomNode, but DomText. Only the 2nd child - $NODE = $NODE->nextSibling; has $NODE->tagName "channel". My question is - why is the first child after "rss" DomText? Thank you, Iv My guess is the whitespace between

[PHP] DOM support

2007-06-26 Thread Mikey
everything works as per the manual but when I try to run on our production environment (5.0.4) then things go very, very wrong. In particular there doesn't seem to be a DOMXPath object. Failing a list of methods/versions - does anyone know what I can use in lieu of a DOMXPath object? TIA,

[PHP] Re: Download tracker/counter

2007-03-23 Thread Mikey
addresses of the machines that download the files. http://uk3.php.net/manual/en/reserved.variables.php#reserved.variables.server REMOTE_ADDR is the one you need. HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to get class constants with there value?

2007-03-23 Thread Mikey
in advanced. Read the first user contributed note for this page - I think that is your answer... http://uk3.php.net/manual/en/function.get-class-vars.php HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Another SimpleXMLElement question...

2007-03-23 Thread Mikey
rsion of PHP. Does anyone know how to work around this? Can I just treat the SimpleXMLElement object as an array and append as I see fit? regards, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Remove child nodes with SimpleXMLelement

2007-03-23 Thread Mikey
Hi NG! I was wondering if anyone had any experience of removing nodes with SimpleXMLElement? I can't seem to find a corresponding method in the docs and I was wondering if I should just unset() the elements in question? Thanks! mikey -- PHP General Mailing List (http://www.php.net

Re: [PHP] Flash animation without install Flash!

2007-03-21 Thread Mikey
ureoftheweb.com/blog/2006/8/work-around-click-to-activate-and-use-this-control HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reuse PHP functions in a third-party application

2007-03-21 Thread Mikey
dules will give you an insight into how this process works. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php bar/graph scripts/library

2007-03-16 Thread Mikey
t of what you are looking for on the first page... Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP->FLASH

2007-03-15 Thread Mikey
array, so what you should try is: thePrices[]=500&thePrices[]=400&thePrices[]=350 Etc. HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Oracle XMLTYPE column truncates

2007-03-13 Thread Mikey
s we have variable metadata schema it suits our business needs very well. How could this be achieved by storing a link to the file? For what it is worth, however, images belong on a file system - storing them in a db is just asking for scalability issues a bit down the road. Mikey

[PHP] Re: looking for two remote functions

2007-03-09 Thread Mikey
Riyadh S. Alshaeiq wrote: Hello everybody, I am looking for an HTTP function for getting remote filesizes. Keeping in mind that I am NOT interested in getting the "size on disk" figure, I need the actual size of the files when downloaded to a local machine. Please let me know if there are any..

[PHP] Re: looking for two remote functions

2007-03-09 Thread Mikey
s and I am sure you will find something useful. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php, oci8 and oracle

2007-03-09 Thread Mikey
Enterprise. PS. i'm sorry for the bad english, i can't explain the problem better. Oracle is a right pain to get setup correctly. Try Zend Core: https://www.zend.com/core/oem_registration.php?access_code=OracleDB HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To u

[PHP] Re: What sripts,helpers to use for AJAX

2007-03-08 Thread Mikey
ons http://prajax.sourceforge.net/ http://sanjer.berlios.de/ yet they both doesn't seem very much used. Does anybody know these or knows better alternatives? O. Wyss Scriptaculous - you get a whole heap of other stuff for free too. http://script.aculo.us/ Mikey -- PHP General Mailing List (http://w

[PHP] Re: Oracle XMLTYPE column truncates

2007-03-08 Thread Mikey
Roberto Mansfield wrote: Mikey wrote: Roberto Mansfield wrote: Hi Mikey, OCI doesn't directly support the XMLtype so you need to convert to string (if < 4k) or clob before retrieving. Use: select xml_metadata.getClobVal() ... OR select xml_metadata.getStringVal() ... If converting

[PHP] Re: Oracle XMLTYPE column truncates

2007-03-08 Thread Mikey
Mikey wrote: Roberto Mansfield wrote: Hi Mikey, OCI doesn't directly support the XMLtype so you need to convert to string (if < 4k) or clob before retrieving. Use: select xml_metadata.getClobVal() ... OR select xml_metadata.getStringVal() ... If converting to clob, you get a clob obj

[PHP] Re: Oracle XMLTYPE column truncates

2007-03-08 Thread Mikey
Roberto Mansfield wrote: Hi Mikey, OCI doesn't directly support the XMLtype so you need to convert to string (if < 4k) or clob before retrieving. Use: select xml_metadata.getClobVal() ... OR select xml_metadata.getStringVal() ... If converting to clob, you get a clob object back an

[PHP] Re: Javascript and PHP interaction

2007-03-08 Thread Mikey
t has sent your page to the client (browser) then it's work is done. You could probably use PHP to parse the value out of the CSS file and use it that way... look in the manual for filesystem functions to open the CSS file, and check out preg_match to find your value. HTH, Mikey

[PHP] Oracle XMLTYPE column truncates

2007-03-08 Thread Mikey
ondering if anyone else on this list has had the same problem, or knows of a better way of returning long values using OCI? TIA, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to access private property?

2007-03-06 Thread Mikey
l of your private vars. http://uk.php.net/manual/en/language.oop5.overloading.php Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Embeding HTMl into a XML doc

2007-02-22 Thread Mikey
Dwain Crackel wrote: The $dom->save(); command HTML encodes the text, as such I can't save html inside a XML node. Is there a way around this, as I would I like to do so? Thank you Dwain http://www.w3schools.com/xml/xml_cdata.asp should do the trick for you Mikey -- PHP General

[PHP] Re: array_pop() with key-value pair ???

2007-02-16 Thread Mikey
I guess you have tried foreach? foreach ($array as $key => $value) { ... } Mikey Eli wrote: More over.. PHP seems to be quiet slow when dealing with array_shift() array_unshift(), but it is much faster with array_pop() array_push(). I am not familiar with the PHP internals, but

Re: [PHP]PHP Syntax Notation

2005-09-27 Thread Mikey
the CSite class - you will need to look in the defination of that class to find out what it does, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] __FILE__ and __LINE__ of calling scripts?

2005-09-27 Thread Mikey
line number into the query function manually? Thanks Thomas SPIRAL EYE STUDIOS P.O. Box 37907, Faerie Glen, 0043 Tel: +27 12 362 3486 Fax: +27 12 362 3493 Mobile: +27 82 442 9228 Email: [EMAIL PROTECTED] Web: www.spiraleye.co.za Have you tried looking up debug_backtrace() in the manu

Re: [PHP] cgi chmod problem

2005-09-25 Thread Mikey
it. Linux php3.9.11 virtual host Anyone have a suggestion. My guess would be that your webserver isn't running as the same user as your shell account - for details on how to fix this, please have go at STFA, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cache/Form Problem

2005-09-25 Thread Mikey
httpd-2.0.46-44 Regards & thanks in advance Peter Store the form information is session vars, and pre-fill the forms with those session vars when the page loads. e.g: HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] security/sql issues with php

2005-09-21 Thread Mikey
ing 0 and then running is_int() usually works. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Suggestions for class design

2005-09-19 Thread Mikey
ects and works very well. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bowscap ini

2005-09-19 Thread Mikey
John Nichel wrote: Mikey wrote: http://uk.php.net/manual/en/function.get-browser.php How about that. I've been using php since late '98, early '99. Messing around on this list since '99, and _did not_ know about that function. Ah now, don't be saying things

Re: [PHP] bowscap ini

2005-09-19 Thread Mikey
: http://uk.php.net/manual/en/function.get-browser.php Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] header, location: mailto abd browsers

2005-09-07 Thread Mikey
he resource. The field value consists of a single absolute URI. Location = "Location" ":" absoluteURI Your script doesn't appear to be trying to do a re-direct, but rather open a client side e-mail - if you want to do this, then you will need to use JavaScr

Re: [PHP] debugging dl()

2005-09-07 Thread Mikey
been compiled against a prevous version of PHP - you will either need them to send you the source to compile against your version of PHP or get them to do it for you, or run it against the correct version of PHP. HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] php/mysql web question

2005-09-06 Thread Mikey
Mikey wrote: bruce wrote: hi... if an app has a webpage that has to interface/display data from a mysql db, does the app have to essentially do a new db_connection for each time that a user accesses the page during the session. as far as i can tell, it does. in other words, the page

Re: [PHP] php/mysql web question

2005-09-06 Thread Mikey
persistent connection - mysql_pconnect() - IIRC HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] howto send a whole smarty page to a printer

2005-09-05 Thread Mikey
g as a browser is client side and PHP cannot change what happens to the code once it has been sent) then you can use html2ps to render and print a page. HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session cookies

2005-09-01 Thread Mikey
ter way to redirect users for many reasons[1] (like not breaking the back button). [1] http://www.w3.org/QA/Tips/reback Because if you just re-direct to a new location then the cookie that you have also set in the headers will not reach the client. Mikey -- PHP General Mailing List

Re: [PHP] CookieMonster

2005-09-01 Thread Mikey
.php If you do that then the cookie will expire as soon as the browser session has been closed - I dont think that is what the OP wanted. As per the previous post, all you can really do is set it for some date far in the future. Mikey -- The revolution will not be sent as an email att

Re: [PHP] AJAX & PHP

2005-08-03 Thread Mikey
variables and have a graph generated without a full page reload on the same page... kind of an interactive graphing web tool. any examples of this sort are appreciated :) g On Aug 3, 2005, at 9:36 AM, Mikey wrote: Graham Anderson wrote: not a whole lot of info on the subject for working with

Re: [PHP] AJAX & PHP

2005-08-03 Thread Mikey
modification to code. I have been using this technique for years to make server calls without page refreshing. (Well, that or an invisible frame/iframe/layer) HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Howto connect to the internet using php

2005-07-21 Thread Mikey
://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/rasdial.mspx HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql problem- I know it isn't strictly php

2005-07-20 Thread Mikey
and then export the table structure - I have found this to be very reliable in the past. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Mikey
. Thanks for the help. babu - Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail You could put them in session vars - http://uk.php.net/manual/en/ref.session.php Mikey -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread Mikey
ahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail Javascript: document.location = "new_url.html"; HTML: http://site.com/new_page.html";> HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Before I pull anymore hair out.. Is anyone Using..

2005-07-20 Thread Mikey
;t get a stable platform up this week. =( Thx CC I guess you have tried reading the walkthrough on Oracle? http://www.oracle.com/technology/tech/php/index.html HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] My Project

2005-07-19 Thread Mikey
sponse to your questions. Anyway, dont want to sound like I am having a go, but this list really is for technical problems with PHP, not a replacement for the manual. regards, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread Mikey
$_GET['var'])) ? $_GET['var'] : null; HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] My Project

2005-07-19 Thread Mikey
y = $money - 10; I wish you the best of luck with your project :^) Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tracking a mobile phone

2005-07-18 Thread Mikey
. Is not much info, I kow, but it might be a starting place for you... Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP from CLI with SAPI

2005-07-18 Thread Mikey
by Apache, barring the session management. If you really want to write your own http server then maybe take a look at the Apache source code. It will either give you some good pointers or make you realise what a huge task you are undertaking... Mikey -- PHP General Mailing List (htt

Re: [PHP] re-order a sql result

2005-07-18 Thread Mikey
Mikey wrote: Ross wrote: I have a query $query = "SELECT * FROM sheet1 WHERE '$filter' LIKE '$search_field%'" This prints out a table while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)){ // this just fills the empty cells if ($row['fname&#x

Re: [PHP] re-order a sql result

2005-07-18 Thread Mikey
use to re-order the results alphabetically. So when I click on surname it will re-reorder them aphebetically (z-a) and when I click on it again it will reverse it (a-z) Firstname Surname Organisation hope this is clear. Ross Well, your question is a little vague, but to order the

Re: [PHP] Need help with PHP / MySQL connect problem

2005-07-17 Thread Mikey
Return Values Returns a MySQL link identifier on success, or *FALSE* on failure. So if your connection is failing then it will not print anything to screen, try: echo (mysql_connect ('localhost','calendar','pass1234')) ? "connected" : mysql_error(); HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Big file encryption

2005-07-14 Thread Mikey
ry limit in your php.ini file, or with ini_set() if you only want to allow this for your one script... hth, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 404 error - DLL files needed ??

2005-07-13 Thread Mikey
installation instructions, that dll needs to be in your system path - system32 is the best place for it. hth, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] zlib.output_compression

2005-07-13 Thread Mikey
hat the bug report digs up, though -- can we have a link? Jasper Just my 2 cents worth but have you tried setting it to 1 rather than true? I know that that is the format you need to use in .htaccess files, maybe it is the same for ini_set? HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] max_file_size

2005-07-12 Thread Mikey
l/en/features.file-upload.errors.php) you can see that these can only be generated on the server, and therefore *after* the file has been posted. I think it is your browser that you need to be investigating... HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] curl

2005-06-07 Thread Mikey
some searches on google but I guess that I have not used the correct key words because I have not found any hints at how to logon to a site with curl. IIRC phpbuilder.net has just done a tutorial about it HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] autocomplete a field

2005-06-03 Thread Mikey
Olga Urban wrote: Hi, I am new to php and I would like to find out if there's some kind of a function that would autocomplete the word/value when the user is trying to fill out a field in a form. Thank you. Olga That is a client side scripting issue... try javascript... HTH,

Re: [PHP] Copy to network share

2005-06-01 Thread Mikey
George Pitcher wrote: I never managed to get this working with IIS. I could with Apache (win) though, after making sure that Apache was logged in as the administrator. George Thus proving that this is a permissions issue, not a PHP issue! Mikey -- PHP General Mailing List (http

Re: [PHP] Copy to network share

2005-06-01 Thread Mikey
got the right permissions to access the drive that you have mapped? HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and USB Devices

2005-05-31 Thread Mikey
to do it... The method you choose willl *have* to live on the client side, and unless you are planning to install PHP on all of your clients, then your solution will *have* to be written in another language. regards, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Re: How to make a script sleep for 5 seconds?

2005-05-31 Thread Mikey
Robert Cummings wrote: Mr. Lynch, either intentionally or inadvertently, you have succeeded in making me spray water out my nose as I happened to be drinking a glass of it when I read your reply :B Or: water|nose>keyboard LOL, Mikey -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Code Check

2005-05-30 Thread Mikey
janbro Have you checked that the two previous function calls are returning as expected? HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Dummy question about knowing marked checkboxes

2005-05-30 Thread Mikey
e checked ? Thanking you in advance. Warm Regards, Mário Gamito Bar Would result in $_REQUEST['foo'] being a) set and b) hold the value of "bar". regards, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OT but worth a shot: Informix Client Libraries

2005-05-25 Thread Mikey
or knew of a place to download the client libraries so that I can have a bash myself? TIA, Mikey -- The revolution will not be sent as an e-mail attachment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] str_replace on words?

2005-05-11 Thread Mikey
ular expression as these can recognise word boundaries when matching (preg_match, preg_replace, etc). I think this solution will apply to your other post as well. HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySql injections....

2005-05-11 Thread Mikey
> Hi, > This is not the proper list to put this question but i hope > you can help me. > Does anyone know a good tutorial about mysql injections? > > Thanks a lot for your help http://phpsec.org HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubs

RE: [PHP] Accessible HTML - OT

2005-05-10 Thread Mikey
Thanks to everybody for their comments, I now have more than enough ammo to justify our decisions. Regards, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] text with $

2005-05-09 Thread Mikey
var='this is $$$ test'; Or, if you still want to use interpolation, use the backslash to escape the $: $str = "\$foo = $bar"; HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Accessible HTML - OT

2005-05-09 Thread Mikey
, I have just had a look around w3 and have found some inferences that support my view but nothing that states clearly in either direction. Does anyone on this list have a definitive answer for this one? TIA, Mikey -- The revolution will not be sent as an e-mail attachment. -- PHP General

RE: [PHP] Code stoped working after upgrading from 4 to 5

2005-04-28 Thread Mikey
;)) >$form_ok = 0; > > > Warm Regards, You have answered your own question really, haven't you - if you have register globals off then you are not going to get globally registered variables - it really is that simple. HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Preventing automated account creation

2005-04-06 Thread Mikey
ing it in a GET > variable is more than stupid. http://phpsec.org/articles/2005/text-captcha.html is a good primer on how to use CAPTCHA effectively HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] pass variable from vbscript to php

2005-04-04 Thread Mikey
and get logins for anybody that uses your system. Maybe a better solution in this case would be to associate a user account with a network login when the account is created and store this information in your user database. HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

FW: [PHP] mysql error

2005-04-01 Thread Mikey
Oooops! My mistake, I had a typo in my config file - it connects just fine either way... > -Original Message- > From: Mikey [mailto:[EMAIL PROTECTED] > Sent: 01 April 2005 13:16 > To: 'php-general@lists.php.net' > Subject: RE: [PHP] mysql error > >

RE: [PHP] mysql error

2005-04-01 Thread Mikey
to not liking my login details. Have there been any changes made to your DNS service of late? Or provider? Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re[6]: [PHP] asking comment

2005-03-30 Thread Mikey
How about a filename based upon a user id and the time the file was uploaded. Unless you have multiple instances of the same user then it will not be possible for the same user to upload a file at exactly the same time as himself. Just a thought... Mikey > -Original Message- >

RE: [PHP] php command

2005-03-23 Thread Mikey
I think what you need to do is look at the sockets section of the manual. Regards, Mikey > -Original Message- > From: D A GERM [mailto:[EMAIL PROTECTED] > Sent: 23 March 2005 14:46 > To: php-general@lists.php.net > Subject: [PHP] php command > > is there a comma

RE: [PHP] Mod Rewrite help

2005-03-21 Thread Mikey
> RewriteEngine on > RewriteRule /^(.+).htm$ /query.php?q=$1 AFAIK you should have that space at the end of your regex after the $ HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Ensure only one instance of a script is running

2005-03-16 Thread Mikey
g the output from `ps -ax` and looping thourhgthe results to see if your script is being run? HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: MIME Types [fixed]

2005-03-16 Thread Mikey
nd I found that the answer was stupidly simple. The correct header to send is "text/plain" - doh! Regards, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MIME Types

2005-03-16 Thread Mikey
our. TIA, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] XHTML and dynamic javascripts

2005-03-13 Thread Mikey
> Now down to the PHP specific question. Is there a way to > generate an externally linked javascript file? The > javascript functions in question are created from data > sitting in a MySQL data, so I can't hard code the javascript. Yes, just change the .js extension to

RE: [PHP] How can I send a gif picture to the mobile client via php?

2005-03-01 Thread Mikey
> Dear phpers, > I'm using php 4.2.2 and gd version 1.8 which seems don't > support gif pictures. > However, I want to send a single gif picture to the client side. > How can I do it? > > Any help would be appreciated. A single gif - that you have already made? Or, if you are using a script t

RE: [PHP] Inline Frame and php

2005-03-01 Thread Mikey
> > Is there a way to "leave" the inline frame? You could get your script to write some JavaScript instead of the header along the lines of: window.parent.document.location = "mypage.php"; (This is not tested, and YMMV...) HTH, Mikey -- PHP General Mailing Lis

RE: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-03-01 Thread Mikey
> The difficulty is trying to find a solution that would limit > access and do all the fancy stuff that we had discussed, > without interfering with the pre-existing authentication > system. How about taking the auth status of a user from the headers and then performing additional verification

RE: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-03-01 Thread Mikey
s I say, have a look at phpsec.org - the article on sessions is what you want, and it will explain why doing something like that will not work as expected. Some proxies assign new IPs for every request from a single client (AOL in particular). Do you really want to exclude a large proportion of the

RE: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-03-01 Thread Mikey
st place. I'm not trying to invite more flaming here - there have been some very valid points made, I just hope this thread can die a quick and silent death not that the technical issue has been addressed. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Upgrade question

2005-02-27 Thread Mikey
t; posting with anonymous email addresses. The *INSTANT* I > receive my first piece of spam to this address, I'm history. That will be your loss. HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] HOWTO read PHP source code into a textarea

2005-02-25 Thread Mikey
h allows for rendering of HTML in a textarea but it only works on IE: http://www.interactivetools.com/ but again, this would require the same kind of modification as above. Another solution would be to use an tag... HTH, Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] FOPEN

2005-02-17 Thread Mikey
http://uk.php.net/header should help you. BTW, you should address your replies to the list and not to individual ppl. Mikey > -Original Message- > From: Diana Castillo [mailto:[EMAIL PROTECTED] > Sent: 17 February 2005 12:36 > To: [EMAIL PROTECTED] > Subject: Re: [PHP]

  1   2   >