Re: [PHP] Compilers

2007-10-30 Thread Richard Heyes
eaccelerator. It doesn't spit out compiled php code, but it does have the same effect by caching the generated byte-code. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing

Re: [PHP] register globals not working

2007-10-25 Thread Richard Heyes
that on, restart Apache, and then try. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail from

2007-10-25 Thread Richard Heyes
on line 4 And if instead of using the php.ini directive you use the fourth argument to mail()? Eg: ?php mail([EMAIL PROTECTED], TEST MAIL, TESTING MAIL, '[EMAIL PROTECTED]'); ? -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge

Re: [PHP] mail from

2007-10-25 Thread Richard Heyes
Richard Heyes wrote: in my php.ini, I have this set sendmail_from = [EMAIL PROTECTED] yet when I do this command :([EMAIL PROTECTED],TEST MAIL,TESTING MAIL); I get this message Warning: mail() [function.mail]: sendmail_from not set in php.ini or custom From: header missing in C:\Inetpub

Re: [PHP] how to restart php

2007-10-25 Thread Richard Heyes
. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-25 Thread Richard Heyes
Fatal error: Maximum function nesting level of '100' reached, aborting! in /home/Projekte/spectral/modules/xml_mm/classes/xml_mm.class.php on line 118 It seems pretty self explanatory. Do you have a lot of recursion? -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk

Re: [PHP] Close a session knowing it's ID (not the current session)

2007-10-24 Thread Richard Heyes
(). -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about time...

2007-10-24 Thread Richard Heyes
if (date('m') == 11) { echo 'img src=turkey.png /'; } ? -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Re: window.open() and search engines

2007-10-23 Thread Richard Heyes
Freyjkell wrote: Richard Heyes wrote: Can anyone say for sure whether window.open() links get spidered by search engines? Not This Group Not what group? -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost

Re: [PHP] window.open() and search engines

2007-10-23 Thread Richard Heyes
If you want search engines to pick up your link then you can always use noscript. :) Interesting. I hadn't thought of that. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General

Re: [PHP] Php generated html email

2007-10-23 Thread Richard Heyes
://www.phpguru.org/static/htmlMimeMail5.html -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] window.open() and search engines

2007-10-23 Thread Richard Heyes
Can anyone say for sure whether window.open() links get spidered by search engines? Thanks. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net

Re: [PHP] Unsetting a header

2007-10-22 Thread Richard Heyes
the newer copy. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unsetting a header

2007-10-22 Thread Richard Heyes
I'm well-aware of what the headers are for, but you can construct expiry headers that match the last-modified header. If I do that the Expiry: header will be in the past and the page will be considered expired. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk

Re: [PHP] Unsetting a header

2007-10-22 Thread Richard Heyes
it is to edit the Apache configuration to stop it putting the headers in in the first place. Why can't you do that? I could. I just don't know how to unset a header. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost

Re: [PHP] Unsetting a header

2007-10-22 Thread Richard Heyes
FWIW, I found what was setting the cache headers - sessions. I may be able to use session_cache_limiter(). Not Sure. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing

Re: [PHP] Unsetting a header

2007-10-22 Thread Richard Heyes
Richard Heyes wrote: FWIW, I found what was setting the cache headers - sessions. I may be able to use session_cache_limiter(). Not Sure. Further, I found this to be what I needed: session_cache_limiter('private_no_expire'); Cheers. -- Richard Heyes +44 (0)800 0213 172 http

Re: [PHP] Re: Unsetting a header

2007-10-22 Thread Richard Heyes
Freyjkell wrote: D Richard Heyes wrote: Does anyone know of a way to unset a header? I have an Expires: header that I believe Apache is setting, and I don't want it. Thanks. Do you really need to remove this header? I do. -- Richard Heyes +44 (0)800 0213 172 http

Re: [PHP] Re: newbie questions

2007-10-21 Thread Richard Heyes
only after every 100 requests. Not having read the rest of the thread, you could call exit just after the redirect header is sent, eg: ?php header('Location: http://www.yahoo.com'); exit; ? Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Re: newbie questions

2007-10-21 Thread Richard Heyes
want to look at register_shutdown_function(). Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unsetting a header

2007-10-21 Thread Richard Heyes
Does anyone know of a way to unset a header? I have an Expires: header that I believe Apache is setting, and I don't want it. Thanks. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP

Re: [PHP] Unsetting a header

2007-10-21 Thread Richard Heyes
too long, Longer than the Last-Modified: header would allow. 3. Setting the Expires: header to garbage, eg: Expires: none causes no caching to occur at all. Let me reiterate, I want this page to get cached, but not based on an Expires: header. Rather a Last-Modified header. -- Richard

Re: [PHP] Unsetting a header

2007-10-21 Thread Richard Heyes
[EMAIL PROTECTED] wrote: Try this never gives me a problem. I use it to keep proxy servers from caching. But I want the page to be cached... -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support

Re: [PHP] Unsetting a header

2007-10-21 Thread Richard Heyes
Have you tried setting the value to FALSE, NULL, or something else? Yes, nada I'm afraid. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net

Re: [PHP] Rename does not work

2007-10-19 Thread Richard Heyes
different platforms for developing and your live version? Mistake number one. As for the rename issue, first guess is permissions. As in, you don't have them. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online

Re: [PHP] How to replace define in a require file with mysql?

2007-10-17 Thread Richard Heyes
defined constant. Except changing the line in your required file... -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Security Question

2007-10-17 Thread Richard Heyes
/directory to 700 and change the owner to that of the webserver (presumably the script is being run via the webserver). This has the drawback that anything run from the webserver will have write access to the files. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk

Re: [PHP] Screenshot from web page

2007-10-16 Thread Richard Heyes
down Alt as well to get just the active window. This will put the screenshot on to the clipboard, so you'll then need to paste it into paint or other such graphics program (PSP, Photoshop) after which you'll then be able to save it to a file. -- Richard Heyes +44 (0)800 0213 172 http

Re: [PHP] Parsing Strings

2007-10-15 Thread Richard Heyes
Philip Thompson wrote: ... ?php $str = 'thisIsAStringIHave'; echo ucfirst(preg_replace('/([A-Z])/', ' $1', $str)); ? HTH -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP

Re: [PHP] preg_match_all Help

2007-10-12 Thread Richard Heyes
[EMAIL PROTECTED] wrote: ... It would help to see the input text and to know exactly what you're trying to match. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing

Re: [PHP] Structure of maintainable websites

2007-10-09 Thread Richard Heyes
with needlessly reducing performance. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to format CLI tabular data?

2007-10-09 Thread Richard Heyes
://www.usenix.org/publications/perl/perl08.html Does PHP have any tools like this? The PEAR class Console_Table will do this for you. I'd prefer not to pull in some PEAR package or other bloat PEAR does not automatically mean bloat. It does however automatically mean less work for you. -- Richard

[Fwd: Re: [PHP] Bind function parameters with create_function ('currying')]

2007-09-05 Thread Richard Heyes
-- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ---BeginMessage--- Of course, my apologies. I've simplified it from the actual code and also removed the string parameter as the object one

Re: [PHP] Bind function parameters with create_function ('currying')

2007-09-04 Thread Richard Heyes
a class with the one function, but that seems a wee bit messy to me. It would be helpful if you could post a bare-bones example. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General

Re: [PHP] Generating foldout menus in php

2007-09-03 Thread Richard Heyes
the second-level and subsequent items on the fly but not the top-level items. Is there a way to use css or dhtml or something else (maybe something in javascript that I missed) to do this? Is this: http://www.phpguru.org/static/dynContext.example.html what you mean? -- Richard Heyes +44 (0)800 0213 172

Re: [PHP] Re: Generating foldout menus in php

2007-09-03 Thread Richard Heyes
with FF2 on Linux. Perhaps some extension is getting in the way? Really? That surprises me since the layer it uses is (or was) IE only. I guess FF2 supports it. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost

Re: [PHP] Re: Generating foldout menus in php

2007-09-03 Thread Richard Heyes
... so it might be WebDeveloper or the AdBlock plus, I don't know... Wow, I've (now) tried it mine (1.5.13) and it seems to work flawlessly. Shocking. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online

Re: [PHP] what is my dns ip address

2007-09-02 Thread Richard Heyes
by DHCP how will they be in resolv.conf? -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what is my dns ip address

2007-09-02 Thread Richard Heyes
Stut wrote: Richard Heyes wrote: Or read the contents of /etc/resolv.conf Faster for static DNS servers, but if you're using DHCP assigned servers, they aren't likely to be in there. Yes they are. The DNS resolver has just one place to look, and that's /etc/resolv.conf. The DNS resolver

Re: [PHP] regular expression question

2007-09-01 Thread Richard Heyes
,} And this will match one or more subdomains: ([-a-z0-9]+\.)+ -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] what is my dns ip address

2007-09-01 Thread Richard Heyes
Olav Mørkrid wrote: is there a function in php that will return the ip address of the dns server on the system? eg. $dns_ip = get_dns_ip_address(); Don't know of a specific command that returns them, but you could parse the output of nslookup and cache the results. -- Richard Heyes +44

Re: [PHP] what is my dns ip address

2007-09-01 Thread Richard Heyes
Or read the contents of /etc/resolv.conf Faster for static DNS servers, but if you're using DHCP assigned servers, they aren't likely to be in there. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost

Re: [PHP] [EMAIL PROTECTED]: Re: [PHP] what is my dns ip address]

2007-09-01 Thread Richard Heyes
Robert Degen wrote: Or read the contents of /etc/resolv.conf I'm not familiar with, but does any MS product have any comparable file? There is a hosts file, but no resolv.conf or equivalent AFAIK. -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-29 Thread Richard Heyes
'), ini_get('session.cookie_domain')); $_SESSION = array(); will usually suffice. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net

Re: [PHP] Round

2007-08-29 Thread Richard Heyes
Koen van den Boogaart wrote: Is it expected behaviour that ?php var_dump( round(-0.26) ); ? outputs float(-0) Yes. You (probably) want: ?php var_dump(round(-0.26, 1)); ? http://uk.php.net/manual/en/function.round.php -- Richard Heyes +44 (0)844 801 1072 http

Re: [PHP] Internet Explorer Caching

2007-08-29 Thread Richard Heyes
to Windows Explorer its giving it 3 hours to expire. Are you sure? By default PHP pages/scripts don't send any caching headers and hence don't get cached. You can check this using: http://www.fiddlertool.com -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Round

2007-08-29 Thread Richard Heyes
Koen van den Boogaart wrote: No, I want it to go to float(0), so minus the minus. -0 doesn't exist in math, as far as I know. Probably a precision thing. Ok, then try abs() first then. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk

Re: [PHP] Round

2007-08-29 Thread Richard Heyes
What if I expected -1 for the last answer? Then only use abs() if the result from round() is zero; -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http

Re: [PHP] phpinfo problem

2007-08-13 Thread Richard Heyes
The default value for short_open_tags was flipped a while back. Might I suggest you read the changelog next time you upgrade to a newer version - it tells you important stuff like that. And, FWIW, never use short tags. Always use ?php -- Richard Heyes +44 (0)844 801 1072 http

Re: [PHP] phpinfo problem

2007-08-13 Thread Richard Heyes
it is the quicker fix. ^ on ? -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] magic quotes

2007-08-11 Thread Richard Heyes
this line in the .htaccess file it didn't work either: php_flag magic_quotes_gpc off... Is there anyway possible? I don't need it now but it'd be nice to know for the future dev. http://www.phpguru.org/article.php?ne_id=58 -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk

Re: [PHP] preg_match_all to match img tags

2007-08-11 Thread Richard Heyes
. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] preg_match_all to match img tags

2007-08-11 Thread Richard Heyes
Richard Heyes wrote: How can i match an image tag correctly so it does not cause any issues with how the user adds the image. preg_match_all('/img[^]*/Ui'); Off the top of my head. This wouldn't allow for using the right angle bracket in the img tag, but that's almost never going to happen

Re: [PHP] preg_match_all to match img tags

2007-08-11 Thread Richard Heyes
img src=image.jpg Your script doesn't catch above ;) So don't write HTML like that. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net

Re: [PHP] preg_match_all to match img tags

2007-08-11 Thread Richard Heyes
img src=image.jpg Your script doesn't catch above ;) So don't write HTML like that. Depends where the HTML is coming from, it might be user input Ok, add \s* after the initial angle bracket. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Running a server process

2007-08-10 Thread Richard Heyes
could do with sockets. Or you could use a file. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Hosting cost

2007-08-10 Thread Richard Heyes
a days worth of update work I not interested in actual costs, but more commercial worth. Thanks. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- Richard Heyes +44 (0)844 801 1072 http

Re: [PHP] Forwarding $_POST[]...

2007-08-09 Thread Richard Heyes
session_start(); $_SESSION['post_data'] = $_POST; ? -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Heyes
Either really. Both work. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Adding to time having a timestamp

2007-08-06 Thread Richard Heyes
How can I add a day to a date if I have a timestamp. Here is my line: list($d,$m,$y,$dayname,$monthname,$am)=explode(' ',date('d m Y D M a', $timestamp)); Simply add 86400 (number of seconds in a day). -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] passthru

2007-08-06 Thread Richard Heyes
characters (Can't remember how exactly, but everything you need is in the manual - you will want to strip everything from ASCII 1 - ASCII 32. IIRC. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support

Re: [PHP] Re: passthru

2007-08-06 Thread Richard Heyes
include them happily in a document and it is still syntactically correct! I believe you want the nl2br() function instead here. Ah yes. My bad. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support

Re: [PHP] Problem with php mail

2007-08-05 Thread Richard Heyes
of a message being junk. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About PHP/MYSQL Pagination

2007-08-04 Thread Richard Heyes
to whatever by using for loop, but the problem comes in when I click next from page 5, it does not get re-listed starting from page 6. The PEAR Pager package might be able to help you. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software

Re: [PHP] php SHOW

2007-08-03 Thread Richard Heyes
Is there a way to output my data and tables using a php version of SHOW? Doesn't have to be pretty HTML just output to screen If you're referring to PHP data types (arrays, strings, ints etc) you could use either var_dump() or print_r(). -- Richard Heyes +44 (0)844 801 1072 http

Re: [PHP] output the schema

2007-08-03 Thread Richard Heyes
I reword my last post. I want to take the result and generate the field info to the screen e.g Well, if you're using MySQL you could use either DESC table; or SHOW CREATE But you can't really generate the schema from a result set. -- Richard Heyes +44 (0)844 801 1072 http

Re: [PHP] Which PHP-Editor to use?

2007-08-02 Thread Richard Heyes
would hear from your experience which one would you recommend me to switch to? I used to use Homesite, but it was a buggy POS. Try Scite at http://www.scintilla.org. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut

Re: [PHP] $_POST- Vars - Back-Button

2007-08-01 Thread Richard Heyes
. Stuff the existing POST data into the session and have your results page use that before looking to the POST data. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List

Re: [PHP] Changing URLs from Relative to Absolute

2007-07-30 Thread Richard Heyes
=(.*)/Uis -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Authentication

2007-07-28 Thread Richard Heyes
within this family that would work? If you're running your PHP script on IIS, maybe. Use print_r(): ?php print_r($_SERVER); ? -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General

Re: [PHP] HTML Email Composing Problem.

2007-07-27 Thread Richard Heyes
thing for you: http://www.phpguru.org/static/htmlMimeMail5.html -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Is it possible to stop an image from being cached?

2007-07-27 Thread Richard Heyes
Dan wrote: ... You should also look at this: http://www.mnot.net/cache_docs/ Very informative. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http

Re: [PHP] Re: appendChild(), removeChild()

2007-07-26 Thread Richard Heyes
. Using AJAX you can have it call stuff on your server, but mainly it is client side only. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net

Re: [PHP] Hide the real URL

2007-07-26 Thread Richard Heyes
://www.mnot.net/cache_docs/ or use Fiddler to // find out what headers are being sent to your browser: // http://www.fiddlertool.com header('Content-Type: image/jpeg'); passthru($file); } ? -- Richard Heyes +44 (0)844 801 1072

Re: [PHP] appendChild(), removeChild()

2007-07-26 Thread Richard Heyes
Man-wai Chang wrote: If the child refers to a file, is it client-side only? I meant it's nothing like AJAX, right? Since JS runs on the client, yes. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online

Re: [PHP] magic quotes

2007-07-17 Thread Richard Heyes
. Failing that you could do it in the script with your stripslashes_array() function, but you should only do it when you need to. eg. There's no point using it on $_COOKIE if you're not using $_COOKIE. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] PHP mail with attachment

2007-07-16 Thread Richard Heyes
Use something like http://phpmailer.sf.net/ which handles everything for you already :) Or: http://www.phpguru.org/static/htmlMimeMail5.html and http://www.phpguru.org/downloads/html.mime.mail/ -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] html emails and plain text dectection

2007-07-16 Thread Richard Heyes
Ross wrote: I am using the code to send an html email (phpmailer class) now I need to somehow determine if the recipient uses text only email and change email to plain. Is this possible? No. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Richard Heyes
Every single one of us has been guilty of it at some time or another You can't make that assumption. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http

Re: [PHP] Re: Pirate PHP books online?

2007-07-16 Thread Richard Heyes
Tom Ray [Lists] wrote: Richard Heyes wrote: Every single one of us has been guilty of it at some time or another You can't make that assumption. Sure he can. Assumptions are like opinions which are like ...well you know what I'm getting at...we all have them. And if someone can honestly

Re: [PHP] preg_replace() help

2007-07-14 Thread Richard Heyes
What am I doing wrong? Using regular expressions when you don't need to: $txt = str_replace(' ', 'nbsp;', substr($txt, strpos($txt, --))); Might be a few typos in there. And I may have mixed up the args. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge

Re: [PHP] URLs

2007-07-12 Thread Richard Heyes
on phpguru.org to make static look like a directory. It's actually a PHP file that shows the correct template based on the URL. Eg: http://www.phpguru.org/static/positioning.html -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General

Re: [PHP] Creating 'Next' 'Previous' for PHP Photo Gallery

2007-07-10 Thread Richard Heyes
. -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: how PHP is batter?

2007-07-03 Thread Richard Heyes
that in English :) ? -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] calling parent class method from the outside

2007-07-02 Thread Richard Heyes
exactly, but you could try this: class A { public function foo () { // ... } } class B { public parent; // Constructor public function __construct () { $this-parent = new A(); } } // And then... $b = new B(); $b-parent-foo(); -- Richard Heyes +44

Re: [PHP] shuffle or mt_rand

2007-06-29 Thread Richard Heyes
better to use mt_rand(). Well they do different things - shuffle() randomises an array, whereas mt_rand() gives you a random number. If you want to randomise an array, use shuffle(). If you want a random number, use mt_rand(). -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk

Re: [PHP] Database administration framework

2007-06-26 Thread Richard Heyes
for editing the tables, though it's not phpMyAdmin; you can't administer the database. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generate an etag header that apache can subsequently use, how?

2007-06-23 Thread Richard Heyes
change 7. Don't use off the shelf components when you don't need to. PEAR::DB is one example - I was using this but then mimicked the API saving 50k of code. Quite significant if you're not using an accelerator. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Richard Heyes
Guus Ellenkamp wrote: What encoding should a PHP file itself have (so not it's output setting). Plain ASCII AFAIK. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Encoding of PHP files

2007-06-22 Thread Richard Heyes
Jochem Maas wrote: Richard Heyes wrote: Guus Ellenkamp wrote: What encoding should a PHP file itself have (so not it's output setting). Plain ASCII AFAIK. huh? I generally save my files in the same encoding as the output encoding of the site, this is so that literal strings are output

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Richard Heyes
. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Richard Heyes
use exec() instead of shell_exec() Why? -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Richard Heyes
hmm I thought the OP's question was about how can he get output/return value from the external program (the file name for example) - maybe it was my misunderstanding In which case I would still use shell_exec(): ?php $output = shell_exec('ls -l'); ? -- Richard Heyes 0844 801 1072 http

Re: [PHP] Is There a Function to yada .... /yada to [yada] ..... [/yada]?

2007-06-21 Thread Richard Heyes
Stephen wrote: I can't find one. Thanks Stephen Ahh yes, you want the yada() function. Alternatively if you're after something to turn yada into [yada] you could try the regex functions (PCRE). -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base

Re: [PHP] Threading

2007-06-20 Thread Richard Heyes
that would work on most OS's without any major changes. You could look iinto using ticks or forking new processes using pcntl, but that's the limit. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http

Re: [PHP] Date

2007-06-19 Thread Richard Heyes
Larry Garfield wrote: (Note: strtotime() is probably not the fastest to execute way of doing it, but it's the fastest to write. Choose wisely.) Is it? How about: $timestamp = strtotime($expiry_date) + (86400 * 7); -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge

Re: [PHP] Keeping sessions

2007-06-19 Thread Richard Heyes
or, if need be, a dedicated session server. I wouldn't imagine you'd need that though unless your site's really busy. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Keeping sessions

2007-06-19 Thread Richard Heyes
What do you mean by session server? I server dedicated (or it can also act as a web server, or the main web server) to storing sessions. How are you accessing the session data on another server? Usually by way of a database. -- Richard Heyes 0844 801 1072 http

Re: [PHP] Date

2007-06-19 Thread Richard Heyes
DAY) where user ='$user') Seriously, no. -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pack vs. serialize

2007-06-18 Thread Richard Heyes
() returns a text representation of a PHP sitructure, (for objects the class must be loaded before you unserialize it). -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

<    3   4   5   6   7   8   9   >