Op 21-nov-07, om 03:45 heeft Bastien Koert het volgende geschreven:
Well, this was just hashed out last week, again.
Its a personal thing. I am against it, having seen the slowdown and
database bloat caused when this is done. I prefer a pointer to the
image to be stored in the table and
:
And
PropertyIsEqualTo
PropertyNamegenus/PropertyName
Literalontophaugs332/Literal
/PropertyIsEqualTo
Or/
Or/
/And
Regards
Jonas
On Tue, 2007-11-20 at 10:27 -0800, pere roca wrote:
please, I need some help with php DOM, for me it's becoming a hell!
After trying other methods (check
foo.xml:
?xml version=1.0?
test
foosfsd/foo
/test
The output of test.php is nothing plain white space.
Any help is appreciated.
thanks in advance Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry the code works fine, just forgot the echo the output.
On Mon, 2007-11-19 at 22:04 +0100, Jonas Geiregat wrote:
I've been playing with DOMDocument-xinclude but it just doesn't seem to
work for me.
test.php:
?php
header('set content-type: text/xml');
$doc = new
,$text,From: $forname $lastname
$mail);
?
The mail looks like this when recived:
F-namn: JbrL-namn: RbrBirth: 12brAddress: 34brZip: 56brCity:
78brPhone: 90brMail: [EMAIL PROTECTED]brDesc: NbrHair: hairbrMake:
makeup
Thanks in advance // Jonas
--
PHP General Mailing List (http://www.php.net
Is there any easy way to trim or pick out the none decimal values in a
numric value? Like:
1,333 = 1
5,667 = 5
12,145 = 12
15,997 = 15
Thanks // Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there any way you can skip for example the first 4 array values/posisions
in an array no matter how many values it contains?
Thanks // Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
is there any easy why to check if a value is odd or not?
Thanks // Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Ursprungligt meddelande-
Fran: Eric Mol [mailto:[EMAIL PROTECTED]
Skickat: den 2 juni 2006 15:34
Till: 'Jonas Rosling'; 'PHP List'
Amne: RE: [PHP] If value is odd or not
If ($var/2==round($var/2)){
// not odd
}else{
// odd
}
Greetings,
Eric
Thanks (all)!
-Oorspronkelijk
UTF-8 as char set, but in this case I need to use iso-8859-1
(Latin 1).
Thanks // Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at /var/www/html/index3.php:1) in
/var/www/html/index3.php on line 2
But if I set the char set to Latin 1 the error message doesn't show. But
then the none internationl characters in the JavaScript messages doesn't
show as they should.
Thought I should explain my self a little bit more.
// Jonas
-Ursprungligt meddelande-
Från: tedd [mailto:[EMAIL PROTECTED]
Skickat: den 30 maj 2006 15:10
Till: Jonas Rosling; PHP List
Ämne: Re: [PHP] Converting text strings [out of topic a bit]
At 10:17 AM +0200 5/30/06, Jonas Rosling wrote:
Hi all,
when my documents are using iso-8859-1 (Latin 1
])} AS $key = $value) {
echo htmlentities($key).' - '.$value;
$count++;
}
}
Anyone?
Thaks // Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Ursprungligt meddelande-
Från: Jonas Rosling [mailto:[EMAIL PROTECTED]
Skickat: den 23 maj 2006 10:06
Till: PHP List
Ämne: [PHP] Getting an advanced foreach to work
Should look like this:
foreach (${$salespersons[$count]} AS $key = $value) {
--
PHP General Mailing List (http
-Ursprungligt meddelande-
Från: Chris [mailto:[EMAIL PROTECTED]
Skickat: den 23 maj 2006 10:24
Till: Jonas Rosling
Kopia: PHP List
Ämne: Re: [PHP] Getting an advanced foreach to work
From a performance point of view you're much better off doing:
$sales_count = count($salespersons
mind changing name on yet are some dynamic, like:
${$row[0]} = array();
${$row[0]}[$row[1]] = $row[2];
But I think this could be the main cause, but I'm not really sure. If I
delete the top code the bottom works. Any idéas any one?
Thanks // Jonas
--
PHP General Mailing List
-Ursprungligt meddelande-
Från: chris smith [mailto:[EMAIL PROTECTED]
Skickat: den 23 maj 2006 13:38
Till: Jonas Rosling
Kopia: PHP List
Ämne: Re: [PHP] One works, but the other doesn't
On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote:
I find this problem very strange. I've got two
-Ursprungligt meddelande-
Från: chris smith [mailto:[EMAIL PROTECTED]
Skickat: den 23 maj 2006 14:13
Till: Jonas Rosling
Kopia: PHP List
Ämne: Re: [PHP] One works, but the other doesn't
On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote:
-Ursprungligt meddelande-
Från: chris
Chris. But just doing that doesn't make the same result
as my code. Do I need to put in $my_data in the foreach part as well?
// Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Not so sure if I've tried to work this out before in this list.
I'm trying to make an array name by a field/row value and assigning values
to it. But I'm having some problems getting it to work.
Is it possible to do this? And if, what am I doing wrong? Or is there any
other way to do it?
-Ursprungligt meddelande-
Från: nicolas figaro [mailto:[EMAIL PROTECTED]
Skickat: den 22 maj 2006 11:50
Till: PHP List
Ämne: Re: [PHP] Array name out of field value with data
Jonas Rosling a écrit :
Not so sure if I've tried to work this out before in this list.
I'm trying to make
Anyone know any good why to group date in a recordset in any good way? As if
you categorize it in columns. Like:
Category 1
Row1 - DataData
Row2 - DataData
Row3 - DataData
Category 2
Row1 - DataDate
Row2 - DataData
Row3 - Data
I don't know if I'm explaining things in a difficult way or not. But I'm
gonna try to explaine what I want very clean and simple.
1. I wan't to check if an array is decleard or not, refering to a value in a
row/field ($row[0])
2. If it's not decleard I declear it and assign it's name by the value
-Ursprungligt meddelande-
Från: chris smith [mailto:[EMAIL PROTECTED]
Skickat: den 22 maj 2006 15:49
Till: Jonas Rosling
Kopia: PHP List
Ämne: Re: [PHP] HELP - Clean and simple
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote:
I don't know if I'm explaining things in a difficult way
-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Rabin
Vincent
Skickat: den 22 maj 2006 16:26
Till: Jonas Rosling
Kopia: PHP List
Ämne: Re: [PHP] HELP - Clean and simple
On 5/22/06, Jonas Rosling [EMAIL PROTECTED] wrote:
:-) Sorry! I've been digging
Hi,
the PHP newbie is here again asking questions.
Is there anyway in PHP to convert none international characters so the are
displayed correct?
In my case I have lots of data in the database with å,ä and ö.
Thanks // Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
in the absolute top of every page it
seems to work. But then I need to do alot of changes on all the pages.
Does anyone know if there's any workaround for this?
Thanks in advance // Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Den 06-05-15 15.56, skrev nicolas figaro [EMAIL PROTECTED]:
Jonas Rosling a écrit :
Hi,
I've been building a site with PHP 5 on my develop machine. I've been woring
alot with session handling. For example I've been using session_start() now
and then depending on where the user/vistor
Den 06-05-15 16.00, skrev Thomas Munz [EMAIL PROTECTED]:
put ob_start(); on the first line of your page
on Monday 15 May 2006 15:53, Jonas Rosling wrote:
Hi,
I've been building a site with PHP 5 on my develop machine. I've been
woring alot with session handling. For example I've been using
);
}
}
}
}
Thanks in advance // Jonas
(Yes, I try to read the manual - but it's not allways good enough for me)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$salesperson[$row[3]];
I get the value. I think you know what I mean?!
Thanks // Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
'
);
// Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is there any way to call for an element value in an array by the position?
Like position 2 in the array and not the key name.
// Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Seem like your missunderstanding me. I'm not using an orignal array. I'm
using an map-array.
$array = ('element' = 'value');
// Jonas
Den 06-05-04 14.29, skrev Jay Blanchard [EMAIL PROTECTED]:
[snip]
Is there any way to call for an element value in an array by the
position?
Like position
Nothing.
// Jonas
Den 06-05-04 14.40, skrev Jay Blanchard [EMAIL PROTECTED]:
[snip]
$colors =
array('white'='#ff','black'='#00','blue'='#ff');
[/snip]
What happens when you echo $colors[1]?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
if anyone could
help me out a bit.
Thanks in advance // Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Need solve another case regarding array maps. Is it possible to insert more
values like with array_push in arrays as bellow?
$colors = array(
'red' = '#ff',
'green' = 'X00ff00',
'blue' = '#ff'
);
Tanks in advance // Jonas
--
PHP
]] = $row[5];
Or:
$test[$row(2)] = $row[5];
Do I need to do some kind of concatenating?
Thanks again // Jonas
Den 06-05-03 15.46, skrev Jochem Maas [EMAIL PROTECTED]:
Jonas Rosling wrote:
Need solve another case regarding array maps. Is it possible to insert more
Jonas - in php we
Rolf Berkenbosch wrote:
Hi All,
I have a big problem with the mail function in PHP.
I have installed PHP 4.3.3. But no email where send
With the mail function. If I run this script as root. There
Is no problem..
What do I need to change??
Thanks,
Rolf
hm I think the webserver
?
Chris W
Hi Chris,
try this:
$NowT = strtotime(January 9 2004);
$EventT = strtotime(June 1 2004);
print (round($EventT - $NowT)/86400);
greetings, Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
if someone has a good solution for this!
---
... and pray that there's intelligent life somewhere out in space, because
there's bugger all down here on Earth! - Eric Idle - the Meaning of Life
---
/Jonas
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http
;
If every field has a proper value (when everything had been filled in on the
form),
Everything works as expected.
/Jonas
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.501 / Virus Database: 299 - Release Date: 2003-07-14
--
PHP
',null)
Works
INSERT INTO SITE (id,name,url,comment) VALUES
(null,'$name','$url','$comment')
Does not when I've set $comment=null;
If every field has a proper value (when everything had been filled in on the
form), Everything works as expected.
/Jonas
---
Outgoing mail is certified Virus Free
in with anything unless
You've used move_uploaded_file() first.
Also check if uploads are enabled in php.ini.
Oh, and if you have permissions to write in
The tmp directory as well.
/Jonas
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.501
is
Windows/IIS instead of Linux/Apache so
Maybe there's something wrong with the
Httpd.conf file somewhere?
/Jonas
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.501 / Virus Database: 299 - Release Date: 2003-07-14
--
PHP
somewhere out in space, because
there's bugger all down here on Earth! - Eric Idle - the Meaning of Life
---
/Jonas
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.501 / Virus Database: 299 - Release Date: 2003-07-14
--
PHP General
instead:
Parse error: parse error, unexpected T_STRING in
c:\inetpub\wwwroot\alterdb\upload2.php on line 25
Line 25 happens to be that $filnamn line you can see above.
I'm at a loss as to what could be the problem so any suggestions to where to
look?
Thanks in advance
--
/Jonas
--
PHP General
Never mind. I found the problem. I was just stupid enough to forget about
escaping the backslash.
/Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://kemu.ath.cx/intranet/login.phps
when I press submit everything is OK it works like I want it to work but
I'm not happy with the result I see in my url window
I see this
http://localhost/intranet/login.php?user=kemupasswd=testsubmit=login
I don't like it that you can know the passwd
is
Jim Pringle heeft geschreven:
I've noticed some sites that have variables in the link
(template.php?tpl=fold), but when the page is displayed, the variable is not
visable in URL in the address window.
How do you do this?
thanks
Maybe they redirect you ?
--
PHP General Mailing List
Ernest E Vogelsinger heeft geschreven:
At 22:42 24.02.2003, Jonas Geiregat spoke out and said:
[snip]
http://kemu.ath.cx/intranet/login.phps
when I press submit everything is OK it works like I want it to work but
I'm not happy with the result I see in my
is it possible to do something like mail([EMAIL PROTECTED],subject,hello
if($a){ return andreas; });
or what would be the best solution for this ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have a date ex 24/08/02
and I need to see if that date is the same date as it is today (only one
month later) but 5day's in advanced = that would be 24/09/02
so if(date == date now - 5)
{true}
else{false}
how can I do this right ?
--
PHP General
and If I want to calculate from given date the next month
like strtotime(next month) gives me the date of one month in advanced
from NOW
but I want to get the date one month in advanced from a given date not NOW
Jonas Geiregat wrote:
I have a date ex 24/08/02
and I need to see if that date
this is my code
?php
$pdf = pdf_new();
pdf_open_file($pdf);
pdf_begin_page($pdf, 595, 842);
pdf_set_font($pdf, Times-Roman, 30, host);
pdf_set_value($pdf, textrendering, 1);
pdf_show_xy($pdf, text here, 50, 750);
pdf_end_page($pdf);
pdf_close($pdf);
$data = pdf_get_buffer($pdf);
this is my code what I want to do is
generate a pdf file(not save it on hd of server but in memory)
then send it as attachement to someone
$pdf = pdf_new();
pdf_open_file($pdf,);
pdf_begin_page($pdf, 595, 842);
this is my code what I want to do is
generate a pdf file(not save it on hd of server but in memory)
then send it as attachement to someone
$pdf = pdf_new();
pdf_open_file($pdf,);
pdf_begin_page($pdf, 595, 842);
and not case sencetive ascci?
Thanks
/Jonas
_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
thx alot :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I need some help with parsing text. very simple. I have a text string like
News, Bla, Blabla and i want to get the single words out of the string.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
of time?
No. Setcookie requires a the time to expire in seconds:
setcookie(bookmarks,cookievalue,time()+3600*24*30*12*10); // This cookie
will expire after 10 years.
--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk
Developers are being asked to do more with less, do it faster, and make it
fit with the
nothing, you get nothing.
--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk
Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
Michael Mehlmann [EMAIL PROTECTED] skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I want to list all files, that are included in my script with include() or
require().
get_reqiured_files() and get_included_files() ?
--
Mvh./Best Regards
Jonas Delfs, http://
Jonas Delfs [EMAIL PROTECTED] skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I want to list all files, that are included in my script with include()
or
require().
get_reqiured_files() and get_included_files() ?
I forgot to mention that you only need get_includ
it there.
It's a programming language---that's all.
Actually, it's a scripting language - but you made your point. :)
--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk
Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC
Hassan xaaji [EMAIL PROTECTED] skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have Linux/PHP/MySQL. Some of my script really run
very slowly.
What should I avoid in my scripting?
It's hard to tell. Try showing some code.
--
Mvh./Best Regards
Jonas Del
Output Control?
ob_start();
var_dump($flaf);
$var = ob_get_contents();
ob_end_clean();
--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk
Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC
--
PHP General Mailing Li
garbage-collector does it automaticly.
--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk
Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
Jonas Delfs [EMAIL PROTECTED] skrev i en meddelelse
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Can mysql_fetch_*() work on the resultpointer that mysql_query() returns,
only, or does the rows have to be in the database when fetching?
I know that mysql_query() finds the specif
ngs like that, but of cause I
can't remember it's name. :)
--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk
Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC
--
PHP General Mailing List (http://www.php.net/)
To unsubs
that
we're not depending on the database anymore.
--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk
Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases. - IDC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
71 matches
Mail list logo