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
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
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
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
.
--
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
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
().
--
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
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
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
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
://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
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
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
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
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
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
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
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
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
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
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
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
[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
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
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
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
/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
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
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
[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
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
://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
--
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
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
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
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
...
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
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
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
,}
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
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
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
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
'),
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
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
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
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
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
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
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
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
.
--
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
. 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
=(.*)/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
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
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
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
. 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
://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
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
.
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
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
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
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
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
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
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
.
--
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
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
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
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
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
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
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
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
.
--
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
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
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
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
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
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
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
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
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
() 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
701 - 800 of 871 matches
Mail list logo