Re: [PHP] source code protection

2005-02-26 Thread Gustav Wiberg
Hi there! What's the point of doing that? The PHP-codes are well protected if they are on a well configured server. /G @varupiraten.se - Original Message - From: "shabanip" <[EMAIL PROTECTED]> To: Sent: Saturday, February 26, 2005 4:43 PM Subject: [PHP] source code protection is there

[PHP] Apache and PHP

2005-02-28 Thread Gustav Wiberg
Hi there! I've just installed Apache on a new computer. (just for testing) It's Windows XP. I've then installed PHP and it says that Apache could be not configured automatically. Newbies question as hell probably but here it goes: I can access my Apache-server, I have the document-root to c:\webb

Re: [PHP] Apache and PHP

2005-02-28 Thread Gustav Wiberg
Hi there! Thanx! :-) I hope I can solve this myself now... :-) /G @varupiraten.se - Original Message - From: "dan" <[EMAIL PROTECTED]> To: Sent: Monday, February 28, 2005 11:23 PM Subject: Re: [PHP] Apache and PHP Gustav Wiberg wrote: Hi there! I've just inst

[PHP] Sessions and frames

2005-04-14 Thread Gustav Wiberg
Hi there! I have built my site into frames. I want to transfer a session-variable from my left frame to my right frame... How do I do this best? Thoughts? /G @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions and frames

2005-04-16 Thread Gustav Wiberg
Hi there! Thanx a lot, i thought it was like that, but I wasn't sure /G @varupiraten.se - Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" Sent: Friday, April 15, 2005

[PHP] Single SQL-statement in PHP to order...

2005-04-18 Thread Gustav Wiberg
Hi there! I guess this is off-topic? but I want to know if this is possible. (If there's anyone out there that have a solution, I would appreciate it though) I want to know if there is anyway of showing tables in PHP in an order like this in a single SQL-statement... Table is like this: IDCate

[PHP] Re: [PHP-WIN] Confused

2007-08-24 Thread Gustav Wiberg
AHA.. Thanx :-) /Gustav - Original Message - From: "John Mertic" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "Aaron Kenney" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, August 24, 2007 9:47 PM Su

[PHP] Why not user...?

2007-08-27 Thread Gustav Wiberg
Hi! Why is it so that I get this error. I'm using Windows Integrated authorization-method for actual webb I'm testing on. Notice: Undefined index: PHP_AUTH_USER in C:\www\utveckling\username.php on line 2 ? Best regards /Gustav Wiberg -- PHP General Mailing List (http://w

Re: [PHP] Why not user...?

2007-08-27 Thread Gustav Wiberg
Hi! Thanx! I figured it out. The username wasn't in server-variable PHP_AUTH_USER but in AUTH_USER Best regards /Gustav Wiberg - Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP Ge

[PHP] why?

2007-08-27 Thread Gustav Wiberg
7. What could be the problem? Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] windows auth with php

2007-08-27 Thread Gustav Wiberg
Should it be larger than 5.1.0 ? Is that why the authentication is not working automatically? (without logging in with username and password at first) I'm trying with IE6 and IE7... Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why?

2007-08-27 Thread Gustav Wiberg
Hi! No it doesn't seem to work locally either (I haven't tested myself, but a working-friend did) Best regards /Gustav Wiberg - Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP

Re: [PHP] why?

2007-08-27 Thread Gustav Wiberg
Hi! Ok. Of course Why didn't I think of that? Thanx! :-) Best regards /Gustav Wiberg - Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Monday, August 27, 2007 8:59 PM

Re: [PHP] why?

2007-08-27 Thread Gustav Wiberg
Hi! Yes, a single sign-on it is... It doesn't work together with Windows (and PHP) you mean? Best regards /Gustav Wiberg - Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Jay Blanchard" <[EMAIL PROTECTED]>; "Gustav Wiberg&q

Re: [PHP] Why not user...?

2007-08-27 Thread Gustav Wiberg
Hi! Thnank you for your input, but I used AUTH_USER-server variable instead of PHP_AUTH_USER and that did the trick! :-) Best regards /Gustav W iberg - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Stut" <[EMAIL PROTECTED]> Cc: &

[PHP] Open Source mailinglist?

2006-07-19 Thread Gustav Wiberg
ot doing advertising here, I'll skip the name :-) I can't seem to find any place on the net where you can discuss Open Source-related questions in general??? Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Open Source mailinglist?

2006-07-19 Thread Gustav Wiberg
hat-function located at IRC, and I don't want to install IRC. , but no mailinglists... (or else I'm blind) Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Quotes?

2006-09-05 Thread Gustav Wiberg
ork. tested diffrent types.. $str = ''; </pre><tt>$str = 'var uri = '<a rel="nofollow" href="http://impse.tradedoubler.com/imp/js/16350344/1122503">http://impse.tradedoubler.com/imp/js/16350344/1122503</a>?' + </tt><tt>ne

[PHP] Random pictures - not twice

2006-12-03 Thread Gustav Wiberg
Hi there! I have created a script the generates random pictures...    With this above script the same picture can be shown twice. Is there any smart way of avoiding this without having to rely on cookies/sessionids? Best regards /Gustav Wiberg Stammis Internet - http://www.stammis.com

Re: [PHP] Random pictures - not twice

2006-12-03 Thread Gustav Wiberg
7;m sure others have had similar questions and just havn't asked. -TG = = = Original message = = = Hi there! I have created a script the generates random pictures...    With this above script the same picture can be shown twice. Is there any smart way of avoiding this without having to

Re: [PHP] Random pictures - not twice

2006-12-04 Thread Gustav Wiberg
- Original Message - From: "tedd" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" Sent: Monday, December 04, 2006 4:15 PM Subject: Re: [PHP] Random pictures - not twice At 11:20 PM +0100 12/3/06, Gustav Wiberg

[PHP] RSS / XML

2006-02-25 Thread Gustav Wiberg
Hi there guys! Where is a good startpoint for learning XML Reader on a very, very basic level? (I appreciate links) Is RSS a technique for retrieving XML? I can't clue the pieces together... /G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] RSS / XML

2006-02-25 Thread Gustav Wiberg
- Original Message - From: "Weber Sites LTD" <[EMAIL PROTECTED]> To: "'Gustav Wiberg'" <[EMAIL PROTECTED]>; "'PHP General'" Sent: Saturday, February 25, 2006 7:37 PM Subject: RE: [PHP] RSS / XML Here are a

[PHP] Expat + PHP Examples...

2006-02-25 Thread Gustav Wiberg
Hi there! I've found out that I can use expat XML, but I can't figure out HOW to use... it seems simple, but I tried and can't figure it out... I'd like to get retrieve info from http://www.frisim.com/frisim/servlet/rss?searchString=google and convert it to html... I've read a lot a of text

[PHP] HOW update time and date-fields to mysql....

2006-02-28 Thread Gustav Wiberg
Hi there guys! I have used a date-field and a time-field in a mysql-database. How should I update these fields through php? This is my code now (it works fine locally with data on a win-machine, but not on Linux at my webhotel - Time doesn't work at all) function safeQuote($value) { // Str

[PHP] About date & time...

2006-02-28 Thread Gustav Wiberg
Hi Thanx for your input about date & time... Here's some functions that worked for me after some searching... function currenttime() { $today = getdate(); $ithours = $today["hours"]; if (intval($ithours)<10) { $ithours = "0" . $ithours; } $itminutes = $today["minutes"]; if (intval($ithours

Re: [PHP] About date & time...

2006-02-28 Thread Gustav Wiberg
- Original Message - From: "tedd" <[EMAIL PROTECTED]> To: ; "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Tuesday, February 28, 2006 4:17 PM Subject: Re: [PHP] About date & time... >Thanx for your input about date & time... Here's some f

Re: [PHP] About date & time...

2006-02-28 Thread Gustav Wiberg
- Original Message - From: "tedd" <[EMAIL PROTECTED]> To: ; "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Tuesday, February 28, 2006 4:17 PM Subject: Re: [PHP] About date & time... >Thanx for your input about date & time... Here's some f

Re: [PHP] About date & time...

2006-02-28 Thread Gustav Wiberg
- Original Message - From: "Grant Young" <[EMAIL PROTECTED]> To: Cc: <[EMAIL PROTECTED]> Sent: Tuesday, February 28, 2006 11:25 PM Subject: Re: [PHP] About date & time... Hi Gustav. I'm a swede, and I we use hours 0 - 24. 8 pm = 20 for us. 9 pm = 21 for us 10 pm = 22... and so

Re: [PHP] About date & time...

2006-02-28 Thread Gustav Wiberg
- Original Message - From: "tedd" <[EMAIL PROTECTED]> To: ; "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Tuesday, February 28, 2006 11:34 PM Subject: Re: [PHP] About date & time... Gustav: I'm a swede, and I we use hours 0 - 24. Well... I

[PHP] Mailto members..?

2006-03-01 Thread Gustav Wiberg
Hi guys! Anyone knows of something like this, but for free? http://www.webscriptsdirectory.com/PHP/E-Mail-Systems/Php-Newsletter-Script-L1237/ All I want to do is to send "a html mail" to all my members at http://www.stammis.com/ (swedish site for pedigrees). It would be a informative letter t

Re: [PHP] Mailto members..?

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "Kevin Davies - Bonhurst Consulting" <[EMAIL PROTECTED]> To: "'Jim Moseby'" <[EMAIL PROTECTED]>; "'Gustav Wiberg'" <[EMAIL PROTECTED]>; "'PHP General'" Sent: Wed

Re: [PHP] About date & time...

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "Marcus Gnaß" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, March 01, 2006 5:24 PM Subject: Re: [PHP] About date & time... Gustav Wiberg schrieb: function currenttime() { $t

Re: [PHP] Mailto members..?

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "Marcus Gnaß" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, March 01, 2006 5:29 PM Subject: Re: [PHP] Mailto members..? Gustav Wiberg schrieb: while ($dbArray = mysql_fetch_array($querys)) {

Re: [PHP] Mailto members..?

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "Jim Moseby" <[EMAIL PROTECTED]> To: "'Gustav Wiberg'" <[EMAIL PROTECTED]>; "Marcus Gnaß" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Wednesday, March 01, 2006 7:29 PM Subject: RE: [PHP

[PHP] internal error when mailing...

2006-03-01 Thread Gustav Wiberg
Here's my code if (strtoupper(substr(PHP_OS,0,3)=='WIN')): $eol="\r\n"; elseif (strtoupper(substr(PHP_OS,0,3)=='MAC')): $eol="\r"; else: $eol="\n"; endif; //Message Subject $emailsubject="Stammis Internet nyhetsbrev " . date("Y/m/d H:i:s"); //Message Body ob_start(); require("emailbody.php"

Re: [PHP] Mailto members..?

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "Jim Moseby" <[EMAIL PROTECTED]> To: "'Gustav Wiberg'" <[EMAIL PROTECTED]>; "Jim Moseby" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Wednesday, March 01, 2006 9:17 PM Subject: RE: [PHP]

Re: [PHP] internal error when mailing...

2006-03-01 Thread Gustav Wiberg
- Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Wednesday, March 01, 2006 9:57 PM Subject: Re: [PHP] internal error when mailing... Gustav Wiberg wrote: Here's my code if (strtoupper(su

[PHP] Only 4 of 5...

2006-03-02 Thread Gustav Wiberg
Hi there! What's wrong here?? 0) { ?> Visa telefonbilder för : 0) { $dbNameManufacturer = $dbArray["nameManufacturer"]; ?> Visa telefonbilder för : Alla telefonbilder i arkivet: height="130"> I have 5 posts in the table, but the images shown are only four! Why? /G -- PH

Re: [PHP] Only 4 of 5...

2006-03-02 Thread Gustav Wiberg
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Thursday, March 02, 2006 11:05 PM Subject: RE: [PHP] Only 4 of 5... [snip] I have 5 posts in the table, but the images shown are only four! Why? [/snip] Are you counting starting with 1 or 0? Don't unders

Re: [PHP] Only 4 of 5...

2006-03-02 Thread Gustav Wiberg
- Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Thursday, March 02, 2006 11:15 PM Subject: RE: [PHP] Only 4 of 5... [snip] while ($dbArray = mysql_fetch_array($querys)) { $dbIDPic = $dbArray["IDPic"]; $dbPicNameSmall = $dbArray["picNameSmall"];

Re: [PHP] Only 4 of 5...

2006-03-02 Thread Gustav Wiberg
- Original Message - From: "Thorsten Suckow-Homberg" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" Sent: Thursday, March 02, 2006 11:13 PM Subject: Re: [PHP] Only 4 of 5... Because of this: $dbArray = my

Re: [PHP] Only 4 of 5...

2006-03-03 Thread Gustav Wiberg
- Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "PHP General" Sent: Friday, March 03, 2006 2:30 AM Subject: Re: [PHP] Only 4 of 5... Gustav Wiberg wrote: Hi there! What's wrong here?? You're pulling the first row here i

Re: [PHP] Re: DOMElement::setAttribute() manual example question

2006-03-03 Thread Gustav Wiberg
- Original Message - From: "Rob" <[EMAIL PROTECTED]> To: "Andreas Korthaus" <[EMAIL PROTECTED]> Cc: Sent: Friday, March 03, 2006 4:43 PM Subject: [PHP] Re: DOMElement::setAttribute() manual example question Andreas Korthaus wrote: Hi! I've a question regarding the example in DOMElem

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Gustav Wiberg
- Original Message - From: "Mark Steudel" <[EMAIL PROTECTED]> To: Sent: Friday, March 03, 2006 7:46 PM Subject: [PHP] Coding Practice: Use global $var or pass in by refernce I was wondering what the general rule on using the global driective versus passing in a variable by reference,

Re: [PHP] Re: DOMElement::setAttribute() manual example question

2006-03-03 Thread Gustav Wiberg
- Original Message - From: "Rob" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "Andreas Korthaus" <[EMAIL PROTECTED]>; Sent: Friday, March 03, 2006 8:04 PM Subject: Re: [PHP] Re: DOMElement::setAttribute() manual exam

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Gustav Wiberg
- Original Message - From: "Andreas Korthaus" <[EMAIL PROTECTED]> To: ; "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Friday, March 03, 2006 8:53 PM Subject: Re: [PHP] Coding Practice: Use global $var or pass in by refernce Hi Gustav! Gustav Wiberg wrot

[PHP] Swedish sourgeforge for php-prg

2006-03-03 Thread Gustav Wiberg
Hi there! I wonder as a swedish PHP-programmer if there are any sites like sourgeforge.net but in swedish? /G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mysql Rows

2006-03-04 Thread Gustav Wiberg
- Original Message - From: "tedd" <[EMAIL PROTECTED]> To: Cc: "benifactor" <[EMAIL PROTECTED]>; "Murray @ PlanetThoughtful" <[EMAIL PROTECTED]>; "Anthony Ettinger" <[EMAIL PROTECTED]> Sent: Saturday, March 04, 2006 3:14 PM Subject: Re: [PHP] Mysql Rows planetthoughtful wrote: Bu

Re: [PHP] Mysql Rows

2006-03-05 Thread Gustav Wiberg
- Original Message - From: "tedd" <[EMAIL PROTECTED]> To: Cc: "Gustav Wiberg" <[EMAIL PROTECTED]>; "Robert Cummings" <[EMAIL PROTECTED]> Sent: Sunday, March 05, 2006 12:58 AM Subject: Re: [PHP] Mysql Rows Hi: Gustav said: No, may

[PHP] What am I missing?

2006-03-07 Thread Gustav Wiberg
his server. ??? If this is not a question that suits the list, please guide me tips where to look... Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What am I missing?

2006-03-07 Thread Gustav Wiberg
- Original Message - From: "Shaunak Kashyap" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" Sent: Tuesday, March 07, 2006 8:05 PM Subject: RE: [PHP] What am I missing? It is more of an HTML/HTTP question

Re: [PHP] making a tutorial

2006-03-16 Thread Gustav Wiberg
? John Hi there! Do you have to name it as favourite[]? Can't you name it as "just" favourite (without brackets) If you name it as just favourite, at least in Javascript you could loop through favourite as an array. I don't know if this works in PHP as well. Best r

[PHP] Div-element at same vert. position?

2006-03-28 Thread Gustav Wiberg
Hi guys! I have a code-snippet here: while ($dbArray = mysql_fetch_array($querys)) { $dbIDLevel1 = $dbArray["IDLevel1"]; $dbLevel1Name = $dbArray["level1Name"]; $dbFactsLevel1Name = $dbArray["factsLevel1Name"]; $dbFactsPictureLevel1Name = $dbArray["factsPictureLevel1Name"]; ?> align="top" wid

Re: [PHP] Div-element at same vert. position?

2006-03-28 Thread Gustav Wiberg
- Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" Sent: Tuesday, March 28, 2006 10:00 PM Subject: RE: [PHP] Div-element at same vert. position? [snip] I

Re: [PHP] Div-element at same vert. position?

2006-03-28 Thread Gustav Wiberg
- Original Message - From: "Jay Blanchard" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" Sent: Tuesday, March 28, 2006 11:52 PM Subject: RE: [PHP] Div-element at same vert. position? [snip] A. The is a CSS ques

[PHP] ID-tags from picture?

2006-04-03 Thread Gustav Wiberg
Hi guys! If I've got this right, there will be some kind of tag that is saved in a picture (hidden). Is it possible to retrieve this information from PHP and what it is called? Any ideas / suggestions would be approciated! /Gustav Wiberg -- PHP General Mailing List (http://www.ph

Re: [PHP] ID-tags from picture?

2006-04-04 Thread Gustav Wiberg
- Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Tuesday, April 04, 2006 4:14 AM Subject: Re: [PHP] ID-tags from picture? Gustav Wiberg wrote: Hi guys! If I've got

[PHP] Convert from jpg to gif ... change dpi...

2006-05-07 Thread Gustav Wiberg
Hi there! Is there any way of converting a jpg to gif and change dpi on the fly? Best regards Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Copy of image -> smaller

2006-05-15 Thread Gustav Wiberg
omething I think... :-) I'm using PHP 4.x (don't know exactly the vers.nr, but I can search for it if it is of importance) The code down below is a function for uploading a picture. The part I want help with is after the comment: //What should/could I do here? Best regards Gustav Wiber

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Gustav Wiberg
Hi there! If I understand this right, I must have adminstration rights for installing Magic Wand... The problem is that my host doesn't have any support for this application. (It's not MY server) Is there any workaround? Best regards /Gustav Wiberg - Original Message -

[PHP] Check before uploading

2006-05-15 Thread Gustav Wiberg
might be better than nothing.. The important thing is not to RELY on the Javascript-code. Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Gustav Wiberg
- Original Message - From: "Chris" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Monday, May 15, 2006 9:42 AM Subject: Re: [PHP] Copy of image -> smaller Gustav Wiberg wrote: Hi there! When I

Re: [PHP] Check before uploading

2006-05-15 Thread Gustav Wiberg
- Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Monday, May 15, 2006 12:50 PM Subject: Re: [PHP] Check before uploading Gustav Wiberg wrote: Just a thought. Someone pos

Re: [PHP] Copy of image -> smaller

2006-05-15 Thread Gustav Wiberg
- Original Message - From: "Rabin Vincent" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Monday, May 15, 2006 1:35 PM Subject: Re: [PHP] Copy of image -> smaller On 5/15/06, Gustav Wiberg <[EMAIL

Re: [PHP] Check before uploading

2006-05-15 Thread Gustav Wiberg
- Original Message - From: "Stut" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Monday, May 15, 2006 10:32 PM Subject: Re: [PHP] Check before uploading Gustav Wiberg wrote: From: "Stut" <[

[PHP] Pictures and caches

2006-05-18 Thread Gustav Wiberg
-online-system... (the customer uses IE) When I delete the file in code down below, the picture is not shown (I guess because the browser hasn't rendered out all info?) If you want more code, tell me :-) Best regards /Gustav Wiberg $fileName = "pictures/products/$dbIDProduct1" .

[PHP] Range mktime?

2006-05-18 Thread Gustav Wiberg
Hi I wondew which range the mktime has? (in digits) In my case it always start with 1. something like 1147951344 Is this ALWAYS TRUE (that it would start with 1) Best regards /Gustav Wiberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Range mktime?

2006-05-18 Thread Gustav Wiberg
- Original Message - From: "Barry" <[EMAIL PROTECTED]> To: ; "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Thursday, May 18, 2006 1:45 PM Subject: [PHP] Re: Range mktime? Gustav Wiberg schrieb: Hi I wondew which range the mk

[PHP] Freing memory resources?

2005-06-16 Thread Gustav Wiberg
s not a big matter how long the script takes. (As long as the server can do other things at the same time) (In production environment, the php-script is on Apache and Linux (if it matters)) Best regards Gustav Wiberg @varupiraten.se Here is my script: "; //Close file for writing

[PHP] Fast count of recordset in php...

2005-08-06 Thread Gustav Wiberg
Hello there! How do i get a fast count of a recordset in php? Look at this code: $sql = "SELECT COUNT(IDVara) cn FROM tbvara WHERE Varunamn LIKE '$checkLev%'"; $querys = mysql_query($sql); //Count products in db // $dbArray = mysql_fetch_array($querys); $nrOfProducts = $dbA

Re: [PHP] Fast count of recordset in php...

2005-08-06 Thread Gustav Wiberg
Hi again! Thanx!!! I think this will help a lot!!! /mr G @varupiraten.se - Original Message - From: "TalkativeDoggy" <[EMAIL PROTECTED]> To: "Sebastian" <[EMAIL PROTECTED]> Cc: "Gustav Wiberg" <[EMAIL PROTECTED]>; Sent: Sunday, Augus

[PHP] Unique user?

2005-08-19 Thread Gustav Wiberg
Hi there! Is there any way of doing this: 1. User may vote 1-10 on a joke on a site X. 2. Same User may NOT vote again dependent of the computer... I know this works if I check IP-adress, but because some users doesn't have a fixed ip-adress... it won't work correct. Thought of getting a mac

[PHP] possible to get a function from another domain

2005-08-23 Thread Gustav Wiberg
hi there! Is it possible in PHP to retrieve value from one domain to another than my own? Something like this: Other domain: function getValueForMp3Player() My domain: $price = getValueForMp3Player('Inno AX VB4393') //retrieves value from other domain /G @varupiraten.se -- PHP General

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Gustav Wiberg
rse I have to know the implemenation of the code that inwarehouse.se has given to varupiraten.se Do you understand what I'm trying to do? :-) /G @varupiraten.se - Original Message - From: "Rory Browne" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EM

Re: [PHP] possible to get a function from another domain

2005-08-23 Thread Gustav Wiberg
se ? /G @varupiraten.se - Original Message - From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]> To: Sent: Tuesday, August 23, 2005 9:47 PM Subject: Re: [PHP] possible to get a function from another domain Gustav Wiberg wrote: Is it possible in PHP to retrieve value from one

Re: [PHP] possible to get a function from another domain

2005-08-24 Thread Gustav Wiberg
Hi there! Thanx for the help! And everybody else that helped me with the solution of course! :-) /G @varupiraten.se - Original Message - From: "Rory Browne" <[EMAIL PROTECTED]> To: "Jim Moseby" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, August 23, 2005 10:21 PM Subject: Re: [PHP] possib

[PHP] Computer name?

2005-08-25 Thread Gustav Wiberg
Is it possible to retrieve (view) the computers name from the client in PHP? /G @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Computers name?

2005-08-29 Thread Gustav Wiberg
Hi there! Is it possible to get (retrieve) the computername of the client? I just want the name for comparing... /G @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] divide-column?

2005-08-29 Thread Gustav Wiberg
Hi there! How do I do a sort in PHP where a column in a db must be two other columns divided...`? I tried to use DIV-function in MySQL but it doesn't seem to work ): Of course, I can hard-code it, but i want this value because of sorting ten largest of the resultvalue. ($gradeJoke). Ten best

[PHP] ID based on position?

2005-08-31 Thread Gustav Wiberg
Hi there! Is there any function in PHP that gives an ID from a MySQL-db based on which position the record has in the table? Let's say, there's a table like this: 1. Record1 ID 33 2. Record2 ID 76 3. Record3 ID 100 If I know position 2, I want to get ID 76. Is the only way to loop through

[PHP] CookieMonster

2005-09-01 Thread Gustav Wiberg
Hi Simple question I guess.. How do I set a cookie so it will never expire? (I don't want it to expire) /G @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session cookies

2005-09-01 Thread Gustav Wiberg
Hi there! Try using ob_start() and then set sessions, and then user HEADER... http://se.php.net/manual/sv/function.ob-start.php /G @varupiraten.se - Original Message - From: "Philip Hallstrom" <[EMAIL PROTECTED]> To: "Jasper Bryant-Greene" <[EMAIL PROTECTED]> Cc: "php list" Sent: Th

[PHP] Impossible???

2005-09-01 Thread Gustav Wiberg
Hi again! Is this impossible to do in PHP? Dim objNet On Error Resume Next 'In case we fail to create object then display our custom error Set objNet = CreateObject("WScript.NetWork") If Err.Number <> 0 Then'If error occured then display notice MsgBox "Don't be Shy." & vbC

Re: [PHP] deleting files on Windows...permissions issue

2005-09-02 Thread Gustav Wiberg
Hi there! Are you using rmdir? http://se2.php.net/manual/en/function.rmdir.php /G @varupiraten.se - Original Message - From: "James" <[EMAIL PROTECTED]> To: Sent: Friday, September 02, 2005 6:45 PM Subject: [PHP] deleting files on Windows...permissions issue I have a php script th

[PHP] Content - strip...

2005-09-02 Thread Gustav Wiberg
Hi there! Anyone that has an easy solution to this? I have a string filled with content. A lot of content is before Jumping Jack flash I want the $content - string to start at Jumping Jack flash Is there any smart way of doing this? /G @varupiraten.se -- PHP General Mailing List (http://ww

Re: [PHP] problem with the session and global variable

2005-09-02 Thread Gustav Wiberg
Hi there! I don't quite understand what you're trying to do here. Please send more code, then I might be able to help you... :-) /G @varupiraten.se - Original Message - From: "Tomás Rodriguez Orta" <[EMAIL PROTECTED]> To: Sent: Saturday, September 03, 2005 4:46 AM Subject: [PHP] pr

[PHP] SoundEx in swedish?

2005-09-02 Thread Gustav Wiberg
Hi there! Soundex works with diffrent kind of pronounciation... but does it work with Swedish language? Anyone have experience of this??? /G @varupiraten.se -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Distinguishing between multiple browser windows for the same php session

2005-09-03 Thread Gustav Wiberg
Hi there! ? /G @varupiraten.se - Original Message - From: "Chris Stenton" <[EMAIL PROTECTED]> To: Sent: Saturday, September 03, 2005 10:01 AM Subject: [PHP] Distinguishing between multiple browser windows for the same php session I need a way of setting the session_vars specif

Re: [PHP] socket_read() trouble with PHP_BINARY_READ

2005-09-03 Thread Gustav Wiberg
Hi there! Can't it be anything with filepermissions? Just a clue... /G @varupiraten.se - Original Message - From: "M. Sokolewicz" <[EMAIL PROTECTED]> To: ; "Tom Rogers" <[EMAIL PROTECTED]> Sent: Saturday, September 03, 2005 10:49 AM Subject: Re: [PHP] socket_read() trouble with PHP_BI

Re: [PHP] Distinguishing between multiple browser windows for thesame php session

2005-09-03 Thread Gustav Wiberg
ishing between multiple browser windows for thesame php session Gustav Wiberg wrote: ? Please don't top-post [1]. This will not work. $_SELF isn't even a defined variable, unless you defined it yourself. PHP works on the server, *before* anything is sent on the client, so it h

Re: [PHP] Impossible???

2005-09-03 Thread Gustav Wiberg
- Original Message - From: "Rory Browne" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Saturday, September 03, 2005 4:40 PM Subject: Re: [PHP] Impossible??? What exactly are you trying to do? That lo

[PHP] Cookie-question?

2005-09-07 Thread Gustav Wiberg
Hi there! Look at following code below, and please give me a clue why this cookie-thing doesn't work? $IDJoke is set before and is an ID from a row in a db It seems to work a while, but is there a limit for the expire-parameter? /G http://www.varupiraten.se/ //Get cookie from users computer

Re: [PHP] Session object destruction failed

2005-09-07 Thread Gustav Wiberg
Hi there! How does your code look like? /G http://www.varupiraten.se/ - Original Message - From: "Dan Rossi" <[EMAIL PROTECTED]> To: "PHP LIST" Sent: Wednesday, September 07, 2005 12:55 PM Subject: [PHP] Session object destruction failed Hi there, I am using a pear session package

[PHP] Integer - boundary?

2005-09-07 Thread Gustav Wiberg
Hi there! What is the boundary for an integer? seems to be a easy question, but I can't find it... /G http://www.varupiraten.se/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Integer - boundary?

2005-09-07 Thread Gustav Wiberg
- Original Message - From: "Shaw, Chris - Accenture" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]>; "PHP General" Sent: Wednesday, September 07, 2005 5:03 PM Subject: RE: [PHP] Integer - boundary? -Original Messa

Re: [PHP] Breaking up search terms into an array intelligently

2005-09-07 Thread Gustav Wiberg
- Original Message - From: "Paul Groves" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 07, 2005 4:54 PM Subject: [PHP] Breaking up search terms into an array intelligently I want to be able to break up a number of search terms typed into an input box into array, simple enough one

Re: [PHP] Integer - boundary?

2005-09-07 Thread Gustav Wiberg
Thanx for the scripts! :-) Appreciated! /G http://www.varupiraten.se/¨ - Original Message - From: "Brian P. O'Donnell" <[EMAIL PROTECTED]> To: Sent: Wednesday, September 07, 2005 5:53 PM Subject: Re: [PHP] Integer - boundary? ""M. Sokolewicz"" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] Breaking up search terms into an array intelligently

2005-09-07 Thread Gustav Wiberg
- Original Message - From: "Paul Groves" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: "PHP General" Sent: Wednesday, September 07, 2005 5:45 PM Subject: Re: [PHP] Breaking up search terms into an array intelligently G

Re: [PHP] Assign values in foreach-loop

2005-09-07 Thread Gustav Wiberg
- Original Message - From: "Sabine" <[EMAIL PROTECTED]> To: "PHP general" Sent: Wednesday, September 07, 2005 7:14 PM Subject: [PHP] Assign values in foreach-loop Hello to all, is it possible to assign values to the array for which I do the foreach-loop? foreach ($_SESSION['arr1

  1   2   >