Re: [PHP] E-Mail Attachment Filename Encoding Problem

2009-02-16 Thread Carl-Fredrik Gustafsson
Per Jessen schrieb: Edmund Hertle wrote: my problem is that I send an e-mail with an attachment (pdf file). I get the filename out of a mysql table. While using echo or downloading the file, the filename is showed as expected but as an attachment it is not properly encoded: Should be: PC-Bescha

Re: [PHP] Re: Simple PHP setting arrays with keys question

2007-07-10 Thread Fredrik Thunberg
Jim Lucas wrote: Fredrik Thunberg wrote: Dan skrev: Oh yeah, the problem isn't that I'm using -> instead of =>. Well that was a problem but I fixed that and it's still not working. - Dan ""Dan"" <[EMAIL PROTECTED]> wrote in message new

Re: [PHP] Re: Simple PHP setting arrays with keys question

2007-07-10 Thread Fredrik Thunberg
Dan skrev: Oh yeah, the problem isn't that I'm using -> instead of =>. Well that was a problem but I fixed that and it's still not working. - Dan ""Dan"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I'm having a little problem assigning a value to an array which has a key. I

Re: [PHP] A very strange loop!

2007-07-09 Thread Fredrik Thunberg
No, that won't work Either use != 'AA' or for( $i = ord('A'); $i <= ord('Z'); $i++) { echo chr( $i ) . ' '; } Jason skrev: Because you need $i<= 'Z' to get Z included as well. J At 08:49 09/07/2007, Xell Zhang wrote: Hello all, I met a very strange problem today. Take a look at the codes

Re: [PHP] A very strange loop!

2007-07-09 Thread Fredrik Thunberg
For exactly the same reason as for( $i = 0; $i < 10; $i++) produces 0-9 It loops whule $i is lesser than 'Z' When $i becomes 'Z' it stops and doesn't echo But i guess you're having trouble with (note the '<='): for ($i = 'A'; $i <= 'Z'; $i++) { echo $i . ' '; } This might produce a "wie

Re: [PHP] Re: spliting the elements in array

2007-07-04 Thread Fredrik Thunberg
Stut skrev: sivasakthi wrote: Thanks for your response.. Actually i have the collections of strings like, $not_quite_an_array = 'squid %tu %tl %mt %>A test %st.%hs %>a % $names = array(); foreach (explode("\n", $not_quite_an_array) as $line) { $line = trim($line); if (strlen($line) ==

Re: [PHP] Date Calculation Help

2007-07-02 Thread Fredrik Thunberg
of course ceil( month / 3 ); -- /Thunis Don't panic. --The Hitchikers Guide to the Galaxy Fredrik Thunberg skrev: $q = ceil( month / 4 ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date Calculation Help

2007-07-02 Thread Fredrik Thunberg
$q = ceil( month / 4 ); -- /Thunis The ships hung in the sky in much the same way that bricks don't. --The Hitchikers Guide to the Galaxy revDAVE skrev: I have segmented a year into four quarters (3 months each) nowdate = the month of the chosen date (ex: 5-30-07 = month 5) Q: What is the

Re: [PHP] shuffle or mt_rand

2007-06-29 Thread Fredrik Thunberg
Just did a quick benchmark for 10.000 hands (making a full deck on your code, 23.5 players): Microtime difference: Ryan's code:15.725826978683 Tijnema's code:0.40006709098816 Unique decks out of 1: Ryan's code:1 Tijnema's code:1 When making a full deck my code is 40 times faster

Re: [PHP] Date

2007-06-20 Thread Fredrik Thunberg
Ron Piggott skrev: How do I break $start_date into 3 variables --- 4 digit year, 2 digit month and 2 digit day? $start_year = ; $start_month = ; $start_day = ; Of course depending on what $start_date looks like, but this should work most of the time: $timestamp = strtotime( $start_date );

Re: [PHP] Selecting a special row from the database

2007-05-04 Thread Fredrik Thunberg
Edward Kay skrev: -Original Message- From: Marcelo Wolfgang [mailto:[EMAIL PROTECTED] Sent: 04 May 2007 14:37 To: php-general@lists.php.net Subject: [PHP] Selecting a special row from the database Hi all, I'm building a news display page for a website, and since the user has 2 ways

Re: [PHP] Limit query results

2007-05-04 Thread Fredrik Thunberg
"GROUP BY whatever_id_you_want" in the SQL Dan Shirah skrev: Good Morning everyone. In the below code I am pulling records from two tables. the records are tied together by a common key in a 3rd table. Everything works correctly down to the $result. // Connect to the database $connection =

Re: [PHP] Split string

2007-05-02 Thread Fredrik Thunberg
Lester Caine skrev: Can someone with a few more working grey cells prompt me with the correct command to split a string. The entered data is names, but I need to split the text up to the first space or comma into one string, and the rest of the string into a second. It's the 'first either spa

[Fwd: Re: [PHP] a little math]

2007-04-20 Thread Fredrik Thunberg
Don't know your problem but: if $totalTime is total length in seconds $minutes = floor($totalTime / 60); $seconds = $totalTime % 60; /Fredrik Sebe skrev: maybe someone can figure why sometimes i get negative values for seconds.. $job['finished'] and $job['finished'

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Fredrik Thunberg
marcelo Wolfgang skrev: Hi all, I'm new to this list and new to php programming so sorry if I do something wrong here :) Ok, now to my problem. I've created a query to update a mysql db, and it isn't working, and it's not throwing me any errors, so I need some help to figure out what's wro

Re: [PHP] Setting printf results as a variable

2007-02-09 Thread Fredrik Thunberg
Stephen wrote: Hi list, I'm trying to make a script which requires that I perform a printf() formatting on a string, but instead of outputting the result I need to set the result as a variable to write to a file. Can any one advise me on how to do this? or if it's even possible? Kind regards,

Re: [PHP] convert date to reversed date

2007-01-30 Thread Fredrik Thunberg
date("Ymd", strotodate( $value )); Of course I mean: date( "Ydm", strtodate( $value )); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] convert date to reversed date

2007-01-30 Thread Fredrik Thunberg
Reinhart Viane skrev: Is this a good way to convert 01/02/2007 to 20070201 $value='01/02/2007'; list($day, $month, $year) = split('[/.-]', $value); $filename=$year.''.$month.''.$day; It does work but i would like to verify if there are no better, more logical ways to do this. Thanks

Re: [PHP] Forms and destroying values

2007-01-12 Thread Fredrik Thunberg
It doesn't help to reset any values. The form data is being resent by the browser itself, just if the user presses the submit button again with the same data. What you could do is mabye use a session to see if the particular user has sent form data before. /Fredrik Thunberg Beauford

Re: [PHP] Sort Array not working

2007-01-09 Thread Fredrik Thunberg
Hi sort returns a bool, the sorted array passed by reference. So try: $result = sort( $array ); //Now $array is sorted print_r( $array ); /Fredrik Thunberg Kevin Murphy skrev: I'm having trouble sorting an array. When I do, it empties the array for some reason. Take the following

Re: [PHP] EZ array problem - What's wrong with my brain?

2006-12-01 Thread Fredrik Thunberg
Try $try = $var["1.2"]; If your array looks like the one below then there is no $var[0] and therefore you get NULL /Thunis Brian Dunning skrev: That seems right to me too - but everything I try returns NULL. I set $try=$var[0], and $try ends up being null; print_r($try) gives blank. I even

Re: [PHP] Tidy HTML source?

2006-11-29 Thread Fredrik Thuresson
of the reasons why I chose to move it out of the php code. No doubt, is your solution impressive for the purpose it serves. I did not mean to offend you in any way. GL. Fredrik > > - Original Message - > From: "Fredrik Thuresson" <[EMAIL PROTECTED]> > To: &

Re: [PHP] Tidy HTML source?

2006-11-28 Thread Fredrik Thuresson
"At one point or another plain HTML has to be generated. " Care to give me an example? I never generate any html in my php code anymore. It's not very pretty when your code looks like echo "\n\t\t\t\t\t\t"; Is that not a form of a templating engine that your are b

[PHP] GD - Problem writing text

2006-11-23 Thread Fredrik Thunberg
ype Linkagewith TTF library" is set on the faulty one. Can this be the problem? Cheers /Fredrik Thunberg [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] imagecreatefromjpeg() uses too much memory

2006-03-28 Thread Fredrik Enestad
The image I'm trying is 2848x2144 @ 2,13MB so its pretty big.. An other user in this mail-group asked me if ImageMagick existed on the server, but I'm pretty new to all this, and I don't actually know how to check if it does? Thanks for taking the time Fredrik 2006/3/28, Richar

[PHP] imagecreatefromjpeg() uses too much memory

2006-03-28 Thread Fredrik Enestad
roblem. Do any of you know any other way to solve this problem? -- Thanks Fredrik

Re: [PHP] Re: SESSION and include

2006-02-08 Thread Fredrik Tillman
guess PHP is set to drop $_SESSION variables... $main="../page.php"; require($main); Works fine. Thanks for all your time and help! /Fredrik Jochem Maas wrote: your problem is probably the fact that when you include page.php you are in effect calling session_start() twice - no idea

Re: [PHP] Re: SESSION and include

2006-02-08 Thread Fredrik Tillman
from last page the user was on, so in my script it is not defined but I put the code here to let you see it...) */ $main="page.php" ?> [ Some working code here ] } IN PAGE.PHP [More code here] Can you see anythin

Re: [PHP] Re: SESSION and include

2006-02-08 Thread Fredrik Tillman
I also tried require...) If I access page.php directly (by writing the URL in my browser) things like if ("1"==$_SESSION[user_level]) { let this stuff happen } will work just fine, but when page.php is included in mainpage the $_SESSION[user_level] is empty for that included pa

[PHP] SESSION and include

2006-02-08 Thread Fredrik Tillman
en it is included in that main page. Whats am I missing? /Fredrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] actually the è not the ampersand

2005-11-04 Thread Fredrik Tolf
"image" => 8465, "real" => 8476, "trade" => 8482, "alefsym" => 8501, "larr" => 8592, "uarr" => 8593, "rarr" => 8594, "darr" => 8595,

Re: [PHP] Re: PHP from CLI with SAPI

2005-07-18 Thread Fredrik Tolf
On Mon, 2005-07-18 at 20:44 +0100, Mikey wrote: > Catalin Trifu wrote: > >Fredrik Tolf wrote: > >>I've begun to be more and more displeased with Apache lately, so I've > >>been thinking of writing my own HTTP server instead. I still want PHP > >>supp

Re: [PHP] PHP from CLI with SAPI

2005-07-18 Thread Fredrik Tolf
On Mon, 2005-07-18 at 15:57 -0400, Evert | Rooftop wrote: > Fredrik Tolf wrote: > >I've begun to be more and more displeased with Apache lately, so I've > >been thinking of writing my own HTTP server instead. I still want PHP > >support, but writing a new S

[PHP] PHP from CLI with SAPI

2005-07-18 Thread Fredrik Tolf
a short intro to it? Thanks for reading! Fredrik Tolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unix sockets and fsockopen

2005-07-16 Thread Fredrik Tolf
5. I don't think I asked for the PHP versions of the others. So, what is one supposed to do with this really? Is there any particular way that I can detect if I should use "unix://" and prepend it if necessary? If you don't mind me asking, what's the reason for this in

[PHP] Check for doubleposts

2005-05-04 Thread Fredrik Arild Takle
regards Fredrik A. Takle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] display imap inline image?

2005-01-28 Thread Fredrik Hampus
t to an image/jpeg? The output look like this.. LS0tLS0tPV9QYXJ0XzEyNzk4NjFfNTUz... and so on The reason the header line above is comment out is that when enable it doesn't print out anything but an little frame whith the text image. /Fredrik -- PHP General Mailing List (http://www.php.ne

[PHP] display imap attached files?

2005-01-21 Thread Fredrik Hampus
echo ""; } return ''.$parttypes[$struct->type]."/".strtolower ($struct->subtype).""; endswitch; } $struct = imap_fetchstructure ($mbox, $mno); echo buildparts ($struct); imap_close($mbox); ?> This will display how many parts there is in the mail and the size of each one of them and what type they are. but how do a display the image of an attached jpg file on a webpage? //Fredrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] String replace inside

2005-01-07 Thread Fredrik Arild Takle
$string = eregi_replace("base\/image.php", "image.php", $string); Solution? Best Regards -Fredrik A. Takle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-I18N] How to get WIN-1255 encoded string

2004-11-07 Thread Fredrik Tolf
On Sun, 2004-11-07 at 20:42 +0100, Fredrik Tolf wrote: > On Sun, 2004-11-07 at 13:57 +0200, Marina Markus wrote: > > Is there a possibility in PHP allowing to encode a string > > with WIN-1255 character set encoding? The result should look like: > > > > =?windows-125

[PHP] Re: [PHP-I18N] How to get WIN-1255 encoded string

2004-11-07 Thread Fredrik Tolf
take values which are already in the UTF-8 encoding. If your values aren't in UTF-8, take a look at the iconv function. > If anyone has a solution for another character set, I suppose it can also > help. I'd recommend that you use UTF-8 instead. It's more general than Windows-1255 (copes with characters outside the Hebrew range), and is probably supported by more MUAs. Hope it helps! Fredrik Tolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] local (config) value not overriding master

2004-03-16 Thread Fredrik de Vibe
be missing something important here (probably am), but I can't see why (tried googling and going through the docs, but I couldn't see any reference to this). Can anybody shed some light here? Thanks in advance. -- - Fredrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Java and PHP

2003-11-21 Thread Fredrik
Hi I want to start a java system from a php script, anybody who know how i can do that. Something like this: if(isset($trigger)){ java javasystem -scenario; } Is this possible and how can i do it. -Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

[PHP] date from weeknumber

2003-11-20 Thread Fredrik
Hi I want to get the last date in a week. Is there anybody who know how i can do this. something like this: function date getDateFromWeek( $week, $year){ ... ... return date; } - Petter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] Re: Including text with PHP and keeping blanks

2003-06-16 Thread Fredrik Fornwall
s, I only really care about indenting)!. Fredrik. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Including text with PHP and keeping blanks

2003-06-16 Thread Fredrik Fornwall
creating a separate file first. Any suggestions? Thanks, Fredrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] array into another site

2003-03-25 Thread Fredrik
Hi I have an PHP array and want to send it into another PHP site. $arr = array(251,1,23,54,15,135,1651,156,13,123,321,123,32,54,654,456,32,1); ?> ','windowname','toolbar=no, location=no, directories=no, status=n

[PHP] remove ' from string

2003-03-19 Thread Fredrik
Hi Any functions to remove'from a longstring? Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail() function.

2003-03-19 Thread Fredrik
Hi I have a problem whith the mail() function. I have used this function several times, but to day it don't work.. I use it like this: mail( $to, $subjekt, $body, $from ); and i got this warning: Warning: Failed to Connect in \\HQ-ADMIN\mail.php on line 237 Fred -- PHP General

[PHP] date check

2003-03-12 Thread Fredrik
Hi I want to check if $var > 14 days or $var < 14 days ($var = $date2 - $date1) $date1 = "2003-01-16"; $date2 = "2003-03-16"; How can i check this? Are there any functions for this or do i have to make one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP] Char check

2003-02-13 Thread Fredrik
Hi I want to check if $var is a char or an int. Freddy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date check

2003-02-11 Thread Fredrik
Hi I have to dates that i want to check who is biggest. This does not work: if( $date1 > $date2){ How can i check them? Svein Olai -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Advanced PHP Debugger

2003-01-30 Thread Fredrik Johansson
Hey, Where can I find a compiled php_apd.dll for Windows 2000 / PHP 4.3.0? If you have it, it would be great if you could send it to me (to me personally and not the list). Thanks! // Fredrik Johansson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Advanced PHP Debugger

2003-01-05 Thread Fredrik Johansson
Hi, If someone out there has an .dll file for the Advanced PHP Debugger (APD) extension to run i Windows 2000 (PHP version 4.2.2) I would be glad if you could send it to me. I have tried to compile one myself but has failed each and every time :( Regards, Fredrik Johansson -- PHP General

[PHP] Session, performance, timeout

2002-07-10 Thread Fredrik Nygren
etime. My question is: how does increased sessions affect the performance? Best regards Fredrik Nygren -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: [php-objects] XML parser vs objects

2002-05-21 Thread Fredrik Davidsson
Handles closing of tags! / } } Best regards Fredrik Davidsson Alfaproject AB -Original Message- From: Mirek Novak [mailto:[EMAIL PROTECTED]] Sent: den 21 maj 2002 14:52 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Su

[PHP] help: eregi problem (?)

2002-05-02 Thread Fredrik Arild Takle
Hi, I'm doing: eregi("$start(.*)end", $rf, $my_var); And I want it to stop at the first presedence of $end, not the last (thats what this is doing). Any hints? Best Regards Fredrik A. Takle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] eregi

2002-05-02 Thread Fredrik Arild Takle
Hi, I'm doing: eregi("$start(.*)end", $rf, $my_var); And I want it to stop at the first presedence of $end, not the last (thats what this is doing). Any hints? Best Regards Fredrik A. Takle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] XML to HTML?!

2002-05-01 Thread Fredrik Arild Takle
"Miguel Cruz" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wed, 1 May 2002, Fredrik Arild Takle wrote: > >>>Wrap into a output buffer. ob_start, ob_get_contents > > > > This was neat. > >

Re: [PHP] XML to HTML?!

2002-05-01 Thread Fredrik Arild Takle
>>Wrap into a output buffer. ob_start, ob_get_contents This was neat. I did: ob_start(); $myvar = ob_get_contents(); But it still outputs the page, can I disable that? Regards Fredrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] XML to HTML?!

2002-04-30 Thread Fredrik Arild Takle
Hi, this might be a silly question, but I really haven't used XML alot with PHP. I've parsed some XML, when I do xml_parse it outputs the html-codes. I want to make a variable out of it, so I can write it to a file. I've tried $output = xml_parse(); -- PHP General Mailing List (http://www.ph

[PHP] Parsing XML

2002-04-30 Thread Fredrik Arild Takle
Hi, this might be a silly question, but I really haven't used XML alot with PHP. I've parsed som XML, when I do xml_parse it outputs the html-codes. I want to make a variable out of it.. I've tried $output = xml_parse(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] eregi_replace

2002-04-04 Thread Fredrik Arild Takle
hpshop.php on line 28 Warning: REG_EESCAPE:~trailing backslash (\) in D:\Inetpub\wwwroot\www_lobb\phpshop.php on line 29 Best Regards Fredrik A. Takle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] eregi_replace

2002-04-04 Thread Fredrik Arild Takle
Why won't this work? $NoteNm[$i] = eregi_replace ("V:\memo\F0001\", "", "$NoteNm[$i]"); $NoteNm[$i] = eregi_replace ("\\LOBBY\VismaDok\Memo\", "", "$NoteNm[$i]"); Best Regards Fredrik A. Takle Norway -- PHP Gener

[PHP] Security Issue?!

2002-02-13 Thread Fredrik Arild Takle
...? Best Regards Fredrik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Difference between i586 RPM and SRC.RPM?

2002-01-24 Thread Fredrik Wahlberg
src.rpm is the source code packaged in an rpm-file. If you install it as rpm --rebuild it will compile a binary rpm for you. If you use Redhat you can find the binary rpm in /usr/src/Redhat/RPMS i586.rpm is a compiled binary for the i586-platform architecture /Fredrik

[PHP] PHP + GD 2.0.1 + WIN2K

2001-12-29 Thread Fredrik Arild Takle
I have a win2k machine set-up with iis 5.0, php 4.1.0 and now I want to use image_copy_resample() image_copy_resample() is not working in the version of gd included in php 4.1.0. Where should I download the .dll for version 2.0.1? Regards Fredrik A. Takle -- PHP General Mailing List (http

[PHP] Re: redirect

2001-11-22 Thread Fredrik Wahlberg
Make sure that you have no blank spaces before the wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi I 'm newbie with php and i have a small problem. I have a script that uploads 4 pictures But when that is done there has to be a redirect to an other page. but i keep getting the

[PHP] Re: RPM Installation Did Not Install PHP Modules

2001-11-19 Thread Fredrik Wahlberg
her place on my system (after a find...). > Try "rpm -qa |grep php" in the commandline. You should see at least php there, but you probably want to find php-mysql, php-pgsql etc also. If you get no output, the php is not installed. Insert the cd, goto the RPMS directory and do &qu

[PHP] Re: Windows 2000 Permissions error

2001-10-19 Thread Fredrik Arild Takle
I guess you have to set EVERYONE. (Don't now for sure) Fredrik A. Takle "Justin King" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... While trying to use dir() on a certain directory, I get the error "Warning: OpenDir: Invalid

[PHP] Performance question

2001-10-18 Thread Fredrik Wahlberg
page, but I would sure like to hear a few arguments on how to plan for performance. /Fredrik -- -- Fredrik Wahlberg Tel: 08-54 54 56 12 Fusage Fax: 08-54 54 56 10 Kungstensgatan 38a Mobil: 070-576 16 51 113 59 STOCKHOLM

[PHP] Re: Checking if session has been started

2001-09-22 Thread Fredrik Arild Takle
session_start(); $valid_session = true; session_register("valid_session"); OR SOMETHING LIKE THIS? if (session_is_registered($valid_session)) { // Do something?! } "Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Why not populate a

[PHP] Re: check if user exists

2001-08-01 Thread Fredrik Arild Takle
$result = mysql_query("SELECT uname FROM users WHERE uname=\'$username@$domain\'"); $numrows = mysql_num_rows($result); if ($numrows == '1') { echo "User already exists"; } else { echo "User don't exist"; } Best Regards Fredrik A. Ta

[PHP] Re: function that will print the url for embedded links

2001-08-01 Thread Fredrik Arild Takle
ffical PHP-site (http://www.php.net) Hope this works! Best Regards Fredrik A. Takle ElanIT <[EMAIL PROTECTED]> wrote in message BB6D932A42D6D211B4AC0090274EBB1D2EF03B@GLOBAL1">news:BB6D932A42D6D211B4AC0090274EBB1D2EF03B@GLOBAL1... > I'm looking for a way to have a url for a link &

[PHP] Re: Hmmm?

2001-08-01 Thread Fredrik Arild Takle
I think it's impossible to read/understand my own scripts if i don't do it. Do: "; for ($ii = '1'; $ii <= '32' $ii++) { echo $ii." "; } } echo "All done!"; ?> instead of: "; for ($ii = '1'; $ii <

[PHP] Re: PHP EDITOR 4 WINDOWS?

2001-08-01 Thread Fredrik Arild Takle
Codewhiz is great. Remember to download php-language-files if you want syntax-highlighted-code (or something!) Best Regards Fredrik A. Takle "Kyle Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Does it really exist? If so coul

[PHP] Re: download a pdf file

2001-07-26 Thread Fredrik Arild Takle
Like this? Best Regards Fredrik A. Takle Bergen, Norway "Kaab Kaoutar" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi > I looked in the php manual for how to download a

[PHP] Custom Headers?

2001-07-17 Thread Fredrik A. Takle
Can I send like custom headers? header ("Resolution: 1024"); and echo it in the phpscript? Can I do this or is it a silly question? Best Regards Fredrik A. Takle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

[PHP] Re: Output (Urgent!)

2001-07-17 Thread Fredrik A. Takle
Don't like it 'cause it is client-side, but it works fine! ...Fredrik:) "Elias" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Well, Yes... > you have to stick to JavaScript + JavaScript and not JavaScript + PHP! >

[PHP] Re: Output (Urgent!)

2001-07-17 Thread Fredrik A. Takle
This fixed it, but I don't like it! If you have any other suggestions, feel free to email me. if (screen.width >= 1024) { var resolution = ("1024") } else { var resolution = ("800") } Best Regards Fredrik A. Takle "Fredrik A -- PHP General

[PHP] Output (Urgent!)

2001-07-17 Thread Fredrik A. Takle
Why doesn't this work? Any ideas?! $resolution = "document.write(screen.width)"; if ($resolution >= '1024') { $resolution = "1024"; } else { $resolution = "800"; } echo $resolution; It always output 1024 Best regards Fredrik A.

Re: [PHP] protected Images without using htaccess

2001-06-22 Thread Fredrik Arild Takle
added the wrong script... arghh... ""Fredrik Arild Takle"" <[EMAIL PROTECTED]> wrote in message 9gvl19$er6$[EMAIL PROTECTED]">news:9gvl19$er6$[EMAIL PROTECTED]... > 1. Authenticate user > 2. Put the pictures in a "secret" folder or outside h

[PHP] Is this a joke?!

2001-06-22 Thread Fredrik Arild Takle
Is this a joke? http://www.perl.com/search/index.php *hehe* -- 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]

Re: [PHP] protected Images without using htaccess

2001-06-22 Thread Fredrik Arild Takle
1. Authenticate user 2. Put the pictures in a "secret" folder or outside http_root 3. Do this: I hope this helps! Fredrik A. Takle [EMAIL PROTECTED] www.iportal1.com ""Arash Dejkam"" <[EMAIL PROTECTED]> wrote in message 9gvk5g$8o0$[EMAIL PROTECTED]"&

Re: [PHP] Retrieve datevalues from seconds

2001-06-21 Thread Fredrik Arild Takle
Check: http://www.php.net/mktime Fredrik:) ""David Lidström"" <[EMAIL PROTECTED]> wrote in message 9gs9a8$bdo$[EMAIL PROTECTED]">news:9gs9a8$bdo$[EMAIL PROTECTED]... > Hi! > > If i have a number of seconds, i.e. 30667 - is there > any easy way

Re: [PHP] how to format a date variable

2001-05-17 Thread Fredrik de Vibe
the format of the $OrderDate string will be '-MM-DD HH:MM:SS'. I haven't tried, but this should work: There's probably heaps of ways to do this, but this is (hopefully) one. <http://www.php.net/manual/en/function.split.php> --Fredrik -- PHP General Mailing List

[PHP] ftp_nlist not listing directories

2001-05-17 Thread Fredrik de Vibe
nybody know why this is? I've heard that there were serious bugs / security issues in wu-ftp 2.5.0. Is the function ftp_nlist() based on a bug in wu-ftp in order to work with directories or is there something else causing this? Could this be a bug in PHP? --Fredrik -- PHP General Mailing

Re: [PHP] About MySQl and Transactions

2001-05-09 Thread Fredrik Rodland
I don't think MySql does not have support for transactions. Try using another DB - like postgres. Fredrik On Wed, 9 May 2001, Hassan Arteaga wrote: > Hi all !!! > > I'd like to implement this pseudocode > > 1-open connection with MySQL > 2-beintransaction > 3-

SV: [PHP] if... then... else with HTML

2001-04-23 Thread Fredrik Wahlberg
I hope I understood your question right. You can do like this html text other html > -Ursprungligt meddelande- > Fran: Martin Thoma [mailto:[EMAIL PROTECTED]] > Skickat: den 23 april 2001 14:41 > Till: [EMAIL PROTECTED] > Amne: [PHP] if... then... else with HTML > > > Hell

[PHP-CVS] cvs: php4 /ext/cpdf cpdf.c php_cpdf.h

2001-03-30 Thread Fredrik Öhrn
ohrnFri Mar 30 12:36:19 2001 EDT Modified files: /php4/ext/cpdf cpdf.c php_cpdf.h Log: Implemented cpdf_set_viewer_preferences (previously a stub). Added new functions: cpdf_set_font_directories and cpdf_set_font_map_file. Index: php4/ext/cpdf/cpd

[PHP-CVS] cvs: php4 /ext/standard rand.c

2001-03-20 Thread Fredrik Öhrn
ohrnTue Mar 20 12:48:43 2001 EDT Modified files: /php4/ext/standard rand.c Log: Fix erronous out of bounds error message in rand(min,max) Index: php4/ext/standard/rand.c diff -u php4/ext/standard/rand.c:1.25 php4/ext/standard/rand.c:1.26 --- php4/ext/st

[PHP-CVS] cvs: php4 /ext/yp yp.c

2001-03-20 Thread Fredrik Öhrn
Tue Mar 20 12:04:41 2001 @@ -16,7 +16,7 @@ | Fredrik Ohrn| +--+ */ -/* $Id: yp.c,v 1.18 2001/03/20 12:50:26 sas Exp $ */ +/* $Id: yp.c,v 1.19 2001/03/20 20:04:41

Re: [PHP-CVS] cvs: php4 /ext/yp CREDITS php_yp.h yp.c

2001-03-19 Thread Fredrik Ohrn
cept for Use-the-source-Luke? Does the id returned from ts_allocate_id need to be deallocated again in PHP_MSHUTDOWN_FUNCTION or is that done automatically? Regards, Fredrik -- Do fish get thirsty? Fredrik Öhrn Chalmers University of Technology [EMAIL PROTECTED]

[PHP-CVS] cvs: php4 /ext/yp yp.c

2001-03-19 Thread Fredrik Öhrn
+++ php4/ext/yp/yp.cMon Mar 19 09:01:35 2001 @@ -16,7 +16,7 @@ | Fredrik Ohrn| +--+ */ -/* $Id: yp.c,v 1.16 2001/03/18 22:16:46 ohrn Exp $ */ +/* $Id: yp.c,v 1.17 2001

[PHP-CVS] cvs: php4 /ext/yp CREDITS php_yp.h yp.c

2001-03-18 Thread Fredrik Öhrn
01 @@ -1,2 +1,2 @@ Yellow Pages -Stephanie Wehner +Stephanie Wehner, Fredrik Ohrn Index: php4/ext/yp/php_yp.h diff -u php4/ext/yp/php_yp.h:1.8 php4/ext/yp/php_yp.h:1.9 --- php4/ext/yp/php_yp.h:1.8Sun Feb 25 22:07:30 2001 +++ php4/ext/yp/php_yp.hSun Mar 18 14:16:46 2001 @@ -13

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/cpdf php_cpdf.h

2001-03-18 Thread Fredrik Öhrn
ohrnSun Mar 18 10:45:25 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/cpdf php_cpdf.h Log: Solved compile failure due to clash between IMAP and ClibPDF headers. Index: php4/ext/cpdf/php_cpdf.h diff -u php4/ext/cpdf/php_cpdf.h:1.6 php4/ext/cp

RE: [PHP-CVS] cvs: php4 /ext/cpdf php_cpdf.h

2001-03-18 Thread Fredrik Ohrn
o the > release branch (PHP_4_0_5). > > James > Yes, it's a compilation showstopper that has been around since the very beginning. I'll add it to 4.0.5. Regards, Fredrik -- Do fish get thirsty? Fredrik Öhrn

[PHP-CVS] cvs: php4 /ext/cpdf php_cpdf.h

2001-03-18 Thread Fredrik Öhrn
ohrnSun Mar 18 10:32:58 2001 EDT Modified files: /php4/ext/cpdf php_cpdf.h Log: Solved compile failure due to clash bewteen IMAP and ClibPDF headers. Index: php4/ext/cpdf/php_cpdf.h diff -u php4/ext/cpdf/php_cpdf.h:1.6 php4/ext/cpdf/php_cpdf.h:1.7 -

Re: [PHP] Tutorial for RegExpressions

2001-03-14 Thread Fredrik Wahlberg
I must recommend the book ”Mastering Regular Expressions” from O'Reilly. It is one of the best programming books I have ever read. /Fredrik >>>>>>>>>>>>>>>>>> Ursprungligt meddelande <<<<<<<<<<<&

Re: [PHP] Web Page/MySql

2001-03-13 Thread Fredrik Wahlberg
Read this (http://www.phpbuilder.com/columns/rod2221.php3) article over at phpbuilder which covers exactly that. /Fredrik >>>>>>>>>>>>>>>>>> Ursprungligt meddelande <<<<<<<<<<<<<<<<<&l

  1   2   >