RE: [PHP] importing array from flash, how does PHP handle it?

2002-12-30 Thread SED
As an array. However, you can test this in the page that receives the
post with fallowing code:

foreach($_POST as $val => $key) {
echo $val." => ".$key."";
}


Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
E-mail: [EMAIL PROTECTED]
website: www.sed.is

-Original Message-
From: Gav [mailto:[EMAIL PROTECTED]] 
Sent: 30. desember 2002 15:08
To: [EMAIL PROTECTED]
Subject: [PHP] importing array from flash, how does PHP handle it?


Hi,

I am sending information from Flash to PHP and ideally I just want to
send an array.  Would php treat the info as an array or a string?  If it
is the latter, is there a way that I can convert the information into an
array?  In Flash you can use the .split action but I'm not too sure of
the PHP 4 equivalent.

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] way to insert timer / pause?

2003-01-02 Thread SED
Sure, just read the following:

http://www.php.net/manual/en/function.sleep.php

As a reply for your second question, you can always assign the output to
a variable and echo the variable in the end of the script.


Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
Tel: 896-0376, 461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is

-Original Message-
From: Jeff Bluemel [mailto:[EMAIL PROTECTED]] 
Sent: 3. janúar 2003 02:57
To: [EMAIL PROTECTED]
Subject: [PHP] way to insert timer / pause?


if there a command, or a way I can put say a 5 second, or a 10 second
pause which will make it so it will output x amount of html, and then
continue? or if I can pause it will it not display any of the html until
the entire script has ran?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Different php.ini for each user on same server

2003-01-08 Thread SED
Is it possible to define a different php.ini for each user which use the
same server, either Unix and Windows. Let me give you example what I
mean:

User 1 (professional PHP-user)
Allow him big uploads, long execution time etc.
Virtual directory www.user1.com

User 2 (amateur PHP-user)
Allow smal uploads, short execution time etc.
Virtual directory www.user2.com

Thanks,
Sumarlidi E. Dadason

SED - Graphic Design
_
E-mail: [EMAIL PROTECTED]
website: www.sed.is


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Different php.ini for each user on same server

2003-01-08 Thread SED
Maybe I'm little bit slow today but I already look into this document.
What paragraph should I focus better on? What I'm looking for is *how
to* refer to a different php.ini in each case.

Thanks,
SED

-Original Message-
From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] 
Sent: 9. janúar 2003 03:15
To: 'SED'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Different php.ini for each user on same server


Please keep it on list and (reply to all) as it assist everyone then!!

Check out:

http://www.php.net/manual/en/configuration.directives.php

As a starting point!!


Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: [EMAIL PROTECTED]

> -Original Message-
> From: SED [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 9 January 2003 1:14 PM
> To: 'Timothy Hitchens (HiTCHO)'
> Subject: RE: [PHP] Different php.ini for each user on same server
> 
> 
> Thanks, do you know where I can find document about that?
> 
> 
> Regards,
> Sumarlidi E. Dadason
> 
> SED - Graphic Design
> _
> Tel: 896-0376, 461-5501
> E-mail: [EMAIL PROTECTED]
> website: www.sed.is
> 
> -Original Message-
> From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]]
> Sent: 9. janúar 2003 03:09
> To: 'SED'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Different php.ini for each user on same server
> 
> 
> You can set php_value and php_flags etc inside of the virtual
> host def in httpd.conf etc
> 
> 
> 
> Timothy Hitchens (HiTCHO)
> Open Platform Consulting
> e-mail: [EMAIL PROTECTED]
> 
> > -Original Message-
> > From: SED [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, 9 January 2003 1:10 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Different php.ini for each user on same server
> > 
> > 
> > Is it possible to define a different php.ini for each user
> which use
> > the same server, either Unix and Windows. Let me give you
> example what
> > I
> > mean:
> > 
> > User 1 (professional PHP-user)
> > Allow him big uploads, long execution time etc.
> > Virtual directory www.user1.com
> > 
> > User 2 (amateur PHP-user)
> > Allow smal uploads, short execution time etc.
> > Virtual directory www.user2.com
> > 
> > Thanks,
> > Sumarlidi E. Dadason
> > 
> > SED - Graphic Design
> > _
> > E-mail: [EMAIL PROTECTED]
> > website: www.sed.is
> > 
> > 
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] HTTP_ACCEPT - Reliabilty?

2003-01-14 Thread SED
I'm using Flash very often within websites. Like you know, sometimes the
user doesn't have the Flash-plug-in so I was wandering if I could depend
on this $_SERVER['HTTP_ACCEPT'] variable to look for "shockwave-flash".
If found, the visitor has Flash-plugging, if not, he doesn't.

So my question really is, can I base my Flash-detection on this global
variable or is too uncertain? (e.g. when the user is using Netscape,
Opera etc., Linux, Mac etc.) 

Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
E-mail: [EMAIL PROTECTED]
website: www.sed.is


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP/Flash Dynamic Graphs?

2003-01-15 Thread SED
You should look for loadVariables() in ActionScript (Flash) in this case
rather than MING.


Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
E-mail: [EMAIL PROTECTED]
website: www.sed.is

-Original Message-
From: MH [mailto:[EMAIL PROTECTED]] 
Sent: 15. janúar 2003 13:36
To: [EMAIL PROTECTED]
Subject: [PHP] PHP/Flash Dynamic Graphs?


Hi,

I want to create dynamic graphs with PHP and Flash for data that changes
constantly (let's say every 2 seconds).  The graphs must change visibly
in the browser window without refreshing the page.  Is this possible?  I
have read most that I could find on MING and searched the web as well,
but didn't have much luck.  Is PHP/Flash approach the best?

Any info/scripts/url's would be appreciated.

TX
MH



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread SED
Hi,

Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is
enabled and imagecreatefrompng() id defined?



Is it a bug? Or? 

My ISP config:

System  Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686  
Build Date  Jan 24 2003 19:35:29  
Configure Command  './configure' '--with-mysql' '--with-apxs'
'--with-zlib' '--with-bz2' '--with-gd' '--with-gettext' '--with-pgsql'  
Server API  Apache  
Virtual Directory Support  disabled  
Configuration File (php.ini) Path  /usr/local/lib/php.ini  
PHP API  20020918  
PHP Extension  20020429  
Zend Extension  20021010  
Debug Build  no  
Thread Safety  disabled  
Registered PHP Streams  php, http, ftp, compress.bzip2, compress.zlib  


Regards,
Sumarlidi E. Dadason

SED - Graphic Design

E-mail: [EMAIL PROTECTED]
website: www.sed.is


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread SED
So, why is this function not included in GD like imagecreatefrompng()?
Can this be just bad configuration at my Administrator behalf?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 7. febrúar 2003 14:15
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Why is function imagecreatefromjpeg() undefined in
PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?


You need to install  jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and dd
--with-jpeg-dir=DIR.

--
Regards.
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.

"Sed" <[EMAIL PROTECTED]> a écrit dans le message de news:
000901c2ceb3$90746450$[EMAIL PROTECTED]
> Hi,
>
> Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is 
> enabled and imagecreatefrompng() id defined?
>
>
>
> Is it a bug? Or?
>
> My ISP config:
>
> System  Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 
> Build Date  Jan 24 2003 19:35:29 Configure Command  './configure' 
> '--with-mysql' '--with-apxs' '--with-zlib' '--with-bz2' '--with-gd' 
> '--with-gettext' '--with-pgsql' Server API  Apache
> Virtual Directory Support  disabled
> Configuration File (php.ini) Path  /usr/local/lib/php.ini
> PHP API  20020918
> PHP Extension  20020429
> Zend Extension  20021010
> Debug Build  no
> Thread Safety  disabled
> Registered PHP Streams  php, http, ftp, compress.bzip2, compress.zlib
>
>
> Regards,
> Sumarlidi E. Dadason
>
> SED - Graphic Design
>
> E-mail: [EMAIL PROTECTED]
> website: www.sed.is
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Flash interaction with PHP

2003-02-24 Thread SED
The easiest way to do this is putting variables behind ? in the
filename:

myFlashMovie.swf?myVarA=123&myVarB=456

The variable above will be assign in the _root in the Flash file:

_root.myVarA & _root.myVarA


Regards,
Sumarlidi E. Dadason

SED:DESIGN
_
Tel: 896-0376, 461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is

-Original Message-
From: pei_world [mailto:[EMAIL PROTECTED] 
Sent: 23. febrúar 2003 22:56
To: [EMAIL PROTECTED]
Subject: [PHP] Flash interaction with PHP


do you know how to load the variables from php
automatically when the flash start?
I need to stick the loadvariable into a button click action,which is not
what i want.

thx

--
Sincerely your;

pei_world ( .::IT::. )






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PDF Creation

2003-03-13 Thread SED
Try FPDF.org! It's great!


Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
Tel: 896-0376, 461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is

-Original Message-
From: Christopher J. Crane [mailto:[EMAIL PROTECTED] 
Sent: 13. mars 2003 18:05
To: [EMAIL PROTECTED]
Subject: [PHP] PDF Creation


I am just getting into PDF creation and I am having some issues. Can
anyone send me a simple script that creates a PDF doc. I would like it
to open in the browser after creation, not create a file. If someone has
a simple one with an image placement as well that would be great. I can
figure it out if I have a working one, but everything I tried so far
does not work. Here is the latest I tried and the error I get.

Warning: Wrong parameter count for pdf_close_image() in
/home/inxdesig/public_html/demos/pennytraders.com/pdf.php on line 20

Fatal error: PDFlib error: function 'PDF_stroke' must not be called in
'page' scope in
/home/inxdesig/public_html/demos/pennytraders.com/pdf.php on line 22






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP and graphics

2003-07-03 Thread SED
Hello Aracena,

To answer your question: Yes, this is doable in PHP/MySQL but you need
to make the maps, database and functions by yourself.

However, I have not yet found any "all-ready-made" solution (without
paying huge $$$). If you will find solution, please inform us if
possible - even if you only find a algorithm.

Regards, 
Sumarlidi Einar Dadason 

SED DESIGN 
_ 
Email:[EMAIL PROTECTED] 
Website:  http://www.sed.is 




-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED] 
Sent: 3. júlí 2003 13:57
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and graphics


Hi all,

I'm developing a new site where the visitors, among other things, will
be able to see a map of my country, choose a region then a city, in
order to see a complete map of that place. Another good thing would be
to let the user set the starting and destination points of a trip and
show him or her wich would be the best route to take, gas stations,
hotels, etc.

My question is: Is this possible using PHP and MySQL or do I need to use
also some other tool like Java or other?

Thanks in advanced,

---
Cesar Aracena
[EMAIL PROTECTED]
http://www.icaam.com.ar
Cel: +54.299.635-6688
Tel/Fax: +54.299.477-4532
Cipolletti, Rio Negro
R8324BEG
Argentina




---
Soluciones profesionales en
 Internet y Comunicaciones
  http://www.icaam.com.ar



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Security - Maybe a silly question

2002-11-01 Thread SED
When I use sessions in PHP or just plain login/password in $_POST, can
3rd parties or hackers monitor the transmission, between me and user,
and somehow decode the transmission and use the variables to login other
time or overtake the current session?

If so, how likely is for someone to manage it (get the
username/password)?


Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
Tel: +354-896-0376, +354-461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Security - Maybe a silly question

2002-11-01 Thread SED
Thank you for the reply, what do you mean by "sniffing", do you mean
everbody can monitor our browsing?

-Original Message-
From: @ Edwin [mailto:copperwalls@;hotmail.com] 
Sent: 1. nóvember 2002 21:47
To: SED
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Security - Maybe a silly question


Hello,

"SED" <[EMAIL PROTECTED]> wrote:
> When I use sessions in PHP or just plain login/password in $_POST, can

> 3rd parties or hackers monitor the transmission, between me and user, 
> and somehow decode the transmission and use the variables to login 
> other time or overtake the current session?

Yes. (But, I'm not really sure what you meant by "between me and
user"...)

> If so, how likely is for someone to manage it (get the 
> username/password)?

By "sniffing".

- E

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Security - Maybe a silly question

2002-11-01 Thread SED
I'm not very familiar to this stuff, but if I wanna use https:// do
don't I need a key from Verisign (or similar) to make it work? If so,
who control who is what on the internet?


Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
Tel: 896-0376, 461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is


-Original Message-
From: rija [mailto:rija@;vatu.com] 
Sent: 1. nóvember 2002 22:33
To: php; SED
Subject: Re: [PHP] Security - Maybe a silly question


Yes,
Between user and server, everydata pass through DNS, routeur, etc... So
if you don't want someone (hackers or FBI of CIA) to decode your data,
use SSL server (https://) with certificate-

- Original Message -
From: "SED" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 02, 2002 8:37 AM
Subject: [PHP] Security - Maybe a silly question


> When I use sessions in PHP or just plain login/password in $_POST, can

> 3rd parties or hackers monitor the transmission, between me and user, 
> and somehow decode the transmission and use the variables to login 
> other time or overtake the current session?
>
> If so, how likely is for someone to manage it (get the 
> username/password)?
>
>
> Regards,
> Sumarlidi E. Dadason
>
> SED - Graphic Design
> _
> Tel: +354-896-0376, +354-461-5501
> E-mail: [EMAIL PROTECTED]
> website: www.sed.is
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] storing cc details in mysql

2002-11-04 Thread SED
Rule no. 1 => Never save the cc-numbers in an online database.

Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
Tel: 896-0376, 461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is

-Original Message-
From: adrian [EMAIL PROTECTED]
[mailto:adrian.murphy@;2020tourism.com] 
Sent: 4. nóvember 2002 16:41
To: adrian [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] storing cc details in mysql


Sorry forgot to say we do have a secure server.

- Original Message -
From: "adrian [EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 04, 2002 4:37 PM
Subject: [PHP] storing cc details in mysql


Hi,
I know this is an old chestnut and i am going thru archives
and googling as well.
anyhoo, my small company recently decided that live cc processing was
too expensive for our needs (this has to do with us being based in
ireland where there is a problem with the banks -they only deal with one
irish company to process and its too expensive for us - don't really
know the details but thats what i was told). so we're going to store the
cc numbers and process manually(we're a small company at present so
we're not talking 1000's of numbers just yet). i'd appreciate anyones
experience or advice regarding storing in a mysql db - articles etc.. i
also have the option of using postgres (haven't used it before)  if
anyone thinks i should. as a side note - i notice that phpshop stores cc
numbers in mysql.any thoughs on that - i.e. is it a good example of how
it should be done.

many thanx,
adrian murphy



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP + MySQL, how to get total rows matched when using LIMIT 0, 10?

2002-11-05 Thread SED
I'm trying to get the total matched rows when I'm using "LIMIT 0, 10",
but I only get the number 10, when the total should be around 100. So,
can I get total matched rows without doing a separate query using
count()?

Here is an example of my current query:

$result = mysql_query("SELECT * FROM products WHERE price<'10' ORDER BY
price LIMIT 0, 10");
$num_rows = mysql_num_rows($result);


Thanks,
Sumarlidi E. Dadason

_
E-mail: [EMAIL PROTECTED]
website: www.sed.is


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] 2 questions about PHP download

2002-11-10 Thread SED
Is it possible to use the PHP-extentions for Apahce with the PHP for the
CGI version, while the version number matches?

What is the md5-hash beneath the download for?


Regards,
Sumarlidi E. Dadason

SED - Graphic Design
_
Tel: 896-0376, 461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Javascript + PHP

2002-11-15 Thread SED
I need to finish a project using PHP and JavaScript but the references
for JavaScript I'm using is rather old. I'm looking for a JavaScript
postlist similar to this but without any luck. I have tried Google but
it finds every site containing JavaScript where a postlist is mentioned.
Since there are many pros on this list, maybe someone can point me to a
JavaScript postlist similar to this.

Thanks,
Sumarlidi E. Dadason

SED - Graphic Design
_
Tel: 896-0376, 461-5501
E-mail: [EMAIL PROTECTED]
website: www.sed.is


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] How to swap the table's bg color with php

2003-10-03 Thread SED
You will need Javascript and CSS (and this is not a postlist for that).
If you are not familiar to both, this work can get tricky at first.

Regards, 
Sumarlidi Einar Dadason 

SED DESIGN 
_ 
Address:  Thingvallastraeti 4
  600 Akureyri
  Iceland
Voice:+354-8458182 
Email:[EMAIL PROTECTED] 
Website:  http://www.sed.is 







-Original Message-
From: Jack [mailto:[EMAIL PROTECTED] 
Sent: 3. október 2003 10:12
To: [EMAIL PROTECTED]
Subject: [PHP] How to swap the table's bg color with php


Dear all
I had write a script using php,which will pull the values from a mysql
table to display in HTML. now i want to add a function which when the
mouse had move over a table cell, the background of the table cell will
turn to other color!

Is anyone know how i can perform this task?
Thx alot!
Jack

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Is it possible to see if a jpeg is RGB or CMYK via PHP GD2?

2004-01-09 Thread SED
I'm allowing user to upload images to a gallery. However, some user seem to
have both RGB and CMYK jpeg images. I get an error from ImageCreateFromJPEG
when the script is creating thumbnails from a CMYK jpeg. Can I somehow see
if the image is RGB or CMYK, so I know when to skip the automatic thumbnail
creation?
 
Regards,
SED


[PHP] [problem solved] -> Is it possible to see if a jpeg is RGB or CMYK via PHP GD2?

2004-01-09 Thread SED
I was to fast on this list...  I found the solution reading the manual
better ;)

...
With JPG images, two extra indexes are returned: channels and bits. channels
will be 3 for RGB pictures and 4 for CMYK pictures. bits is the number of
bits for each color. 

Beginning with PHP 4.3, bits and channels are present for other image types,
too. However, the presence of these values can be a bit confusing. As an
example, GIF always uses 3 channels per pixel, but the number of bits per
pixel cannot be calculated for an animated GIF with a global color table. 
...



-Original Message-
From: SED [mailto:[EMAIL PROTECTED]
Sent: 9. janúar 2004 09:51
To: [EMAIL PROTECTED]
Subject: [PHP] Is it possible to see if a jpeg is RGB or CMYK via PHP GD2?

I'm allowing user to upload images to a gallery. However, some user seem to
have both RGB and CMYK jpeg images. I get an error from ImageCreateFromJPEG
when the script is creating thumbnails from a CMYK jpeg. Can I somehow see
if the image is RGB or CMYK, so I know when to skip the automatic thumbnail
creation?
 
Regards,
SED

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to make a line and bar graph

2001-01-13 Thread SED

Hi,

I want to let PHP create/render a line and bar graph from inputted numbers.
I now all the PHP basics but I don't know how to let PHP make the graphs
from the variables.

Can anyone point me to a solution or a resource-site?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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]




[PHP] MySQL - How to transfer a query resault into a variable?

2001-01-16 Thread SED

Hi,

Lets say I have columns e.g.

| name | address | phone |

I want to make a list of all the names and put the result into a HTML page
where each name is a link.

When the name is clicked (the link), it will open another HTML page with
full information (name, address and phone).

I know how to send the query to list the names (and into a formatted
HTML-file), but I don't know how to put each name into a variable or a link
for the next step.

Can you point me to functions I should focus at or even a solution?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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] I love/hate FrontPage - need another HTML editor. -> Dreamweaver 4

2001-01-16 Thread SED

Hi,

I use Macromedia Dreamweaver 4 - it's the best ever for HTML and others. It
recognizes the PHP extension and checks for syntax errors though it doesn't
check for errors in the PHP-languages.

SED

-Original Message-
From: Murph [mailto:[EMAIL PROTECTED]]
Sent: 17. janúar 2001 01:51
To: [EMAIL PROTECTED]
Subject: [PHP] I love/hate FrontPage - need another HTML editor.


Hi.

FrontPage sucks for working with PHP.

I've been doing all my coding by hand and that's fine as far as it goes but
I just got a promotion at work where everyone uses FrontPage so I bought it
to see how I can use it to show these old dogs some new tricks.

Nice program. Allows for workgroups where different people can work on
different parts of a project. That'll come in handy. It also has some nice
tree charts to show you where the project is branching out and generates
some useful reports like where the dead links are.

What I *really* liked about it was the ability to apply a common theme
across all my pages. Man, that was pretty cool. Plus, let's face it, using
an HTML editor really takes some of the drudgery out of designing your
pages.

The problem is, if the web page that is designed with FrontPage doesn't end
with a regularly accepted filename extension like *.htm, FrontPage doesn't
seem to really know how to handle it and I need it to handle pages that end
with *.php.

What are my options? I don't think I missed anything with FrontPage after
scouring the manual and online and inline help pages.

Anyone out there using an HTML editor that they'd like to recommend? Why?
Are there any FAQs I should be reading for this answer?

Maybe I should just use a style sheet for a common look and for the rest,
suck it up and take it like a man?

Yours,
Murph

www.murphatnight.com
__
Brian Murphy - 193A Lowell St., Apt. 24 - Methuen, MA 01844 - (978) 725-6654



-- 
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]




[PHP] $row->user_id;

2001-01-16 Thread SED

Thanks! Tell me though, what does the following mean or should I ask how
does it work?

$row->user_id;

Is it somehow relate to the following?

$row["user_id"];

I tried to look for this in the manual but without any luck... perhaps I'm
going blind ;)

SED

-Original Message-
From: Benjamin Munoz [mailto:[EMAIL PROTECTED]]
Sent: 17. janúar 2001 01:46
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: [PHP] MySQL - How to transfer a query resault into a
variable?



http://www.php.net/manual/en/function.mysql-fetch-object.php

Modified example from the manual above...

user_id;
$name = $row->name;
// print them out if you want, or store them in an array to return
if this is a function
print ("$name\n");
}
mysql_free_result ($result);
?>

-Ben



-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 5:21 PM
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL - How to transfer a query resault into a variable?


Hi,

Lets say I have columns e.g.

| name | address | phone |

I want to make a list of all the names and put the result into a HTML page
where each name is a link.

When the name is clicked (the link), it will open another HTML page with
full information (name, address and phone).

I know how to send the query to list the names (and into a formatted
HTML-file), but I don't know how to put each name into a variable or a link
for the next step.

Can you point me to functions I should focus at or even a solution?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


--
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]

--
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]


-- 
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] Echo and Print

2001-01-26 Thread SED

Hi, I cut & paste this from an earlier e-mail from this list, hope it helps:


-
The print() function returns a boolean indicating the status of the call. If
the write was successful, print() returns 1. If not, it returns 0. This can
be used to detect when the client has closed the connection, and appropriate
measures taken. The builtin echo does not provide this same service.

This may be handy for you, though there's probably a lot more to it.

HTH
Jon

-

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 26. janúar 2001 11:37
To: [EMAIL PROTECTED]
Subject: [PHP] Echo and Print


I know it is a kind of stupid question but I was trying to figure out
the difference between "Echo" and "Print" and I didn't find it...Could
anybody explain that to me??
Thank you

Felipe Lopes


MailBR - O e-mail do Brasil -- http://www.mailbr.com.br
Faça já o seu. É gratuito!!!

--
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]


-- 
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]




[PHP] How to enable GD with PHP

2001-02-26 Thread SED

Hi,

I downloaded the GD libary and want to enable it with PHP but I cant figure
out how to do that - can anyone tell me how to do it? Do I have to put the
path to GD-libary inside the PHP.ini  and if so, where?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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]




[PHP] What means "can't truncate sockets!"

2001-03-01 Thread SED

Hi,

I'm trying to truncate a txt-file which I in my script use
"http://mydomain/path/to/my/file.txt" as a reference but I get this error
message:

Warning: can't truncate sockets! in
domains/mydomain/www/path/to/my/phpfile.php on line 47

Does it mean I'll have to use "real" path e.g. c:\\domains\\mydomain...
(etc.) or is it something else I should focus at? I'm working on a remote
server (Linux/Apache) but this works 100% on my local server (Win2k/IIS5).

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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]




[PHP] Simple PHP 4 and MySQL question about query

2001-03-19 Thread SED

Hi,

I'm trying to get a result from the following query:

$result = mysql_query("SELECT 'islname' FROM $table WHERE id='$id'");

Because "id" is a unique key in my table, I know it has only one value. What
mysql_funtion should I use to echo the result and with what parameters?

(I have tried many most of the functions but I don't get the correct result,
and the manual is not helping me :)

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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] Simple PHP 4 and MySQL question about query - Problem solved!

2001-03-19 Thread SED

Thank you all for your replies.

The following solved my problem (from David Robley):

--

Also you shouldn't need single quotes around islname - so
your query might look more like:

$result = mysql_query("SELECT islname FROM $table WHERE id=$id");

--

Then I was able to use:  mysql_result($result, 0);  to get the result.

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 1:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Simple PHP 4 and MySQL question about query


Hi,

I'm trying to get a result from the following query:

$result = mysql_query("SELECT 'islname' FROM $table WHERE id='$id'");

Because "id" is a unique key in my table, I know it has only one value. What
mysql_funtion should I use to echo the result and with what parameters?

(I have tried many most of the functions but I don't get the correct result,
and the manual is not helping me :)

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


--
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]



--
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]


-- 
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]




[PHP] How to convert '2001032018' -> '2001 03 20 18' ? (Fomating Date)

2001-03-20 Thread SED

Hi,

I'm trying to convert the timestamp '2001032018' into '2001 03 20 18' or an
Array which I can easily format. Do you remember any date or string function
I can use?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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]




[PHP] Installing PHP Extentions for IIS - W2K - Is it possible?

2001-04-16 Thread SED

Hi,

I was downloading the latest version of PHP (Win32 Binaries) for IIS server,
but no external extensions are included. Why? Is it not supported for IIS
server?

I'm having great difficulty adding those extensions manually (editing the
PHP.ini), I always get errors like following example shows (the file sure is
there):

Unable to load dynamic library 'C:\PHP\extensions\php_gd.dll'
- The specified procedure could not be found.

This happens for other extensions also (which I copied from Apache
PHP_4.0.4pl1.zip download).

Has anyone experienced the problem I'm having - and if so, how did you
overcome it?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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]




[PHP] Graphic process within PHP

2001-04-18 Thread SED

Hi,

Recently I noticed e-mails on this list about Imlib2 and GD2 extensions
which I was not aware of. So I started to wander if there are more
extensions working with PHP which allows graphic process (the only one I
knew was GD). Is it? If so, is it possible to use these extensions on all
platforms (which PHP supports) and with all web servers?

Thanks!


Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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]




[PHP] Can PHP run without php.ini?

2001-04-19 Thread SED

Hi, I ran into strange problem. I was not able to configure my php.ini file
so it would show up in PHP when running on my IIS5 server (at least showing
up in via php_info()) so I tried to delete all the php.ini files on my
computer (I have a backup though :) and restarted the computer - you know
what, the PHP works perfectly and show the default settings! How come?

I'm using version 4.0.5RC1 as CGI with IIS5 server on W2K.

Has anyone experience the same? How did you get back to controlling you PHP?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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]




[PHP] Newbie question about Classes

2001-04-24 Thread SED

Hi,

I have now been 3-4 months writing PHP-codes and read the PHP manual
throughout. But there is one thing I can't figure out properly (I think it's
not covered enough in the manual): Classes!

When and why would I use it?

Is it only to group certain functions or does it have a special function?

Thanks!

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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]




[PHP] *.php and the search engienes on the web

2001-04-26 Thread SED

Hi all,

If I make a whole website based on one PHP-navigation file with links like
"index.php?id=123", will all the search engines who crawl the websites be
able to follow it and index?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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] Variable (naming them) Functions.

2001-04-27 Thread SED

Why not use classes? If I understand you problem correctly, I think classes
should solve your problem. Right?

SED

-Original Message-
From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
Sent: 27. apríl 2001 11:58
To: 'PHP General List. (E-mail)'
Subject: [PHP] Variable (naming them) Functions.


Hello everyone:

I was wondering, does anyone of you know a method to declare a function
(give it a name) basing on a value acquired during run time?

I tried using the syntax as of a variable function call:




   $fname = 'hello';
   function { sprintf("%s", $fname) }($arg='') {
  Return "I named you : $fname";
   }
   echo $fname($fname);
   # no luck...


   function {$fname}($arg='') { 
   # nope...


   function $fname($arg='') { 
   # neither...



and so on... all parse errors...



Any way to do it?

I am looping an array with some function names checking if a function was
declared already, and if not then declare, if yes - give a different name.

I also went through these bibles:
   http://www.php.net/manual/en/ref.funchand.php
<http://www.php.net/manual/en/ref.funchand.php>
but found nothing that helps.

Thanks in advance,
Sincerely,

 Maxim Maletsky
 Founder, Chief Developer
 PHPBeginner.com (Where PHP Begins)
  [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
  www.phpbeginner.com <http://www.phpbeginner.com>





-- 
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]




[PHP] Check this out -> http://www.hotscripts.com/webpoll/results.php

2001-05-10 Thread SED

...of course M$ is worried about PHP, see this:

http://www.hotscripts.com/webpoll/results.php

SED


-- 
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]




[PHP] Upload time vs. script execution time

2001-05-11 Thread SED

Hi,

Before I try it, can anyone tell if the execution-time of the script start
when upload finish or when it starts? (I referring to the script that
receives the uploaded file and handles it). It its the later one, what can I
do when I want to upload files that take longer time to upload (but without
editing the php.ini).

Thanks in advance!
SED


-- 
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] uploading problems

2001-05-12 Thread SED

Hi Theo,

I'm not sure it will help, but can it be because of script execution time?
Increase the time I try again. If it works, please let me know.

Greetz,
SED

-Original Message-
From: Theo Richel [mailto:[EMAIL PROTECTED]]
Sent: 12. maí 2001 08:17
To: [EMAIL PROTECTED]
Subject: [PHP] uploading problems


I try to upload a .sql file with PHPMyAdmin. Below 1 mb: no problem, above
1mb: impossible. We have increased the max_upload_file_size in PHP.ini but
it still doesnt work. What other parameters in the php.ini influence this?

Thanks very much
Theo Richel


-- 
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]




[PHP] How can I enable magic_quotes_gpc without editing PHP.ini

2001-05-16 Thread SED

Hi,

I need to enable magic_quotes_qpc for one session (or a script) but I can no
access to the php.ini on the server. Is it possible to do it? And if so,
how?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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]




[PHP] How to find out what country the visitor comes from

2002-02-07 Thread SED

Hi,

I'm trying to find out what country the visitor comes from to offer them
suitable language (like google.com does) but I haven't found a method
that works 100%. What I have come up with so far is to use 

$HTTP_X_FORWARDED_FOR

or

 gethostbyaddr($REMOTE_ADDR)

Sometime I get domain which does the job (and that works) but often I
get just IP number which leaves me out in the cold. Is there any other
way to capture the visitors country?

Thanks,
SED



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] When should I use gethostbyaddr () if I want to monitoring the users

2002-02-19 Thread SED

I'm using the gethostbyaddr() function in each webpage on my server to
monitor the users. Today I noticed that it causes a very slow speed but
before it was ok.

Is it commonly bad choise to use it like I do?
Should I rather check the host afterwards e.g. when I'm viewing the
log-database?

Regards,
Sumarlidi Einar Dadason
 
SED - Graphic Design
--
Tel.4615501
GSM 8960376
E-mail  [EMAIL PROTECTED]
Website:www.sed.is
-- 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] accessing flash files using php

2002-02-25 Thread SED

if you have a access to the action-script within the Flash-movie, write
there a script like:

gotoandplay(_root.myframe);

and let the HTML-path be something like:

myFlashMovie.swf?myframe=20

Regards,
Sumarlidi Einar Dadason
 
SED - Graphic Design
--
Tel.4615501
GSM 8960376
E-mail  [EMAIL PROTECTED]
Website:www.sed.is
-- 

-Original Message-
From: John Day [mailto:[EMAIL PROTECTED]] 
Sent: 25. febrúar 2002 15:36
To: SED
Subject: RE: [PHP] accessing flash files using php


Yep, specifically going to a certain frame within the movie 



-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 3:27 PM
To: John Day
Subject: RE: [PHP] accessing flash files using php


Do you mean like gotoandplay() or editing something in some frame?

-Original Message-
From: John Day [mailto:[EMAIL PROTECTED]] 
Sent: 25. febrúar 2002 11:41
To: Php-General (E-mail)
Subject: [PHP] accessing flash files using php


Hi
 
Is it possible to access a flash movie and then go to a certain frame
within that movie. I know that you can create flash files and then use
all manner of flash related functions, but I want to access an already
existing movie.
 
Cheers
JD


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] How to transfer letters (e.g. en-us, es, fr etc.) to full names (e.g. England, France etc.)?

2002-03-05 Thread SED

Hi, I'm finishing a log script which determines what country the
visitors come from via language settings in the browser. Now I need to
transfer those letters (e.g. en-us, es, fr etc.) to full names (e.g.
England, France etc.). Do you know where I can find an index-file that I
can use to make full names? Maybe you have one already you can send me?

Thanks in advance!

SED


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Does $HTTP_REFERER show where you was last time or where the user clicked on a link to mine?

2002-03-08 Thread SED

Hi,

Does $HTTP_REFERER show where you was last time or where the user
clicked on a link to mine?

Regards,
SED


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] How to sort by 3rd row in an 2d-Array

2002-04-12 Thread SED

Hi,

I'm trying to sort an array like following

myArray[1][firstname] = "Joe";
myArray[1][lastname] = "Smith";
myArray[1][company] = "Bullock";
myArray[1][email] = "[EMAIL PROTECTED]";
myArray[2][firstname] = "Jim";
myArray[2][lastname] = "Cords";
myArray[2][company] = "Jamen";
myArray[2][email] = "[EMAIL PROTECTED]";
etc...

by the company name. How can I do it?

I found the solution on php.net
(http://www.php.net/manual/en/function.array-multisort.php) but it sorts
only the first row:

foreach ($myArray as $val) {
$sortarray[] = $val['nafn'];
    echo $val['stadur'];
}
array_multisort($myArray, $sortarray);

Thanks in advance!

SED


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] web automatization problem

2001-10-26 Thread SED

Hi, 

This solution works in most browsers:






(your text)




Regards,
Sumarlidi Einar Dadason
 
SED - Graphic Design
--
Tel.4615501
GSM 8960376
E-mail  [EMAIL PROTECTED]
Website:www.sed.is
-- 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 26. október 2001 09:58
To: [EMAIL PROTECTED]
Subject: [PHP] web automatization problem



Hi !

I'm making a web site whitch should enable the user to add the news to
the site. I'm doing this with the database, but I'm trrying to let them
add the pictures with the text. I'd like to let hte user choose the
position of the image,  as well as the image position(left - center -
right)...

Is there a way to wrap text around the image ?

Are there any suggestions on this topic ?

-- 
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]


--
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] Authenticating Users with their Windows Login - Desperate

2001-11-30 Thread SED

Hi, I'm not sure if it works (I have W2K) but when a user logs into your
server you can lead the login to a path on the server e.g. to a PHP-file
which contains that person password/login (though it's not the same as
the user logged in with). So if the user changes his password via
Windows it will not effect the PHP-file.

Myself have been trying to find a way to do what you asked about but
without any luck. If you find it please let me know.

Regards,
Sumarlidi Einar Dadason
 
SED - Graphic Design
--
Tel.4615501
GSM 8960376
E-mail  [EMAIL PROTECTED]
Website:www.sed.is
-- 
-Original Message-
From: Feroze Md. Arif [mailto:[EMAIL PROTECTED]] 
Sent: 30. nóvember 2001 08:50
To: [EMAIL PROTECTED]
Subject: [PHP] Authenticating Users with their Windows Login - Desperate
Importance: High


Hi Again,

I've searched high and low since my last post but I couldn't find
anything on how Users can be authenticated using their Windows NT server
User IDs and Passwords.  I do not want to authenticate users with a
MySQL database etc., since that involves recreating all the user ids and
passwords.  If my users log into my intranet application with their NT
or Windows2000 user id and password, is there anyway I can access the
Windows NT User ID/Password respository and authenticate the users?

Please help.  If anyone has some suggestions please let me know.

Best Regards
Feroze

Jar Jar Binks will be Jedi!

==
Hi,

First of all, my apologies if this question has been asked earlier.  I
am in a hurry and I haven't checked the archives (Actually, I am in the
process of doing it but am trying to cover all the bases).

I know that PHP has functions which will allow Users to be authenticated
off a NIS Server or a LDAP server.  Will it be possible to do something
similar in PHP with the User IDs and Passwords stored in a NT or Windows
2000 server?  I would appreciate it very much if anyone could point me
to resources that could help me or share some sample scripts :) :)

Thanks in Advance,

Feroze
===
Jar Jar Binks will be Jedi!


-- 
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]


--
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]




[PHP] Simple question about mail() limitations (if any :)

2001-03-21 Thread SED

Hi,

Before I try it myself and kill my server :), is it safe to send via mail()
function multiply e-mails like:

while (expr) {
mail ($to, $subject, $message);
}

Are there any limitation in this? (e.g. 100 mails? 100.000? 1.000.000?) If
so, is it possible to work around the limitation by using delay between
sending certain amount of mails?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--


-- 
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]




[PHP] Not important - Simple question about microsec()

2001-04-03 Thread SED

Hi,

I was wandering what the result from microsec() means:

I tested the time in the begin and in the end of my code and got the
following result:

Begin:  0.70278800 986354975

End:0.08970900 986354975

I think the latter part of the value is Unix-time in sec (right?), but what
does the former part say like: 0.25576700 ?!?

I read in the manual it should be the 1/100 of seconds but it does not
compute in my brain, how come is the End time lower than the Begin time?
Probably I'm thinking of it the wrong way, but I hope you can light me :)

Regards,
SED


-- 
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] radio groups in looped form

2001-04-11 Thread SED

I don't think you can. The browser groups them by the name, so you will have
to write some code (simple) to change the name...

SED

-Original Message-
From: Peter Houchin [mailto:[EMAIL PROTECTED]]
Sent: 11. apríl 2001 23:33
To: Php-General@Lists. Php. Net
Subject: [PHP] radio groups in looped form


hiya,

I have a script that repeats a form x number of times depending on how many
records there are, what's happening is when i go to update my radio buttons
it sees every radio button on the page as the ONE group when really it's x
number of groups (again depending on how many records there are)

How can i differ between raido groups with out having to get the name
changed for every record after the 1st one?

Peter Houchin
[EMAIL PROTECTED]
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .COM!  **



-- 
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] radio groups in looped form

2001-04-11 Thread SED

So far as I know, the HTML does not support arrays. However, you can make
simple code that adds number to each group so you can refer to them later
e.g.:

$i = 0;
while (your arguments) {

echo "name=\avail$i\";
$i++;

}

And afterwards you can refer to it the same way (perhaps you may want to
keep the total value of $i in a hidden form field for later use).

SED



-Original Message-
From: Peter Houchin [mailto:[EMAIL PROTECTED]]
Sent: 12. apríl 2001 00:05
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] radio groups in looped form


even though i am putting them in an array?

like

>

(i have another 2 radio buttons with this group)

Peter

-Original Message-----
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:05 AM
To: Peter Houchin
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] radio groups in looped form


I don't think you can. The browser groups them by the name, so you will have
to write some code (simple) to change the name...

SED

-Original Message-
From: Peter Houchin [mailto:[EMAIL PROTECTED]]
Sent: 11. apríl 2001 23:33
To: Php-General@Lists. Php. Net
Subject: [PHP] radio groups in looped form


hiya,

I have a script that repeats a form x number of times depending on how many
records there are, what's happening is when i go to update my radio buttons
it sees every radio button on the page as the ONE group when really it's x
number of groups (again depending on how many records there are)

How can i differ between raido groups with out having to get the name
changed for every record after the 1st one?

Peter Houchin
[EMAIL PROTECTED]
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .COM!  **



-- 
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] radio groups in looped form

2001-04-11 Thread SED

One thing I forgot to mention, you can of course name the group: avail[$i]
(see below) so you will able to refer to it as an array in PHP file later
on.


--
So far as I know, the HTML does not support arrays. However, you can make
simple code that adds number to each group so you can refer to them later
e.g.:

$i = 0;
while (your arguments) {

echo "name=\avail[$i]\";
$i++;

}

And afterwards you can refer to it the same way (perhaps you may want to
keep the total value of $i in a hidden form field for later use).

SED



-Original Message-
From: Peter Houchin [mailto:[EMAIL PROTECTED]]
Sent: 12. apríl 2001 00:05
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] radio groups in looped form


even though i am putting them in an array?

like

>

(i have another 2 radio buttons with this group)

Peter

-Original Message-----
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:05 AM
To: Peter Houchin
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] radio groups in looped form


I don't think you can. The browser groups them by the name, so you will have
to write some code (simple) to change the name...

SED

-Original Message-
From: Peter Houchin [mailto:[EMAIL PROTECTED]]
Sent: 11. apríl 2001 23:33
To: Php-General@Lists. Php. Net
Subject: [PHP] radio groups in looped form


hiya,

I have a script that repeats a form x number of times depending on how many
records there are, what's happening is when i go to update my radio buttons
it sees every radio button on the page as the ONE group when really it's x
number of groups (again depending on how many records there are)

How can i differ between raido groups with out having to get the name
changed for every record after the 1st one?

Peter Houchin
[EMAIL PROTECTED]
=
 _  __   /\
/_/_/_\/  |_/  \
   /_/_/___  __  __   __  / \
   \_/_/_\  /_/ /_/ /_/  /_/  \   _ /
 ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/
 \_//_/_/ /_/_/_/ /_/ \/_/v
    
/_/_/_/_/  /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
   /_/_ _/_/ __  __   __  /_/   __ __
  /_/_/_/_/ /_/_/_/ /_/  /_/ /_/ /_/\_\/_//_/_/_/
 /_/  \_\  /_/ _/  /_//\/_/ /_/ /_/__\_\  /_/___ _\_\_\
/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/
=
Telephone : (03) 9329 1455  Facsimile : (03) 9329 6755
* We rent the dot in .COM!  **



--
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]


-- 
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] no reponse -- Need FTP help

2001-04-12 Thread SED

Hafu check out the ftp funtions build in PHP? You can find them on their
website www.php.net.

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is <- New Homepage!
--

-Original Message-
From: David Minor [mailto:[EMAIL PROTECTED]]
Sent: 12. april 2001 22:13
To: [EMAIL PROTECTED]
Subject: [PHP] no reponse -- Need FTP help


Well, I didn't get a response from my previous post, so I'm trying again.  I
need to collect a group of files in a form and ftp them to a different
server than the script is located on.  Can this be done? how?

Thank you,
David Minor


--
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]


-- 
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] time

2001-06-20 Thread SED

I would guess server-time because the PHP is server-based and is
processed before the user gets it :)
 
SED

-Original Message-
From: Jon Yaggie [mailto:[EMAIL PROTECTED]] 
Sent: 20. maí 2001 13:51
To: [EMAIL PROTECTED]
Subject: [PHP] time


quickly can some one tell me if time() return server or usersystem time?
 
 
 
 
Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0
 
 


--
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] Calculate # of minutes during working hours between two dates

2001-06-20 Thread SED

Try to find unix-time in seconds:  (endtime - starttime) / 60 = total
minutes

SED

-Original Message-
From: Wim Koorenneef [mailto:[EMAIL PROTECTED]] 
Sent: 20. júní 2001 15:26
To: [EMAIL PROTECTED]
Subject: [PHP] Calculate # of minutes during working hours between two
dates


Hi all,

I want to calculate the number of minutes between two dates, but only 
those minutes on monday through friday between 08.00 and 17.30.

I could evaluate every minute in the interval against all known minutes 
during working hours, but that's a bit much :-) Any suggestions for a 
better, more efficient algorithm? Tia.

-- 
Greetinx,

Wim Koorenneef <[EMAIL PROTECTED]> Boxtel, the Netherlands


-- 
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]


--
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] get a screen resolution

2001-07-06 Thread SED

While we are talking about JavaScript, do you know of any postlist like
this one I can subscribe to? I have been looking for it but not found
any (I know of lot of websites but without this).

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Justin Farnsworth
Sent: 6. júlí 2001 11:30
To: Marc van Duivenvoorde
Cc: Php general lijst
Subject: Re: [PHP] get a screen resolution


Marc van Duivenvoorde wrote:
> 
> I know I can do it with javascript, but if possible I'd like to do it
> with php.
-
Then have PHP write out the necessary javascript.  There is, obviously,
no way for PHP, on the server side, to know what the screen resolution
is of a client, until that client returns its screen resolution to the
server/PHP for PHP to use.

So, as previously stated by many, use javascript to find out and send
back on the round trip for PHP/you to use however you wish.

_jef
-- 
Justin Farnsworth
Eye Integrated Communications
321 South Evans - Suite 203
Greenville, NC 27858 | Tel: (252) 353-0722

-- 
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]


--
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]




[PHP] Post a form within a running php-script

2001-07-06 Thread SED

For a special purpose I want to post a form within a running script, is
it possible? I don't need the feedback, only post it to a http-path. (To
clarify, I'm not asking about Submitting a form via button.)

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--


-- 
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] Post a form within a running php-script

2001-07-06 Thread SED

I thought that at first but I need to post long variables (some
containing many words) and many, is that okay?

-Original Message-
From: Chris Anderson [mailto:[EMAIL PROTECTED]] 
Sent: 6. júlí 2001 23:08
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Post a form within a running php-script


Put the variables in the url ie:
script.php?username=joebob&password=joepassword
- Original Message - 
From: "SED" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 6:30 PM
Subject: [PHP] Post a form within a running php-script


> For a special purpose I want to post a form within a running script, 
> is it possible? I don't need the feedback, only post it to a 
> http-path. (To clarify, I'm not asking about Submitting a form via 
> button.)
> 
> Regards,
> Sumarlidi Einar Dadason
> 
> SED - Graphic Design
> 
> --
> Phone:   (+354) 4615501
> Mobile:  (+354) 8960376
> Fax: (+354) 4615503
> E-mail:  [EMAIL PROTECTED]
> Homepage:www.sed.is
> --
> 
> 
> --
> 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]
> 


-- 
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]


--
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]




[PHP] Strange problem with fputs ($fp, $newVote)

2001-07-07 Thread SED

Hi,

I'm having strange problem with the fputs() - it occurs only on my IIS
server but not on the Linux/apache server (I use the IIS while
programming).

The problem:

fputs ($fp, $newVote);

It does not write the content of $newVote into the text file $fp is
pointing to. If I check the value of fputs like:

$test   = fputs ($fp, $newVote);
echo $test;

I get the number "0" - but notice I don't get any error messages. Does
anyone know why this acts like that? If I echo the permission of the
file I get this: 33206 (what does that mean?).

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--



-- 
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] Strange problem with fputs ($fp, $newVote)

2001-07-07 Thread SED

Hi again,

I got around the problem just by doing following. However, the problem
is weird (I'm using PHP 4.0.5 for IIS).

$fp = fopen ($filename, "a+");
$fileContent = fread ($fp, filesize ($filename));
...
fclose ($fp);
$fp = fopen ($filename, "a"); <- the plus taken away!
ftruncate ($fp, 0);
fwrite ($fp, $newVote);
fclose ($fp);

Can this be a bug?

SED 

-Original Message-
From: SED [mailto:[EMAIL PROTECTED]] 
Sent: 7. júlí 2001 21:56
To: [EMAIL PROTECTED]
Subject: [PHP] Strange problem with fputs ($fp, $newVote)


Hi,

I'm having strange problem with the fputs() - it occurs only on my IIS
server but not on the Linux/apache server (I use the IIS while
programming).

The problem:

fputs ($fp, $newVote);

It does not write the content of $newVote into the text file $fp is
pointing to. If I check the value of fputs like:

$test   = fputs ($fp, $newVote);
echo $test;

I get the number "0" - but notice I don't get any error messages. Does
anyone know why this acts like that? If I echo the permission of the
file I get this: 33206 (what does that mean?).

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--



-- 
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]


--
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]




[PHP] Expert advice needed

2001-07-09 Thread SED

Hi,

I'm doing a polling side and I'm wandering what way I should save the
result, should I save each record in MySQL or should I save only the
total value in a text file each time I get vote? So, can anyone of you
experts advice me what way I should go? The traffic is only 100-500 hits
per day.

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--


-- 
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]




[PHP] How to add a new color to JPEG

2001-07-10 Thread SED

Lets say I have a black JPEG-image and I want to add yellow text to it,
how can I define the yellow color?

According to the manual, you can only get closest value of your desired
color by letting the ImageColorClosest() find it. Therefore, if the
image is totally black, you can not get the yellow color. I have not
found a way to do this though I believe I have tried everything. And
yet, I have not found any documents covering this other than PHP-manual.

Do you know of a way to do this? Or do you know of other
manuals/tutorials covering this issue?

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--





-- 
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] How to add a new color to JPEG

2001-07-10 Thread SED

That’s the problem, if I do that and the color is not used before in the
image, I get only the closest match. Note, if I add a yellow pixle into
the JPEG-image with Photoshop, save it and try it again, then I can use
the yellow for my text. However, I don’t want to have the yellow dot in
my picture, only a yellow text.

SED

-Original Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED]] 
Sent: 10. júlí 2001 17:26
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] How to add a new color to JPEG


Could try this:

$blue = ImageColorAllocate($image, 0, 0, 255);

Substitue blue for yellow and you'll be the appropriate RGB values for
the numbers.

Jeff

> -Original Message-
> From: SED [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 1:27 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to add a new color to JPEG
>
>
> Lets say I have a black JPEG-image and I want to add yellow text to 
> it, how can I define the yellow color?
>
> According to the manual, you can only get closest value of your 
> desired color by letting the ImageColorClosest() find it. Therefore, 
> if the image is totally black, you can not get the yellow color. I 
> have not found a way to do this though I believe I have tried 
> everything. And yet, I have not found any documents covering this 
> other than PHP-manual.
>
> Do you know of a way to do this? Or do you know of other 
> manuals/tutorials covering this issue?
>
> Regards,
> Sumarlidi Einar Dadason
>
> SED - Graphic Design
>
> --
> Phone:   (+354) 4615501
> Mobile:  (+354) 8960376
> Fax: (+354) 4615503
> E-mail:  [EMAIL PROTECTED]
> Homepage:www.sed.is
> --
>
>
>
>
>
> --
> 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]
>
>
>


--
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] How to add a new color to JPEG

2001-07-10 Thread SED

How can I add colors to JPEG-palette? I never new It had a special
palette (until now :).

-Original Message-
From: James Cox [mailto:[EMAIL PROTECTED]] 
Sent: 10. júlí 2001 22:38
To: Jeff@Hyrum. Net
Cc: [EMAIL PROTECTED]; Php-General@Lists. Php. Net
Subject: RE: [PHP] How to add a new color to JPEG



hmm.

If what I understand from your ImageColorClosest(); function, why don't
you just add yellow to the palette? that way it can be found by the
function, but isn't used in the image?

HTH,

James Cox

apologies jeff for sending it twice to you :)

> -Original Message-
> From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> Sent: 10 July 2001 23:00
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP] How to add a new color to JPEG
>
>
> Hmm, I create my image from scratch and haven't tried drawing on an 
> existing pallette.  If your start image is always a blank black box 
> you could always
> create it on the fly...
>
> > -Original Message-
> > From: SED [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 10, 2001 1:52 PM
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: RE: [PHP] How to add a new color to JPEG
> >
> >
> > That’s the problem, if I do that and the color is not used before in

> > the image, I get only the closest match. Note, if I add a yellow 
> > pixle into the JPEG-image with Photoshop, save it and try it again, 
> > then I can use the yellow for my text. However, I don’t want to have

> > the yellow dot in my picture, only a yellow text.
> >
> > SED
> >
> > -Original Message-
> > From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> > Sent: 10. júlí 2001 17:26
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: RE: [PHP] How to add a new color to JPEG
> >
> >
> > Could try this:
> >
> > $blue = ImageColorAllocate($image, 0, 0, 255);
> >
> > Substitue blue for yellow and you'll be the appropriate RGB values 
> > for the numbers.
> >
> > Jeff
> >
> > > -Original Message-
> > > From: SED [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, July 10, 2001 1:27 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] How to add a new color to JPEG
> > >
> > >
> > > Lets say I have a black JPEG-image and I want to add yellow text 
> > > to it, how can I define the yellow color?
> > >
> > > According to the manual, you can only get closest value of your 
> > > desired color by letting the ImageColorClosest() find it. 
> > > Therefore, if the image is totally black, you can not get the 
> > > yellow color. I have not found a way to do this though I believe I

> > > have tried everything. And yet, I have not found any documents 
> > > covering this other than PHP-manual.
> > >
> > > Do you know of a way to do this? Or do you know of other 
> > > manuals/tutorials covering this issue?
> > >
> > > Regards,
> > > Sumarlidi Einar Dadason
> > >
> > > SED - Graphic Design
> > >
> > > --
> > > Phone:   (+354) 4615501
> > > Mobile:  (+354) 8960376
> > > Fax: (+354) 4615503
> > > E-mail:  [EMAIL PROTECTED]
> > > Homepage:www.sed.is
> > > --
> > >
> > >
> > >
> > >
> > >
> > > --
> > > 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]
> > >
> > >
> > >
> >
> >
> > --
> > 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]
> >
> >
> >
>
>
> --
> 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]
>


--
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] How to add a new color to JPEG

2001-07-10 Thread SED

I'm not sure I follow. I know this is how I would do it if I had a
GIF-image, but this does not include JPEG. That’s the main issue. The
JPEG is saved as an RGB-image, not index colored like GIF, therefore I'm
asking about how to add a RGB color to a non-index-color-image (JPEG).
Are you sure you are talking about JPEG, not GIF?

SED

-Original Message-
From: James Cox [mailto:[EMAIL PROTECTED]] 
Sent: 10. júlí 2001 23:28
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] How to add a new color to JPEG


That's something you would need to do in photoshop.

open your image, select save for web, look to the left of the image, you
should see some buttons and a black box. you need to click on the black
box, select the yellow you want, and then click ok. Then, click the
button above the yellow - that will select the eyedropper. Then, go to
the color palette opposite. click on the 3rd icon underneath it, which
allows you to add eyedropper color to the palette.

That should work. mail me if you get stuck, with your image
dimensions/copy of image.

James

> -Original Message-
> From: SED [mailto:[EMAIL PROTECTED]]
> Sent: 11 July 2001 00:21
> To: 'James Cox'; [EMAIL PROTECTED]
> Subject: RE: [PHP] How to add a new color to JPEG
>
>
> How can I add colors to JPEG-palette? I never new It had a special 
> palette (until now :).
>
> -Original Message-
> From: James Cox [mailto:[EMAIL PROTECTED]]
> Sent: 10. júlí 2001 22:38
> To: Jeff@Hyrum. Net
> Cc: [EMAIL PROTECTED]; Php-General@Lists. Php. Net
> Subject: RE: [PHP] How to add a new color to JPEG
>
>
>
> hmm.
>
> If what I understand from your ImageColorClosest(); function, why 
> don't you just add yellow to the palette? that way it can be found by 
> the function, but isn't used in the image?
>
> HTH,
>
> James Cox
>
> apologies jeff for sending it twice to you :)
>
> > -Original Message-
> > From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> > Sent: 10 July 2001 23:00
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: RE: [PHP] How to add a new color to JPEG
> >
> >
> > Hmm, I create my image from scratch and haven't tried drawing on an 
> > existing pallette.  If your start image is always a blank black box 
> > you could always create it on the fly...
> >
> > > -Original Message-
> > > From: SED [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, July 10, 2001 1:52 PM
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: RE: [PHP] How to add a new color to JPEG
> > >
> > >
> > > That’s the problem, if I do that and the color is not used before 
> > > in
>
> > > the image, I get only the closest match. Note, if I add a yellow 
> > > pixle into the JPEG-image with Photoshop, save it and try it 
> > > again, then I can use the yellow for my text. However, I don’t 
> > > want to have
>
> > > the yellow dot in my picture, only a yellow text.
> > >
> > > SED
> > >
> > > -Original Message-
> > > From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> > > Sent: 10. júlí 2001 17:26
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: RE: [PHP] How to add a new color to JPEG
> > >
> > >
> > > Could try this:
> > >
> > > $blue = ImageColorAllocate($image, 0, 0, 255);
> > >
> > > Substitue blue for yellow and you'll be the appropriate RGB values

> > > for the numbers.
> > >
> > > Jeff
> > >
> > > > -Original Message-
> > > > From: SED [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, July 10, 2001 1:27 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] How to add a new color to JPEG
> > > >
> > > >
> > > > Lets say I have a black JPEG-image and I want to add yellow text

> > > > to it, how can I define the yellow color?
> > > >
> > > > According to the manual, you can only get closest value of your 
> > > > desired color by letting the ImageColorClosest() find it. 
> > > > Therefore, if the image is totally black, you can not get the 
> > > > yellow color. I have not found a way to do this though I believe

> > > > I
>
> > > > have tried everything. And yet, I have not found any documents 
> > > > covering this other than PHP-manual.
> > > >
> > > > Do you know of a way to do this? Or do you know of other 
> > > > manuals/tutorials covering this issue?
> >

RE: [PHP] How to add a new color to JPEG

2001-07-10 Thread SED

I have version 4.0.5 so I need to upgrade :)

However, I found work around on the PHP-website:

--
I experienced the same, but i use following workaround: 
Create a new Jpeg, Allocate your colours, and copy your original jpg
into the new one. then you have all the colours you have allocated in
your new pic...

I experienced the same, but i use following workaround: 
Create a new Jpeg, Allocate your colours, and copy your original jpg
into the new one. then you have all the colours you have allocated in
your new pic...
--

So this problem is solved. Thank you for the help.

SED



-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]] 
Sent: 10. júlí 2001 23:30
To: 'James Cox'; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] How to add a new color to JPEG



Is this only a problem with PHP/GD versions previous to 4.0.6/2.0.1?

Does the new ImageCreateTrueColor() function fix this issue?

http://www.php.net/manual/en/function.imagecreatetruecolor.php



-Original Message-
From: James Cox [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, July 10, 2001 7:28 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] How to add a new color to JPEG


That's something you would need to do in photoshop.

open your image, select save for web, look to the left of the image, you
should see some buttons and a black box. you need to click on the black
box, select the yellow you want, and then click ok. Then, click the
button above the yellow - that will select the eyedropper. Then, go to
the color palette opposite. click on the 3rd icon underneath it, which
allows you to add eyedropper color to the palette.

That should work. mail me if you get stuck, with your image
dimensions/copy of image.

James

> -Original Message-
> From: SED [mailto:[EMAIL PROTECTED]]
> Sent: 11 July 2001 00:21
> To: 'James Cox'; [EMAIL PROTECTED]
> Subject: RE: [PHP] How to add a new color to JPEG
>
>
> How can I add colors to JPEG-palette? I never new It had a special
> palette (until now :).
>
> -Original Message-
> From: James Cox [mailto:[EMAIL PROTECTED]]
> Sent: 10. júlí 2001 22:38
> To: Jeff@Hyrum. Net
> Cc: [EMAIL PROTECTED]; Php-General@Lists. Php. Net
> Subject: RE: [PHP] How to add a new color to JPEG
>
>
>
> hmm.
>
> If what I understand from your ImageColorClosest(); function, why
> don't you just add yellow to the palette? that way it can be found by 
> the function, but isn't used in the image?
>
> HTH,
>
> James Cox
>
> apologies jeff for sending it twice to you :)
>
> > -Original Message-
> > From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> > Sent: 10 July 2001 23:00
> > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: RE: [PHP] How to add a new color to JPEG
> >
> >
> > Hmm, I create my image from scratch and haven't tried drawing on an
> > existing pallette.  If your start image is always a blank black box 
> > you could always create it on the fly...
> >
> > > -Original Message-
> > > From: SED [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, July 10, 2001 1:52 PM
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: RE: [PHP] How to add a new color to JPEG
> > >
> > >
> > > That’s the problem, if I do that and the color is not used before
> > > in
>
> > > the image, I get only the closest match. Note, if I add a yellow
> > > pixle into the JPEG-image with Photoshop, save it and try it 
> > > again, then I can use the yellow for my text. However, I don’t 
> > > want to have
>
> > > the yellow dot in my picture, only a yellow text.
> > >
> > > SED
> > >
> > > -Original Message-
> > > From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
> > > Sent: 10. júlí 2001 17:26
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: RE: [PHP] How to add a new color to JPEG
> > >
> > >
> > > Could try this:
> > >
> > > $blue = ImageColorAllocate($image, 0, 0, 255);
> > >
> > > Substitue blue for yellow and you'll be the appropriate RGB values

> > > for the numbers.
> > >
> > > Jeff
> > >
> > > > -Original Message-
> > > > From: SED [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, July 10, 2001 1:27 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] How to add a new color to JPEG
> > > >
> > > >
> > > > Lets say I have a black JPEG-image and I want to add yellow text

> > > > to it, how can I define the yellow color?
&

[PHP] Function? How to find if xy values are within a coordinates of polygon?

2001-07-11 Thread SED

I'm making a map (image) which you can click on and the script finds the
area-code based on where you click on the map.

Before I spend time on writing my own code to find if xy values are
within a certain coordinates of a polygon, do you know of any build in
function to do it? I have browsed lightly through the PHP-manual but not
found any.

Thanks,

SED


-- 
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]




[PHP] Where can I download GD 2.0 or later? (php_gd.dll for Win)

2001-07-11 Thread SED


Where can I download GD 2.0 or later? (php_gd.dll for Win)

SED


-- 
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]




[PHP] RE: [correction] Where can I download GD 2.0 or later? (php_gd.dll for Win)

2001-07-11 Thread SED

What I really wanted ask about was if any knows about GD 2.x version
with build in GIF-support (I need both GIF-support and all the new
GD-JPEG function to work on the same time).

SED

-Original Message-

Where can I download GD 2.0 or later? (php_gd.dll for Win)

SED


-- 
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]


-- 
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]




[PHP] Re: Function? How to find if xy values are within a coordinates of polygon?

2001-07-11 Thread SED

Thanks to Lasse I found a good solution, you can view it here:

http://softlab.od.ua/algo/other/alg/node158.html

Thanks!

SED

-Original Message-
From: Lasse [mailto:[EMAIL PROTECTED]] 
Sent: 11. júlí 2001 22:02
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Function? How to find if xy values are within a
coordinates of polygon?



"Sed" <[EMAIL PROTECTED]> wrote in message
009301c10a46$3db4eba0$0100a8c0@mamma">news:009301c10a46$3db4eba0$0100a8c0@mamma...
> I'm making a map (image) which you can click on and the script finds
> the area-code based on where you click on the map.
>
> Before I spend time on writing my own code to find if xy values are
> within a certain coordinates of a polygon, do you know of any build in

> function to do it? I have browsed lightly through the PHP-manual but 
> not found any.

http://www.google.com/search?sourceid=navclient&q=point+inside+polygon

#1 match is

http://www.dfanning.com/tips/point_in_polygon.html

--
Lasse




-- 
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]


--
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]




[PHP] How can I see if variable is a odd or an even number?

2001-07-16 Thread SED

Do you know if there is a function to find out if a variable contains a
odd or an even number? I checked the manual but didn't see it.

Thanks!

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--


-- 
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] REPOST: Image color quality problems

2001-07-23 Thread SED

I had the same problem when using JPEG, but having a white pixel in the
picture solved it. But that did obviosly not solve your problem. Perhabs
this is due to "bug-version" of GD library, have you tried a newer one?
Does this also happen if you use JPEG and GIF files?

Let us know if you find solution!

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--

-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]] 
Sent: 23. júlí 2001 16:14
To: [EMAIL PROTECTED]
Subject: [PHP] REPOST: Image color quality problems


I need to learn to stop posting things over the weekend since they
rarely get a response.  Can anyone help with the below?:

I have the following code that takes an existing image, creates a new
one from it and writes some white text on top of that image:



Problem is, the "white" text isn't white -- it's a dingy gray color.
>From reading around, I thought maybe if I took an existing white pixel
in the image and used that to set white, that might help (hence the
commented out //$white = imageColorAt... line in my code above)  That
didn't help either.  (and the pixel I sampled is exactly the shade of
white I want)

I am almost completely unfamiliar with color pallettes and how to
manipulate them.  Can someone shed some light on how I can get some
clean, bright white text on my image?

Thanks.

--kurt


-- 
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]


--
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] "OR" Problems

2001-07-24 Thread SED

Why aren't you using the brackets?

if (statement){

} else {

    }

SED

-Original Message-
From: J S R [mailto:[EMAIL PROTECTED]] 
Sent: 25. júlí 2001 04:06
To: [EMAIL PROTECTED]
Subject: [PHP] "OR" Problems


Shouldn't this work?  I did it because I want the link to change to the
"top-alt" class when the certain link is selected.

but when i do this... they "if" statement is always active even if its
not on the page.

what am i doing wrong.



portfolio";
else
 echo "portfolio"
  ?>
  services";
else
 echo "services"
  ?>
  case
studies";
else
 echo "case
studies"
  ?>



-- 
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]


--
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] php_gd.dll for windows, please help me....

2001-08-07 Thread SED

Try this one:

http://php4win.de/

SED

-Original Message-
From: Marius Pertravèius [mailto:[EMAIL PROTECTED]] 
Sent: 4. ágúst 2001 22:33
To: [EMAIL PROTECTED]
Subject: [PHP] php_gd.dll for windows, please help me


Sveiki, PHP,

  Does anyone here has good php_gd.dll file that supports GD in
windows.I can't download it from http://php.weblogs.com/php_gd , because
it is damaged or smth.
  If you have, please email to me with this file. I need it very very
much...
  Thank you

 
 2001.08.05, sekmadienis
 Marius Pertravèius
 iCQ: #125733984
 [EMAIL PROTECTED]


-- 
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]


--
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] [PHP-WIN] Binary GD Library for W2K

2001-08-08 Thread SED

Check this out -> http://php4win.de/

SED

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: 8. ágúst 2001 21:46
To: [EMAIL PROTECTED]
Subject: [PHP] [PHP-WIN] Binary GD Library for W2K


Hi All,  some partner in the world has the GD binaries ?,  please don't
doubth in tell me, I neeed it.

Or let me know som shortcut way to get it.

Thanks in advance !!

Atte. Ignacio Estrada F.
Centro Nacional de Control de Energia
Area de Control Occidental
025+6463, 025+6464, 025+6469


-- 
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]


--
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]




[PHP] Question about security: writing images to a directory (chmod 777)

2001-08-09 Thread SED

For a job I'm working on I need to let PHP-code write images to a
directory. To be able to do that I need to make this directory read- and
writeable. Concerned about the security, is this directory open for
anyone to write into it? (Let say PHP-code form another server?) If so,
how can I solve this without this security-risk?

Thanks,
SED


-- 
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] SSL Advice

2001-08-23 Thread SED

Hi Berber,

I was reading the agreement for Verisign certificate and they request a
fee for each machine and, if I remember it correctly, each domain, and
it's not a cheap one!

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--


-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]] 
Sent: 23. ágúst 2001 21:47
To: PHP General (E-mail)
Subject: [PHP] SSL Advice


Hi

We are running a very successful PHP site with lots of traffic. We
decided to move to a configuration of a few front ends and a back SQL.
Till now it was one server and the SSL was for that server. Now we will
have 2-4 front ends which are practically the same. The machine name is
different and the SSL seems to have a problem with this.

We have a way to bypass this but I was wondering what is the right way
to go? do you buy a certificate for each server or do you only need one?

thanks

berber


-- 
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]


--
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] What does PHP stand for?

2001-08-28 Thread SED

The manual says:

officially "PHP: Hypertext Preprocessor"

SED

-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]] 
Sent: 28. ágúst 2001 10:38
To: Php-General
Subject: [PHP] What does PHP stand for?


It just crossed my mind: I don't know what PHP stands for...so anyone?
:)


Niklas


--
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] What does PHP stand for?

2001-08-28 Thread SED

I suggest this for the PHP ;)

Professional Hypertext Preprocessor

SED

-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]] 
Sent: 28. ágúst 2001 11:11
To: Php-General
Subject: RE: [PHP] What does PHP stand for?


So PHP stands for "Personal Home Pages Hypertext Preprocessor". What a
nice name! :)


Niklas


-Original Message-
From: Jon Farmer [mailto:[EMAIL PROTECTED]]
Sent: 28. elokuuta 2001 14:04
To: Niklas Lampén; Php-General
Subject: RE: [PHP] What does PHP stand for?


Well I guess Rasmus is the guy who knows but as I understand it, it was
originally

Personal Home Pages

and became

PHP Hypertext Preprocessor  later

Regards

jon

--
Jon Farmer  Õ¿Õ¬
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key available, send blank email to [EMAIL PROTECTED]

-Original Message-
From: Niklas Lampén [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 11:38
To: Php-General
Subject: [PHP] What does PHP stand for?


It just crossed my mind: I don't know what PHP stands for...so anyone?
:)


Niklas


--
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]


-- 
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]


--
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]




[PHP] What happened to Imagettftext() function in PHP 4.0.7 and GD 2.1?

2001-08-29 Thread SED

I'm working on a project which needs a text rendered to JPEG-image, but
when I use the imagettftext() function I get very ugly/damage font (I'm
using PHP 4.0.7 and GD 2.1 downloaded from php4win.com, IIS). However,
if I use the GD 1.6 instead I get the font okay. 

I do need to have the GD 2.1 version working and I of course I can't use
the both versions at the same time. Does anyone know why the true type
fonts gets very so ugly/damage in this latest GD version? Do you know
how I can bypass this problem?

Thanks!

Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--


-- 
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] How do I find out what version of GD I'm running?

2001-09-07 Thread SED

Run this function:

phpinfo ([int what])

Check the manual for further details.

Regards,
Sumarlidi Einar Dadason

SED - Graphic Design

--
Phone:   (+354) 4615501
Mobile:  (+354) 8960376
Fax: (+354) 4615503
E-mail:  [EMAIL PROTECTED]
Homepage:www.sed.is
--

-Original Message-
From: Seb Frost [mailto:[EMAIL PROTECTED]] 
Sent: 7. september 2001 15:55
To: PHP (E-mail)
Subject: [PHP] How do I find out what version of GD I'm running?


with phpinfo it just says GD 1.6 or above.  This is on a webhoster.  How
do I find out what version they're actually running?  I tried asking but
they're useless...

- seb

-Original Message-
From: Sebastian Wenleder [mailto:[EMAIL PROTECTED]]
Sent: 07 September 2001 16:36
To: Joseph Bannon; PHP (E-mail)
Subject: Re: [PHP] GD


At 10:06 Uhr -0500 07.09.2001, Joseph Bannon wrote:
>I just installed PHP 4.0.6.
>
>1) Do I have to down load GD (graphics library) and install it
>sperately or is it in 4.0.6 already?
>2) Do I have to run anything special during configuration?
>3) Do I have to completely re-install PHP and Apache?
>
>Thanks,
>
>Joseph

Hi Joseph,

You have to download GD from http://www.boutell.com/gd/
make sure you have zlib, libjpeg, libpng, and (if you need it) freetype
if not compile and install them all... then configure php with
#./configure  \ --with-gd= \ --with-zlib= \ --with-jpeg-dir= \ --with-png-dir= \
--with-tiff-dir= \ --with-freetype-dir= #make #make
install

then you will have to restart apache

Best regards, Sebastian Wenleder

--
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]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001


-- 
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]


-- 
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]




[PHP] Monitoring traffic

2001-09-14 Thread SED

Hi,

This is kind of off topic but I need to monitor the traffic in
kilobytes/bits on my net card adapter (in/out) or server (PHP, HTML,
etc.), do you know of any software? I'm using Win2000.

Thanks,
SED


-- 
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]




[PHP] Security with include() function

2001-09-20 Thread SED

Hi,

I was wandering if someone includes php-file with passwords, private
paths etc. on a different server like this: 

include ("http://someserver/file.php";);

Will this same person be able to echo all the variables in that file.php
script? Or is it in each and every time processed via php.exe before
delivered?

Thanks!
SED

 


-- 
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]




[PHP] A function in PHP that changes html in a string from to ?

2004-08-12 Thread SED
Is there any function in PHP that changes html in a string from  to  ? (e.g. adding the double quotes)

Regards, 
Sumarlidi Einar Dadason 

SED DESIGN 
_ 
Email: [EMAIL PROTECTED] 
Website: http://www.sed.is 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to disable the "Daylight saving time" in PHP 5?

2007-04-06 Thread SED
I need to disable the "Daylight saving time" in PHP 5.

My servers (Windows, both XP and Vista) have correct local time but PHP 5
adds an extra hour when I use date("H") or other time functions. Instead of
getting 9 AM, I get 10 AM.

If I run date("I"), I get 1, which confirms that PHP 5 is using "Daylight
saving time". If I change the system date to January I get correct hour.

I have tried google.com and I ran through the php.net manual but I didn't
find a solution. I cannot add time-fix on every php-page, they are to many.

Regards,
Summi

Netfang [EMAIL PROTECTED]
Heimasíða http://www.sed.is

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] How to disable the "Daylight saving time" in PHP 5?

2007-04-06 Thread SED
I changed my timezone in php.ini to:

date.timezone = GMT0 ;

...and it works! Thanks!

Regards,
Summi

Netfang [EMAIL PROTECTED]
Heimasíða http://www.sed.is 
-Original Message-
From: Tijnema ! [mailto:[EMAIL PROTECTED] 
Sent: 6. apríl 2007 09:43
To: SED
Cc: php-general@lists.php.net
Subject: Re: [PHP] How to disable the "Daylight saving time" in PHP 5?

On 4/6/07, SED <[EMAIL PROTECTED]> wrote:
> I need to disable the "Daylight saving time" in PHP 5.
>
> My servers (Windows, both XP and Vista) have correct local time but PHP 5
> adds an extra hour when I use date("H") or other time functions. Instead
of
> getting 9 AM, I get 10 AM.
>
> If I run date("I"), I get 1, which confirms that PHP 5 is using "Daylight
> saving time". If I change the system date to January I get correct hour.
>
> I have tried google.com and I ran through the php.net manual but I didn't
> find a solution. I cannot add time-fix on every php-page, they are to
many.
>
> Regards,
> Summi
>
> Netfang [EMAIL PROTECTED]
> Heimasíða http://www.sed.is


I don't know a way to disable DST, but you can change your timezone in
the php.ini, so that you set it an hour back again :)
manual about date.timezone:
http://www.php.net/manual/en/ref.datetime.php#ini.date.timezone

Tijnema
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] How to disable the "Daylight saving time" in PHP 5?

2007-04-06 Thread SED
The Windows clocks are correct. The PHP 5 added always one hour. However,
Tijnema pointed me to his solution:

Change in php.ini date.timezone = GMT0

And therefore it will not add one hour to the system clock which is correct.

Regards,
Summi

Netfang [EMAIL PROTECTED]
Heimasíða http://www.sed.is 

-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED] 
Sent: 6. apríl 2007 10:06
To: Tijnema !
Cc: SED; php-general@lists.php.net
Subject: Re: [PHP] How to disable the "Daylight saving time" in PHP 5?

Tijnema ! wrote:
> On 4/6/07, SED <[EMAIL PROTECTED]> wrote:
>> I need to disable the "Daylight saving time" in PHP 5.
>>
>> My servers (Windows, both XP and Vista) have correct local time but PHP 5

these are not servers - they barely run something worthy of calling an OS.

>> adds an extra hour when I use date("H") or other time functions.
>> Instead of
>> getting 9 AM, I get 10 AM.
>>
>> If I run date("I"), I get 1, which confirms that PHP 5 is using "Daylight
>> saving time". If I change the system date to January I get correct hour.
>>
>> I have tried google.com and I ran through the php.net manual but I didn't
>> find a solution. I cannot add time-fix on every php-page, they are to
>> many.
>>
>> Regards,
>> Summi
>>
>> Netfang [EMAIL PROTECTED]
>> Heimasíða http://www.sed.is
> 
> 
> I don't know a way to disable DST, but you can change your timezone in
> the php.ini, so that you set it an hour back again :)
> manual about date.timezone:
> http://www.php.net/manual/en/ref.datetime.php#ini.date.timezone

yeah - chances are the default timezone is not your timezone - setting
the correct one may fix it.

also what happens if you turn of the windows 'auto update DST' setting?

> 
> Tijnema
>>
>>
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] ip-to-country

2009-10-18 Thread SED
Hi,

How can I access an index for IP to a country (or a more detailed location)?
I have not yet found a function for that in PHP nor a free to use website
that offers a remote search.

Perhaps, there is another solution - any ideas?

Regards,
Summi




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to change a filename for download (e.g. jpeg, pdf etc.)

2010-01-25 Thread SED
Hi,

Can anyone point me to tutorials on how to change a filename for each
download? My goal is to give the downloader a random name for a picture or a
document, so he will never know what the original filename is.

Regards,
Summi




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] How to change a filename for download (e.g. jpeg, pdf etc.)

2010-02-05 Thread SED
Hi,

I finally got the time to test your solutions, the following is the best
solution and causes a minimum stress on the server and a decent security.

header('Content-type: application/pdf');
header('Content-Disposition: attachment;
filename="downloaded.pdf"');
readfile('original.pdf');
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the
past

(Script from php.net based on your hints.)

I have tested this in many ways, but before I did not know how this was
simple.

SED


-Original Message-
From: richard.he...@gmail.com [mailto:richard.he...@gmail.com] On Behalf Of
Richard
Sent: 25. janúar 2010 10:16
To: SED
Cc: php-general@lists.php.net
Subject: Re: [PHP] How to change a filename for download (e.g. jpeg, pdf
etc.)

Hi,

> Can anyone point me to tutorials on how to change a filename for each
> download? My goal is to give the downloader a random name for a picture or
a
> document, so he will never know what the original filename is.

Try adding a Content-Disposition header:



-- 
Richard Heyes
HTML5 canvas graphing: RGraph - http://www.rgraph.net (updated 16th January)
Follow me on Twitter: http://twitter.com/_rgraph
Lots of PHP and Javascript code - http://www.phpguru.org




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP (32 bit) on IIS7.5 and MySQL 5.1.45 (64 bit) -> established connection failed because connected host has failed to respond

2010-04-04 Thread SED
Hi Kevin,

- MySQL 5.1 (64bit) is listening at port 0.0.0.0:3306
- MySQL 4.1 (32bit) is listening at port 0.0.0.0:3307
- When running MySQL command via PHP (CMD or browser) I get 127.0.0.1:3306
Established
- I can connect to MySQL via CMD or MySQL Administrator GUI.
- PHP (32bit) loads php_mysql.dll
- php.ini works 100%
- All Firewalls are disabled on LAN

- Is this a PHP bug or am I getting crazy? ;-)
- Is there a 64bit of PHP who is assumed ok for develope machine with
firewalls?

Regards,
Summi

-Original Message-
From: Kevin Kinsey [mailto:k...@daleco.biz] 
Sent: 4. apríl 2010 01:02
To: Sumarliði Einar Daðason
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP (32 bit) on IIS7.5 and MySQL 5.1.45 (64 bit) ->
established connection failed because connected host has failed to respond

Sumarliði Einar Daðason wrote:

> I have setup PHP (32 bit) on IIS7.5 and MySQL 5.1.45 (64 bit)  with
success.
> phpinfo() shows the MySQL extension loaded, but when I try to use 
> mysql_connect( $host, $user, $password ) in a PHP script I get 
> following
> error:
> 
> PHP Warning:  mysql_connect() [ href='function.mysql-connect'>function.mysql-connect]: [2002] A 
> connection attempt failed because the connected party did not  (trying 
> to connect via tcp://localhost:3306) in 
> C:\inetpub\wwwroot\old\index.php on line 29
> 
> I have search on the Internet for a solution for this but without any
luck.
> Any ideas?

Yes, first check that MySQL is actually listening on port 3306 ("Netstat"
should do that trick), and, if it is, try turning your firewall off.  What
is the value of $host?

KDK






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] PHP (32 bit) on IIS7.5 and MySQL 5.1.45 (64 bit) -> established connection failed because connected host has failed to respond

2010-04-04 Thread SED
Hi Kevin,

Thank you for your assistance. I finally gave up and let my self to default
Microsoft Installation for IIS7.5+PHP+MySQL.

Everything runs fine on my developer machine - and that was my main goal -
so I'm fine.

However, after about 48 hours of search, I was not able to find to how to do
this manually - and it shock me (as a open source fan). At least, my Linuxs'
servers are still intact.

Ps. there is still snowing here in Iceland (heat -15°C in wind) and a
volcano eruption that is growing. :)

Thanks for your help,
Summi

-Original Message-----
From: SED [mailto:s...@sed.is] 
Sent: 4. apríl 2010 10:06
To: 'Kevin Kinsey'
Cc: php-general@lists.php.net
Subject: RE: [PHP] PHP (32 bit) on IIS7.5 and MySQL 5.1.45 (64 bit) ->
established connection failed because connected host has failed to respond

Hi Kevin,

- MySQL 5.1 (64bit) is listening at port 0.0.0.0:3306
- MySQL 4.1 (32bit) is listening at port 0.0.0.0:3307
- When running MySQL command via PHP (CMD or browser) I get 127.0.0.1:3306
Established
- I can connect to MySQL via CMD or MySQL Administrator GUI.
- PHP (32bit) loads php_mysql.dll
- php.ini works 100%
- All Firewalls are disabled on LAN

- Is this a PHP bug or am I getting crazy? ;-)
- Is there a 64bit of PHP who is assumed ok for develope machine with
firewalls?

Regards,
Summi

-Original Message-
From: Kevin Kinsey [mailto:k...@daleco.biz]
Sent: 4. apríl 2010 01:02
To: Sumarliði Einar Daðason
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP (32 bit) on IIS7.5 and MySQL 5.1.45 (64 bit) ->
established connection failed because connected host has failed to respond

Sumarliði Einar Daðason wrote:

> I have setup PHP (32 bit) on IIS7.5 and MySQL 5.1.45 (64 bit)  with
success.
> phpinfo() shows the MySQL extension loaded, but when I try to use 
> mysql_connect( $host, $user, $password ) in a PHP script I get 
> following
> error:
> 
> PHP Warning:  mysql_connect() [ href='function.mysql-connect'>function.mysql-connect]: [2002] A 
> connection attempt failed because the connected party did not  (trying 
> to connect via tcp://localhost:3306) in 
> C:\inetpub\wwwroot\old\index.php on line 29
> 
> I have search on the Internet for a solution for this but without any
luck.
> Any ideas?

Yes, first check that MySQL is actually listening on port 3306 ("Netstat"
should do that trick), and, if it is, try turning your firewall off.  What
is the value of $host?

KDK






--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Advice needed - general (GPS, databases, webs etc.)

2010-05-15 Thread SED
Hi,

 

I'm in the search for resources for the next step in the information's age.
I think smartphones with GPS and the internet will be THE BIG BUSINESS next
years.

 

Because this is hard business I'm not able to get overview and resources
handly, except by selling my soul to the big companies. There is so much
information on the internet that one person can not find what out what is
real and what is not.

 

Can you send me links regarding GPS, maps, smartphones that PHP programmers
focus on? I'm asking for useful information at advanced level, even though
it links to other programming languages, graphics or big companies.

 

Regards, 

Summi

from Iceland (...where the volcano stopped the world) J



[PHP] Test - Ignore

2010-08-09 Thread SED
Test A00

SED



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Can $_SERVER['REMOTE_ADDR'] be trusted?

2005-02-23 Thread SED
Is it possible for hackers to give a fake IP address when visiting a website
running PHP?

I want to allow certain IP addresses have access to a website (other IP
addresses not), is it possible for someone (e.g. hacker) to give fake IP
address? If so, how is the website returned to this someone?

If you have any reference or links on this, please send me!

Regards,
Summi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Can I use ftp_put to bypass upload_max_filesize?

2005-03-15 Thread SED
I have been thinking about a way to upload a file through a web-browser,
bigger than the upload_max_filesize is set in the php.ini on the server.

Is it somehow possible, to use ftp_put to upload a file bigger than the
upload_max_filesize is set in the php.ini? (eg. upload 100Mb while
upload_max_filesize is set to 16MB)

Regards,
SED

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Can I use ftp_put to bypass upload_max_filesize?

2005-03-15 Thread SED
Are you meaning timeout limit? Not PHP script execution limit in php.ini?
What I understand, the PHP script does not run until the file is uploaded to
the server via POST.

SED

-Original Message-
From: Eli [mailto:[EMAIL PROTECTED] 
Sent: 15. mars 2005 23:27
To: php-general@lists.php.net
Subject: [PHP] Re: Can I use ftp_put to bypass upload_max_filesize?

Sed wrote:
> Is it somehow possible, to use ftp_put to upload a file bigger than 
> the upload_max_filesize is set in the php.ini? (eg. upload 100Mb while 
> upload_max_filesize is set to 16MB)

You will have also to consider the browser's timeout limit. Uploading a
100MB file via HTTP POST will probably take quite a long time that the
browser will timeout and interrupt the transfer.

I got a thought, but didn't try to check it out:
If there's a way to split a file to small chunks (i.e 2MB a chunk), then you
can use JS Remote Scripting (HTTPRequest) to upload the chunks one by one,
and then append all chunks on server side and you get the 100MB file. This
way you can also display a progress bar of uploading. Of course the chunks
will be transffered like packets (in TCP), so each chunk will have an header
that relates it to the original file.
The part that is not well cleared to me is whether is possible to split a
file into chunks using JS.
What do you think?

-thanks, Eli

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] POST long texts to PHP

2005-05-07 Thread SED

I need to POST long texts through a form to PHP but the text cuts down to
around 64.000 characters. Is there any way to allow longer texts (like in
php.ini)?

Regards,
SED

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



  1   2   >