when I'm debugging I like to be as concise as possible.
Concise? Really?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation, no maintenance, new features automatic and free
** New Helpdesk demo now
* methods) which speed up
development time greatly.
3. I thought of others, but then subsequently forgot them. Doh.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation, no maintenance, new features automatic and free
Larry Garfield wrote:
http://www.php.net/pdo
All the cool kids are doing it.
Except that converting to converting PDO is, undoubtedly, far more work
and will entail far more gotchas than the original poster wanted
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base
Jochem Maas wrote:
Larry Garfield schreef:
http://www.php.net/pdo
All the cool kids are doing it.
not true - some of them use firebird ;-)
Fire - what? :-)
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation
that they
have in the process of making money.
2. Reverse engineering takes time, and therefore diverts their attention
away from the process of making money.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation
Greg Donald wrote:
On 2/6/08, Richard Heyes [EMAIL PROTECTED] wrote:
There's the Zend Encoder at www.zend.com. Though it may be called
something else now.
Pointless.
http://www.phprecovery.com/
Pointless? I think it is exactly the answer to the original persons
question.
--
Richard
, so there may be a few errors.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation, no maintenance, new features automatic and free
** New Helpdesk demo now available **
--
PHP General Mailing List (http
handling code
} catch (DBException $e) {
// ...
// Generic Exception handling code (The Exception class is
// built in to PHP)
} catch (Exception $e) {
// ...
}
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation
...
Is htere a way to secoure my code so when they put it on the server, they
can't see it!
There's the Zend Encoder at www.zend.com. Though it may be called
something else now.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you
I would say no, but for files, then why
not? Also prevents pissing off the user by not having to download the
attachment if they're not interested in it (and assuming it will be
base64 encoded as most attachments are, don't forget it will grow in
size by a third).
--
Richard Heyes
http
.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation, no maintenance, new features automatic and free
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation, no maintenance, new features automatic and free
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
as-still non-caffeinated
brain missing something obvious here this morning?
Well exec() et-al aren't the only thing that use paths. You might have
an include/require that begins with C:\ for example.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software
your code should be portable
Except in reality, it probably isn't. Off the top of my head, think file
paths.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation, no maintenance, new features automatic and free
send to say 100 recipients at once but only transfer the
attachment data once.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation, no maintenance, new features automatic and free
--
PHP General Mailing List (http
unset($_SESSION);
or
$_SESSION = array();
This reset all of the session variables. To reset only one, try this:
?php
unset($_SESSION['key']);
?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299 hosted for you -
no installation
Feb 12th is D-day.
[Microsoft] has posted guidelines on how to ward off the automatic update
Not exactly forcing if they've provided an alternative.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299pa hosted for you -
no installation
to you which forks processes:
http://www.phpguru.org/downloads/pcntl/
You need pcntl and it only works on *nix (I understand). It does make
fork()ing somewhat easier though. Be careful of defunct processes though.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base
Daevid Vincent wrote:
I will be very sad in 15 days when M$ FORCES everyone
to it.
WT?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299pa hosted for you -
no installation, no maintenance, new features automatic and free
--
PHP General
]) ? $_SESSION[$name] : false;
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299pa hosted for you -
no installation, no maintenance, new features automatic and free
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Anyone have any trouble with this combination? It consistently crashes
for me.
http://pear.php.net
Thanks.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299pa hosted for you -
no installation, no maintenance, new features automatic and free
firefox not an option?
Nope.
or anything else that resembles a proper browser ;-)
Strange, IE has been working fine for me for the last eight years...
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299pa hosted for you -
no installation
, but certainly it's a rarity.
http://www.thecounter.com reports Opera as having 1% of the market - 1%
isn't exactly a lot.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software for £299pa hosted for you -
no installation, no maintenance, new features automatic
Jochem Maas wrote:
Richard Heyes schreef:
firefox not an option?
Nope.
or anything else that resembles a proper browser ;-)
Strange, IE has been working fine for me for the last eight years...
that's the kind of thing people say just after they hear they have
prostrate cancer ;-)
Lol
PHP is a server-side page generator. It has NOTHING to do with the browser.
The PHP programmer determines the content of the resulting HTML and the
browser reacts to THAT. Browsers never see a line of PHP script!
What's your point?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Undefined function Bob. I've also tried
echo new Bob( 'Hello!' )-getBlah();
echo (new Bob( 'Hello!' ))-getBlah();
Bob is a class, not a method. You could try this:
?php
$obj = new Bob();
$obj-getBlah();
?
It's not method chaining though.
--
Richard Heyes
http
header('Location: /');
?
If it's index.html, you could use the following:
script type=text/javascript
!--
location.href = '/';
--
/script
Try the PHP version first.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software that eases your support
burden
Will that not result in an infinite redirection loop?
Or am i missing something very obvious !
If it's placed in the root folder of the website, yes. But why do that?
If, however, that's what is required just put an empty index.html file
there.
--
Richard Heyes
http
://www.phpguru.org) site it
reduced comment spam by nearly 100%. Not completely; I still get maybe 1
per month, but it was well worth adding.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software that eases your support
burden and helps increase your sales.
** NOW
across the Console_Table class in PEAR.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software that eases your support
burden and helps increase your sales.
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing List (http
PROTECTED], and of course it is always just a bit different every
time. Any help is greatly appreciated.
Could add a CAPTCHA image (Type the letters in the image...) to your
form. It eliminated comment junk when I added one to my website.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Or even a simple text CAPTCHA What is 16 divided by 4?.
Careful though, I made a class which converted numbers to text
(TextualNumbers IIRC) and it got broken.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and Helpdesk software that eases your support
burden and helps
You can easily make a mail queue in php yourself with a daemon that
checks the queue and sends waiting mail in batches of say 200 per
minute. (provided you have access to the cli on the server)
Why when there MTAs?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Mailing list management
option tags to add more items to the select.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Mailing list management service allowing you to reach your Customers
and increase your sales.
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing List (http
this in a .htaccess file if you're using Apache:
php_flag register_globals 1
--
Richard Heyes
http://www.websupportsolutions.co.uk
Mailing list management service allowing you to reach your Customers
and increase your sales.
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing
...
}
echo Date: {$date}br /;
echo Month: {$month}br /;
echo Year: {$year}br /;
?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Mailing list management service allowing you to reach your Customers
and increase your sales.
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS
reading the email you can do pretty much anything. Have a look at
the mail() function.
I try to read pop3. I can not find any example!
Go to http://pear.php.net and get the Net_POP3 class which will allow
you to read the contents of POP3 accounts.
--
Richard Heyes
http
mail delivery and the script has to return immediately, so I'll be
launching a separate process to insert the addresses into a minimal
mail_queue table in my db, and then a 5 minutely cron script which
will pass them to the MTA.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge
1. Using mail(), same email sent to 1000 users.
Script finished in 200ms (1000 emails delivered to local MTA).
Delivery to target MTA over 100Mbit LAN took about 6s.
That settles it then. The mail() command will be more than fast enough
for my needs.
Thanks.
--
Richard Heyes
http
.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
the Zend Encoder.
This turns them into byte code IIRC, so it's hard (not totally
impossible I think) to get the clear text.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES
Hi,
What's the default setting for caching in browsers? With IE is it
Automatically as I think it is? And what about other browsers? Some
equivalent?
Thanks.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
I'm pretty certain it's automatic in most. I think Firefox has a default
50Mb of cache-space.
Great, thanks.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON
to the local SMTP server.
Thanks.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
I used to use htmlMimeMail, but now I use Zend_Mail as it has a better
API and is also faster in regards to the quoted printable encoding.
IIRC htmlMimeMail use the PHP built in function to do quoted printable
encoding.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base
If you have your sendmail equivalent program properly configured, no
SMTP connection is used when queueing messages using the sendmail program.
What about when you take into consideration this program could be
sending 1000's of emails, say, 100 per SMTP connection?
--
Richard Heyes
http
Assuming you're talking delivery to a local MTA (which will subsequently
do the remote delivery), is speed really important?
For the amount of email I'm looking at (1000s, growing), yes.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut
There is no such thing. :)
Perhaps not then... :-)
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing List (http://www.php.net
Hi,
Bearing in mind I haven't yet done any benchmarks, which do you think is
faster - SMTP with multiple RCPT commands or the PHP mail() function
(with it launching a separate sendmail process for each mail() function
call)?
Thanks.
--
Richard Heyes
http://www.websupportsolutions.co.uk
name with white space?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Does anyone have a URL for it? Naturally Google returns a lot of pages
which are about the actual function.
Thanks.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES
Do you mean phpsysinfo? http://phpsysinfo.sf.net/
Bingo, thanks.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing List (http
Lester Caine wrote:
Richard Heyes wrote:
Does anyone have a URL for it? Naturally Google returns a lot of pages
which are about the actual function.
http://www.php.net/
just put phpinfo into the 'search for' and you will get the REAL data
for it.
Google is never the best starting point
The best design for a form comes from using it.
To a certain extent, but I think the best design for a form stems from
watching someone else use it.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW
Nathan Nobbe wrote:
On Jan 8, 2008 2:04 PM, Richard Heyes [EMAIL PROTECTED] wrote:
this is not only convenient from a user perspective in the user
interface, but also
on the server side.
It's not so convenient when you consider Google (and presumably others)
toolbars auto fill.
fortunately
this is not only convenient from a user perspective in the user
interface, but also
on the server side.
It's not so convenient when you consider Google (and presumably others)
toolbars auto fill.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
']
There's also $_SERVER['PHP_SELF']. Probably others too. Simply:
?php
print_r($_SERVER);
?
This will show you what's available to you.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE
tedd wrote:
At 8:23 PM +0100 1/8/08, Per Jessen wrote:
Richard Heyes wrote:
Nathan Nobbe wrote:
On Jan 8, 2008 2:04 PM, Richard Heyes [EMAIL PROTECTED] wrote:
this is not only convenient from a user perspective in the user
interface, but also
on the server side.
It's not so
/State
Postal/Zip code
Country
Full international phone number (eg. 0044 1623 123456)
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General
makes up roughly 37-40% of users, and being a
technically orientated site they probably aren't representative of the
Interweb at large, for that you might be better looking at
thecounter.com (http://www.thecounter.com/stats/). That shows 80%, which
is probably closer to actual usage.
--
Richard
understand more, but purposefully cutting out a
large chunk of your audience?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing
is) to
get the database object.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
I think that any MTA or client that doesn't work with the
Reply-To header isn't worth beans.
very very true
Well the Reply-To: header isn't for bounces.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
: attachment; filename='.$filename.'');
readfile($dir.$filename);
} else {
echo No file selected;
}
}
?
FYI You have Content-Disposition twice; you only need the second.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut
Emails that bounce get sent back to the address in the Return-Path:
header. Correct?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General
Daniel Brown wrote:
On Dec 18, 2007 10:17 AM, Richard Heyes [EMAIL PROTECTED] wrote:
Emails that bounce get sent back to the address in the Return-Path:
header. Correct?
Yes, sir.
Thanks. Is there usually a delay? Eg the mail server tries again after 4
hours.
--
Richard Heyes
http
($nestedarray as $v) {
if ($v['id'] == 5) {
$in_array = true;
break;
}
}
?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON
...
There are various configuration options for this (which you change in
the php.ini or by using the ini_set() function):
session.gc_maxlifetime
session.cookie_lifetime
Read all about sessions here:
http://uk.php.net/manual/en/ref.session.php
--
Richard Heyes
http://www.websupportsolutions.co.uk
session.cache_expire... but...
nothing happens... session does not expire
If you change them in your php.ini don't forget you'll need to restart
your web server.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING
You can simulate that, because not always you'll be able to do init_set
ini_set(), and when?
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS
can't see the harm in calling
it on every invocation.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General Mailing List (http://www.php.net
. If it's the same for all
users then it doesn't belong in the session, it belongs in a server-wide
cache.
Sessions are for whatever you choose to put in them. And why implement a
cache when you've got something perfectly usable (sessions) already?
--
Richard Heyes
http
of the web server.
It's probably not likely to happen but that could seriously break your
application.
Then use the function directly.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS
Sre, sessions are for whatever you choose to put in them. That's
like saying bodies are for whatever a crazed murderer chooses to put in
them...
No it's not.
the statement is true, but it's not optimal.
Real life is rarely optimal.
--
Richard Heyes
http
an email address with phpguru in it. But I guess anyone can claim
whatever they want... it doesn't make it true. Maybe you could see if
phpsloppypig.org is available (it is btw).
Ah personal insults. Always a good argument.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base
name is, you're still advocating a
poor choice IMHO.
Practical though. And I'm conscientious as far as business allows.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES
ever make assumptions, particularly when your dealing with
software distributions.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS **
--
PHP General
, and use one DSN if it's there. If not, use another.
This is one of the reasons abstraction layers exist.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON
Thanks, but unfortunately my ISP does not implemented PEAR, and uses PHP
4.3.10.
You can view the source code on http://pear.php.net and use that. Your
ISP doesn't have to support PEAR.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut
I don't know if it is a PHP question, but I give it a try.
I've been trying this subject for a while, but with less success.
Now I can create mail bodies like this:
http://www.phpguru.org/downloads/html.mime.mail/
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base
How could I convert a hex msg to ascii msg?
Is there a php function or sth?
Try posting a small example.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON
On Dec 5, 2007 6:09 AM, Richard Heyes [EMAIL PROTECTED] wrote:
There is not much simple about a calendar, especially when you start
dealing with recurring events. How far into the future your calendar
allow events to recur will depend at least in part on how you intend
to store them
-- there is not much simple when it comes to
calendars.
Calendars can be simple, or they can account for a lot and be complex.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS
that runs every x minutes.
That could check a database for jobs/tasks that need running, using the
current time and an option like run this job every 10 minutes to
determine what needs running, (ie in that case if the current time isn't
divisible by ten then don't run it).
--
Richard Heyes
http
if it is a calculation. If so, give
me an integer and round it off to two decimal points:
$price = 58.08;
You may want to look at eval().
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost of online support
** NOW OFFERING FREE ACCOUNTS
from PHP 4.x to PHP 5.x? This is a major upgrade
so you should expect things to stop working. Using the long version of
the open tags (ie ?php ) has been best practice for a long time.
--
Richard Heyes
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut
Chris wrote:
Richard Heyes wrote:
well if you take a string (filename) and wish to change the end of it
somone
then I don't think str_replace() is the correct function. what's to
say a script
doesn't exist called 'my.cfm.php'?
How does this:
/\.cfm$/
take into account that?
$ in regex's
;
Anything would be helpful. :)
You don't need the overhead of PCRE, though it is the fastest to write,
since it's already above for you...
Or parse_url(). basename(__FILE__) will get you the filename.
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base
well if you take a string (filename) and wish to change the end of it somone
then I don't think str_replace() is the correct function. what's to say a script
doesn't exist called 'my.cfm.php'?
How does this:
/\.cfm$/
take into account that?
--
Richard Heyes
+44 (0)800 0213 172
http
, an IFRAME
might be needed with left/right scrolling.
--
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
to have many garbage images in
the temp directory).
Is there any way to do that? From PHP?
http://uk.php.net/manual/en/function.register-shutdown-function.php
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut the cost
I could
view and
learn from?
The PEAR Pager class can do this for you. Together with the
Pager_Sliding package it works very well.
http://pear.php.net/package/Pager
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut
What is the most obvious way to implement a tree-like structure in PHP?
Use someone elses code that already works. :) Array based tree class is
here:
http://www.phpguru.org/Tree/Tree.phps
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk
/
No complaints here.
--
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
get a sequence of values like:
AX0001
AX0002
AX0003
AX0004
.
AX0099
AX0100
and so on ?
?php
for ($i=0; $i=100; $i++) {
echo 'AX' . sprintf('%04d', $i) . 'br /';
}
?
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk
Eclipse with PDT plugin
Scite. Not quite an IDE per-se, but still very very good and extremely
versatile.
IDE of champions ;)
That somewhat subjective... :)
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base and HelpDesk software
that can cut
...
Thanks for the help. I've got it installed now. In the end I found that
the server came with 5.1.6 installed (:/), which despite not being
5.2.x, is still a jump from the 5.0.x I had before.
--
Richard Heyes
+44 (0)800 0213 172
http://www.websupportsolutions.co.uk
Knowledge Base
() {
xmlInitParser();
return 0;
}
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/)
To unsubscribe, visit: http://www.php.net
Per Jessen wrote:
Richard Heyes wrote:
The following is in config.log:
configure:20028: checking whether libxml build works
configure:20055: gcc -o conftest -g -O2 conftest.c
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm 15
/usr/bin/ld: cannot find -lz
Looks like you need to install
Richard Heyes wrote:
Per Jessen wrote:
Richard Heyes wrote:
The following is in config.log:
configure:20028: checking whether libxml build works
configure:20055: gcc -o conftest -g -O2 conftest.c
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm 15
/usr/bin/ld: cannot find -lz
Looks
601 - 700 of 871 matches
Mail list logo