to integrate articles into existing pages, something like
?php blog::getArticlesHTML($rule); ?
?php blog::getUserCommentEditHTML($article); ?
Can anyone recommend a suitable blog script?
Thanks!
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
to 5.2 within a couple of months and slowly start using
some of the new features.
Thanks,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to such optimizations. Could you possibly give
me a specific example of an array and a similar object with this great
difference in memory consumptions?
Thank you for your answer,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
On Wednesday 20 December 2006 02:24, Tony Marston wrote:
Niels [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi list,
I'm writing a PHP program and I've got a number of concerns. The program
is
about 20 KLOC at the moment, but will probably grow quite a lot.
I'm using
,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A, B and C to get that result?
Thanks,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tuesday 13 June 2006 12:32, Ford, Mike wrote:
On 13 June 2006 10:31, Niels wrote:
Hi,
I have a problem I can solve with some loops and if-thens,
but I'm sure it
can be done with bit operations -- that would be prettier.
I've tried to
work it out on paper, but I keep missing
On Tuesday 13 June 2006 12:22, Jochem Maas wrote:
Niels wrote:
Hi,
I have a problem I can solve with some loops and if-thens, but I'm sure
it can be done with bit operations -- that would be prettier. I've tried
to work it out on paper, but I keep missing the final solution. Maybe I'm
= $existing ~$mask; # = 176 = 1011
Combine them together
$result = $changing ^ $staying; # = 188 = 1000
David
[snip]
Thank you very much, I appreciate it!
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/disclaimer
Hands off Rasmus! He's a good guy!
Thank you for your answer,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Monday 05 June 2006 13:32, David Robley wrote:
Niels wrote:
Hi,
I have a set of nodes. Each node has a parent and so the set can be
thought of as a tree. I want to show that tree somehow on a webpage,
served by PHP. I cannot use Dot/Graphwiz for various reasons. What I'm
looking
and their connections. It's
not a trivial task, IMO, but doable. Possibly somebody has already made
something similiar, but I can't find anything on Google. Can anybody point
me to helpful information?
Thanks,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
On Sunday 04 June 2006 14:58, tedd wrote:
At 2:07 PM +0200 6/4/06, Niels wrote:
Hi,
I have a set of nodes. Each node has a parent and so the set can be
thought of as a tree. I want to show that tree somehow on a webpage,
served by PHP. I cannot use Dot/Graphwiz for various reasons. What I'm
.
However DIVs or TDs is a minor problem. The major problem is to walk
through the tree properly (recursively probably), and remember the
connections. And then rendering them...
Thank you for your answer,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
On Sunday 04 June 2006 18:37, Mike Bellerby wrote:
You could do it by dynamically generating an image.
Mike
[snip]
Yes. But how? I've settled for a simpler solution -- see my answer to Martin
Alterisio.
Thanks,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
) {continue;}
$tree.=div
style='margin-left:{$indent}px'{$node['name']}/div;
tree($nodes, $nodeID, $indent);
}
return $tree;
}
Thanks!
//Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it!
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
On Sunday 04 June 2006 19:08, tedd wrote:
At 3:38 PM +0200 6/4/06, Niels wrote:
On Sunday 04 June 2006 15:30, tedd wrote:
[snip]
You can dynamically generate a table and place text (and/or color) the
cells that are nodes -- that would be my approach. You would need to
know the width
On Sunday 04 June 2006 19:49, tedd wrote:
At 7:26 PM +0200 6/4/06, Niels wrote:
If I were to make a real tree, I wouldn't use a table. It's too
difficult to manage IMO. I'd probably look for a generic graph algorithm
somewhere, and try some dhtml voodoo with flying DIVs.
Thanks again,
Niels
On Sunday 04 June 2006 20:39, tedd wrote:
At 8:00 PM +0200 6/4/06, Niels wrote:
Using a combination of css and php will do what you want, I'm sure of
it.
I want world peace...
Well, if we were all programming php, we wouldn't have any war, but we
wouldn't have any peace either
got it all working now.
//Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
? Is there a folder I can count
on being allowed to write to?
Thanks,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday 25 February 2006 16:36, Niels wrote:
Hi,
I have some images in a database -- I mean, the actual data. There are no
files.
I want to read Exif data for these images, but the read_exif_data()
function wants a file. I suppose I could write the images to temp files,
but that's
thumbnails for them, and also storing those in the DB. No files
at all, and therefore I can't read exif data for the thumbnails.
As I said I've solved the problem by writing a temporary file and reading
exif from that. Not pretty or efficient, but it works.
//Niels
--
PHP General Mailing List (http
can do that without creating files,
but I can't get exif data of these thumbnails, because there are no files.
The exif data for the thumbnails isn't the same as for the full images.
//Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
Thanks,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
only id?
//Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
my question: I'll have to keep
using both NAME and ID.
Thanks a lot!
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
. The problem seems to be that the object has the
same name as the key in $_SESSION -- if I call it $foobar the problem
disappears. But that explanation doesn't really make much sense to me.
As I see it there's something wrong on the server. Can anybody tell me
anything about this problem?
Thanks,
Niels
- the script works fine on my server.
Thanks for checking.
//Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Andy,
try that one: /^[a-zA-Z]{3}|\p{Sc}$/u
You don't want to put \p{Sc} in square brackets as \p{Sc} itself already
is a character class. Umm.. Kinda don't make myself clear here, do I?
You just don't want to, it's 5am in the morning here I gotta go to the
next bed ;p
Regards,
Niels
Andy
Andy,
you might want to check out
http://www.regular-expressions.info/unicode.html
Please note two things while using the described syntax:
1. You have to additionally use the u modificator.
2. While \p{Ll} for instance works in PHP, \p{Lowercase_Letter} doesn't.
Regards,
Niels
Hi List
I
Why should this be unsafe (whatever the heck that means) in any way? Of
course you can do it.
Regards,
Niels.
[sorry for mailing to your private address. wrong button :)]
Anyway, can you do *this* safely as a DOCUMENTED FEATURE:
foreach($array as $k = $v){
if (...) unset($array[$k
so I'd suggest taking a look at the Perl libraries for ICQ/AIM and
other IM clients that you can probably adapt to PHP without too much
work. Check www.cpan.org for this.
Or sniff the traffic of a normal ICQ client and learn the protocol
that way. Alternatively you could search for a
the changes back into the page.
So I'd say the mediawiki approach as outlined by Jasper is the best
possible in the context of a stateless protocol such as HTTP.
Regards,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are a lot more valuable in an error
context.
I _could_ save them in a global variable which I could access without any
problem in my shutdown function, however I'm quite happy with the
flexibility of my object oriented approach and rather wouldn't like to
change it.
Anymory ideas?
Regards,
Niels
and return
an error if .. is found in it. Maybe I'm a little paranoid but is this
really enough?
For clarification: All paths are prefixed with some kind of a root path.
All images within this root path may be accessed but jumping out of it
should not be allowed.
Regards,
Niels.
--
PHP General
is.
Regards,
Niels.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
No way.
PHP is server based you can't trigger anything on the client side. Use
Javascript, ActiveX, XUL or the like.
What's the best way to send an executable to a client desktop in PHP?
I'm doing a project where we need to check and see which files need to
be updated on a client-desktop.
Unfortunately, you can't pass along a username/password to apache in a
simple way.
Well, what about http://user:[EMAIL PROTECTED] I personally wouldn't send
cleartext passwords to a client's browser which might cache them and
stuff, but possible it is.
--
PHP General Mailing List
string implode(string glue, array pieces) [1]
Regards,
Niels
[1] http://php.net/manual/en/function.implode.php
Pardon my ignorance and lack of ability to form the right search for
google, but I'm trying to figure out if there's a simple function in
PHP to convert array values to a string
Choose the right module. Search your apache config for LoadModule
php5_module resp. LoadModule php4_module.
How to configure apache to select one particular from several
installed php?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it with strftime [4].
Regards,
Niels
[1]
http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html#id2728257
[2] http://php.net/manual/en/ref.datetime.php
[3] http://php.net/manual/en/function.strptime.php
[4] http://php.net/manual/en/function.strftime.php
I get my timestamp from the db
in advance,
Niels.
[1] http://marc.theaimsgroup.com/?l=php-devm=112556389406774
[2] http://bugs.php.net/bug.php?id=34377
[3] http://bugs.php.net/bug.php?id=33772
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
script type='text/javascript'
window.print();
/script;
}
?
_
Needles to say, I hope, that it doesn't work!
Niels Riis Kristensen
([EMAIL PROTECTED])
NRK Group
- Electronic Music Engraving
- Webhosting
- Dynamic Web design
- E-Lists hosting
'
window.print();
/script;
}
_
Needles to say, I hope, that it doesn't work!
Niels Riis Kristensen
([EMAIL PROTECTED])
NRK Group
- Electronic Music Engraving
- Webhosting
- Dynamic Web design
- E-Lists hosting
smime.p7s
Description: S/MIME cryptographic
'
window.print();
/script;
}
_
Needles to say, I hope, that it doesn't work!
Niels Riis Kristensen
([EMAIL PROTECTED])
NRK Group
- Electronic Music Engraving
- Webhosting
- Dynamic Web design
- E-Lists hosting
--
PHP General Mailing List (http://www.php.net
in the example so that the post
wouldn't be to voluminous.
Niels Riis Kristensen
([EMAIL PROTECTED])
NRK Group
- Electronic Music Engraving
- Webhosting
- Dynamic Web design
- E-Lists hosting
On 31/05/2005, at 22.53, [EMAIL PROTECTED] wrote:
which are you saying doesn't work
right here
Allready did, no result.
Niels Riis Kristensen
([EMAIL PROTECTED])
NRK Group
- Electronic Music Engraving
- Webhosting
- Dynamic Web design
- E-Lists hosting
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
SELECT * is that there is more than one field I
need to output. There is only one in the example so that the post
wouldn't be to voluminous.
Niels Riis Kristensen
([EMAIL PROTECTED])
NRK Group
- Electronic Music Engraving
- Webhosting
- Dynamic Web design
- E-Lists hosting
--
PHP General
Hi
I am using a Unix machine (Mac) but can't find ways to print to my
local printer. Plenty of information about printing from a PC, but none
from a mac. Can that be, that you can't print from php to mac?
Niels Riis Kristensen
([EMAIL PROTECTED])
NRK Group
- Electronic Music Engraving
anyone help?
Med venlig hilsen
Niels Riis Kristensen
-
NRK Gruppen
- Elektronisk nodeengravering
- Webhotel
- Webdesign
- Udøvende musik
---
Send penge sikkert over Internettet!
Klik her: https://www.paypal.com/refer/pal=EAJLSE5TQELFC
--
PHP General Mailing List (http
?
- Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
scheme.
Thanks again,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and that kind of thing. But not this, no howto
make php run useradd safely. I've seen many other people have problems
with this, but no tutorials are to be found.
Thank you very much for your answer,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
nothing will ever go
wrong with my program. That's quite unrealistic. But I'm looking for
solutions to the problems everybody's pointing out.
Thanks again,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
this?
Thanks,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jennifer Goodie wrote:
I wouldn't use system calls to move files around. PHP has built in file
system functions. Why shell out to do something that is built in?
Well, the apache user really shouldn't have access to the entire file system
-- that's the problem.
Thanks,
Niels
--
PHP
to a system for a cracker. But still, the
article doesn't really help.
Thanks,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to the application
some time in the future.
So my question is: Is sudo the best solution?
Thanks,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
scan that. But that
solution is no longer good enough -- I need to call system functions
directly.
I can't find any thorough articles on this subject, but surely someone here
has some ideas or some pointers.
Thanks,
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
,my_function($1),$str); doesnt work
at all and lots of other variations do not as well.
Please to be helping.
Greets
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
or
'$' in /www/htdocs/v035923/pages/template-engine/engine.php on line 26
Line 26 is this one:
$template = preg_replace(!{for loops=(.*)} (.*)
{/for}!U,code($1,$2),$template);
Many thx 4 help
Niels Uhlendorf
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
I don't mean any disrespect, but I just want to check that the basics are
OK, sometimes I forget stuff like that myself: Did you click a link to go to
your test page?
Stephen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
For some reason my webhost doesn't allow the HTTP_REFERER
You want to add a new line every time your form is submittet, am I right?
Then you should open the file for appending, using fopen(filename, a)
instead of w
Ryan Holowaychuk [EMAIL PROTECTED] wrote in message
news:!~!UENERkVCMDkAAQACABgAu5ugyx6+hUW5gsOu6grgVMKA
LOL
I like PHP, but I also like wet girlies. But the two are not interchangable,
which is a pitty, becouse sometimes I really could use a wet girl, and I
only have PHP
Khalid El-Kary [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
sorry, but if PHP (a great piece of knowledge)
I have created a simple template engine extension. It is published at
http://zhat.dk/template/
It is very simple to install and use, and a PHP alternative (an include
file) is also provided.
No documentation available yet (sorry!!!), so have a look at the example
scripts.
--
PHP General
That depends on the way you run PHP
If you run it a a server module, it may be more efficient.
If not, then it it less efficient than CGI, as the PHP script engine is a
CGI program itself, and has to compile and run your script after it gets
started itself.
Spyproductions Support Team [EMAIL
By the way, beware of possibly buggy code:
strpos() will return 0 if the string begins with '-', but it will return
FALSE if '-' is not found in the string.
Since both 0 and FALSE will evaluate to boolean false in your condition, you
may get weird results.
Use this instead: (strpos($a, '-') !==
Since input from a form are strings, you can check like this:
if ($_POST['your_input_name'] == '')
// field is empty
Shaun [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Is there an easy way to scan through an array of values sent from a form
to
see if any of them are empty?
Yes, $HTTP_POST_FILES is depricated, but it still works in PHP 4.
John Taylor-Johnston [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
$HTTP_POST_FILES as opposed to $_FILES is older syntax? $HTTP_POST_FILES
is still compliant?
John
--
PHP General Mailing List
$file = file('filename');
$line = end($file);
for ($i=0; $line $i10;$++)
{
list (. and so on...
$line = prev($file);
}
Webdev [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
How to grab the last -n lines from a data file and display the stored data
Only the the last 10 line
Not sure how you define an extension, but you could take a look at my
web site www.phpscriptsearch.com and see if it applies to listing it
there. But like I said, it depends what you mean by extension.
Extension like in binary that is either an integral part of PHP or a
loadable module.
As
Do you have a DNS server on you network? Without it, it will not work.
Chris Blake [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Greetings,
Th command
echo gethostbyaddr(ip.number.inserted.here);
returns the name of the server when it`s an internet address.
Is there a similar
When I post something here, it first appears several hours later. How can it
be so?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Actually, I did not check the time. But I was online for more than 10
minutes and pressed my refresh button sevaral times. My post did not appear.
Henry Grech-Cini [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Did you send this post at 17:17 and did it arrive at 17:22?
Niels
So when you do request for:
your_script.php?var=hello%20world
And put this in your script
? echo $_GET['your_var'] ?
you get
hello%20world
printed?
Sunfire [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
tried everything except session vars and the query string is still
broken...
no
PHP is not text markup, it is a kind of programming language. You can't just
validate code for correctness, only for valid syntax. It may still contain
bugs. The syntax is checked by the parser, which is invoked when you run
your script.
Regarding HTML-output from your script, you can make sure
Hello!
I have made a really great (or at least that is what I think) extension,
which I think everybody should use :))
Where should I publish it?
Is there any chance that it will make its way into a future distro?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello,
I did my first PHP extension (a simple template engine), and I found out I
could not ude V_OPEN() - it simply crashed PHP.
I then searched the web and found somebody mentioning something about a
function called VCWD_OPEN(), which works perfectly, but is not
documented
Any idea why
Check that php_gd2.dll is in your C:\PHP\ folder.
Anthony Ritter [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I run the following script:
?
phpinfo();
?
// the page loads o.k. when the semi-colon remains as in:
;extension=php_gd2.dll
but if I remove the semicolon as in:
i am having a terrible time killing the session
someone please please help me...
This one works for me:
session_start();
$_SESSION = array();
session_destroy();
But I am surprised that there is no single command to kill the session.
The semantics of session_destroy() suggest that it does
Data from POST is a hash table of strings, so you should use this to check
for zero:
if ($_POST['field'] == 0)
// Zero was entered
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
There mey, but need not be a space. As far as I know, the option scanner in
mysqldump ignores spaces between short options and their values.
John Taylor-Johnston [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thanks!
exec(mysqldump -c -q database -u user -ppassword, $sql);
Why
I want to compile an extension, let's say the zip extension.
So I do the following:
cd /usr/src/php-4.2.3/ext/zip
phpize
Now, I understand that this should result in a shared library being
produced, but I can't find it.
Also, during the phpize process, I get following warnings:
perl: warning:
hi,
how to chang [url=%link%]%descr%[/url] in a href=%link%%descr%/a
thx 4 help.
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
shortcut before learning mysql but
Thanks for any help
niels
--
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp
87 matches
Mail list logo