you expect:
genus
ontophaugs332
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 message from 19th november, called "php
> DOM question"
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 u
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:
>
> header('set content-ty
ml:
http://www.w3.org/2001/XInclude";>
xinclude: book.xml not found
foo.xml:
sfsd
The output of test.php is nothing plain white space.
Any help is appreciated.
thanks in advance Jonas
--
PHP
.$description.''.
'Hair: '.$hairdresser.''.
'Make: '.$makeup;
mail('[EMAIL PROTECTED]',$subject,$text,"From: $forname $lastname
<$mail>");
?>
The mail looks like this when recived:
F-namn: JL-namn: RBirth: 12Address: 34Zip: 56City:
78Phone: 90Mail: [EMAIL PROTECTED]Desc: NHair: hairMake:
makeup
Thanks in advance // 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
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
-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)!
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-
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
ed 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
I use 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
e rows with
the code I got from 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
-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 meddelan
-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
ars/arrays that I haven't
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 //
-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($s
-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 (h
alespersons[$count])} 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: [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 bee
-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
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
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 -> D
-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 t
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?
while($ro
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
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
&g
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
hat if I put the tag 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
ay_push($$row[3], $new_value);
}
}
}
}
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
Nothing.
// Jonas
Den 06-05-04 14.40, skrev "Jay Blanchard" <[EMAIL PROTECTED]>:
> [snip]
> $colors =
> array('white'=>'#ff','black'=>'#00','blue'=>'#ff');
> [/snip]
>
> What
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 c
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
=> '1500',
'BT' => '2000'
);
// Jonas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
f I write: echo $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
oesn't work:
$test[$row[2]] = $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 regardi
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' =>
w you how it works in Lasso while
I'm talking about.
Could look like this:
(find: 'blue');
?>
The result you get is #ff.
Can you do something like this with PHP. Would help me alot if anyone could
help me out a bit.
Thanks in advance // Jonas
--
PHP General Mailing L
T)/86400;
>
> I get 143.95833
>
> Why don't I get 144?
>
> 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
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
tname','testurl',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 work
$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.
Checked by AVG anti-virus system (http://www.grisoft.c
n use constructs like "select
id,name from site where comment is null;"
Not a problem on this specific table but on another table where I'm about to
write the insert-script it is a
Huge problem!
Many thanks if someone has a good solution for this!
---
"... and pray that the
igent 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://www.grisoft.com).
Version: 6.0.501 / Virus Database: 299 - Release Date: 20
Granted, my server 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
" to beging with? If I'm not mistaken
,"name" isn't filled 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
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
t the very end of the $uploaddir
variable but that just leaves me with this error-message 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 co
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
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 (http://www.p
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=kemu&passwd=test&submit=login
I don't like it that you can know the passwd
is the
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
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);
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);
pdf
this is my code
I can't save the pdf file on server cause webserver doesn't have write
permission to the dir I normally wanted to be in
but I just want to generate a pdf file and send it as attachement with email
how can I do this by generating the pdf in memory
--
PHP General Mailing List (
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 nee
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 Mail
o I sort
alphabeticly 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
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
P doesn't care which database you use, so you won't find 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
"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()
"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 Regard
lot, you get a lot. If you pay
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/)
utton then the color will send to form2.php
> I want not click on the submit button
> i make a selection in the drop down menu then the color will send
automatic
> to form2.php, how can I do this
PHP is serverside - and this is why you can't du it in PHP. Try asking in a
javascript-gr
user
> login on one main place?
> All the sites would be on the same server.
You use sessions, and transports the session-id pr. URL or in a cookie where
you specifi the domainnames that should be able to access that cookie.
--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk
"Develo
ion time, the cookie expires as soon
> as quit the browser. Can I use date instead 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
J
rd function for setting things 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
--
"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
I
> destroy that session?
The 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://w
ing
and
> then store it to a file?
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 database
"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
hy is it that you still uses PHP3?
--
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: [
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
74 matches
Mail list logo