Re: [PHP] mail() with images *embedded*

2002-05-24 Thread m u i n a r
At 08:44 24.05.02, you wrote: >I used: > > cid:01.jpg\"; width=\"600\" height=\"75\"> ... after the html I have: $file = "01.jpg"; $path = "/usr/www/users/muinar/rtj/i/newsletter-title.jpg"; $fp = fopen( $path,"r" ); $attachment = fread( $fp,filesize( $path

[PHP] SMARTCARDS - PHP + MySQL

2002-05-24 Thread PHPCoder
HI I would like to hear from anyone who have possibly worked on implementing a smartcard solution to controll access to a website. I am looking into possibilities for a proposal, and one of the requirements of the client is that the system data has to be accessible via the web, and that the acc

RE: [PHP] PHP & PGP

2002-05-24 Thread Dave MacRae
> This is not what I need. > I'm not building a userbase to authenticate with. > > I'm holding a database of users and passwords that I need to keep. > There is no authentication done against these user/password pairs. > > I don't want to keep the passwords in free text since if someone > break

Re: [PHP] mail() with images *embedded*

2002-05-24 Thread Jason Wong
On Friday 24 May 2002 15:36, m u i n a r wrote: [snip] > The encoding works, the message looks fine, just the images are not > embedded but attached. Aaargh :( Like I said before it, what I had works on Outlook and not on KMail. As my client only uses Outlook and it worked I didn't do any fur

[PHP] File lock - warning ?

2002-05-24 Thread Manisha
I open a file in append mode, I locked it and write the data. But when I try to unlock or close it then I get warning Warning: Unable to find file identifier 12 in www/htdocs/testfclose.php3 on line 9 Warning: Unable to find file identifier 12 in www/htdocs/testfclose.php3 on line 10 close ok

[PHP] bug in php 4.2 with mysql

2002-05-24 Thread Alex Elderson
Hi, Can somebody take a look at this bug and tell me if that is a real bug or what i do wrong? http://bugs.php.net/bug.php?id=17305 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() with images *embedded*

2002-05-24 Thread m u i n a r
Outlook shows the images inline... *and* attaches them to the end of the email - is that standard? (It's a horror to work with Outlook and this kind of setup, so I can't really tell myself - brrr... ) Since Eudora doesn't display the inline images, though I tried all possible and impossible sett

Re: [PHP] mail() with images *embedded*

2002-05-24 Thread Jason Wong
On Friday 24 May 2002 17:24, m u i n a r wrote: > Outlook shows the images inline... *and* attaches them to the end of the > email - is that standard? Not with *my* code :) It only displays it inline (it's actually a table with a column for picture and some columns for description and other inf

RE: [PHP] Leading zeroes

2002-05-24 Thread Ford, Mike [LSS]
> -Original Message- > From: Liam Gibbs [mailto:[EMAIL PROTECTED]] > Sent: 23 May 2002 18:49 > > > From version 4.1.0, $str = ltrim($str, '0') > > This works excellently. Thanks. One problem that I > didn't think of, though: If the number is 0 (only 0), > then the string ends up being em

[PHP] GD + modify image

2002-05-24 Thread Evan
Hi to all!!! 1) phpinfo() return: GD version 1.6.2 or higher What does this mean exactly? What's the correct version of my GD? 2) I made a script that upload an image and paste the site logo in the bottom-left corner. The problem is that I get the error: " gd-png warning: alpha channel not suppo

[PHP] Session problem

2002-05-24 Thread Manisha
I am facing so many problems - first file lock and now for session - I still could not understand how to get the session value in another page. I am very new to PHP. I tried many many ways to get it Actually I want to store ID in a session and want to get back this ID in rest pages. Can you gi

[PHP] Re: SMARTCARDS - PHP + MySQL

2002-05-24 Thread Evan
If you know Italian check this: http://aladdin.it.net/ To tell the truth the company that developed the software if in south africa (not sure). Simply, it makes your cell phone became a smartcard: if you try calling the number showed in the next page you'll see the state of the text changing in "

[PHP] RE: [PHP-WIN] Re: Passing Variables

2002-05-24 Thread Opere, James
I need the group by clause to enable me pick the count of each type of item that can be used for drawing graphs.Remember that it is not very possible, although i don't know yet to come up with a chart of different number counts of each item without converting the counts to numerical values. -

[PHP] Re: PHP Mail problem

2002-05-24 Thread Michael Virnstein
refer to the manual of your email server and check for quota settings. You obviously reached the quota limit there and now you're not allowed to send any data, until the quota is reset. This may be on a daily or monthly basis or perhaps you have to do it manually. Regards Michael "Manisha" <[EMA

[PHP] Barcodes

2002-05-24 Thread José León Serna
Hello: I want to generate barcodes in images to be printed, possibly inside PDF, I have found several solutions, but I'm interested in EAN13 codes, any help? Best Regards. QaDRAM Studio, RAD Development for the WEB http://studio.qadram.com

[PHP] Re: Session problem

2002-05-24 Thread Adrian Ciutureanu
All you have to do is to call session_name("EmailSess"); session_start(); in rest of pages. BTW: You don't really need to call session_name() "Manisha" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am facing so many problems - first file lock and now fo

Re: [PHP] opendir security hole

2002-05-24 Thread daniel
unfortunatly it still happens "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, May 23, 2002 at 11:22:28PM +1000, daniel wrote: > > dir=../../../../ it will show you the root dir of the server , how can i > > Before passing the $Dir

[PHP] deleteing a file from server

2002-05-24 Thread David Orn Johannsson
I use the copy function to copy a file to the server, like this; copy($file, "./jpg/$name.jpg"); what would I do to removeit from the server, or delete it?

Re: [PHP] deleteing a file from server

2002-05-24 Thread m u i n a r
At 13:34 24.05.02, you wrote: >I use the copy function to copy a file to the server, like this; >copy($file, "./jpg/$name.jpg"); > >what would I do to removeit from the server, or delete it? if( file_exists( "$dirName/$file" ) ) { unlink( "$dirName/$fil

Re: [PHP] opendir security hole

2002-05-24 Thread daniel
scuse my ignorance i had it after opendir, thanks for that "Daniel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > unfortunatly it still happens > "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > On

[PHP] Confusion with UNIX date/time

2002-05-24 Thread webmaster
What php functions should I use to convert a UNIX timestamp to a human - legible format and back again?   I have looked in the manual and used google etc but I am only getting more confused :}   JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To u

RE: [PHP] Confusion with UNIX date/time

2002-05-24 Thread Jon Haworth
Hi JJ, > What php functions should I use to convert a UNIX timestamp > to a human - legible format and back again? gmdate()/date() and mktime()/gmmktime() (depending on whether you need to calculate them as GMT or not) HTH Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] mail() with images *embedded*

2002-05-24 Thread m u i n a r
Works! It was the order how headers and message were composed in the script. Now even my Eudora displays it fine. Now I'm gonna switch back to my old email settings... ;) Thanks for having time. Mike At 11:51 24.05.02, you wrote: >Can I assume that Eudora /does/ show inline images given a 'cor

RE: [PHP] creating Image to display without saving it.

2002-05-24 Thread Leotta, Natalie (NCI/IMS)
I use the header when the Image is the only thing in the file. To use it in a file with other stuff do I just put it before the ImageCreate? I'll have to try the galleryimg tag. Thanks!!! -Natalie -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23,

Re: [PHP] passing arrays

2002-05-24 Thread Michael Virnstein
$myarray = unserialize(urldecode($_GET['myarray'])); or am i wrong? Regards Michael "Miguel Cruz" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thu, 23 May 2002, wm wrote: > > is there a way to pass arrays in forms or in the url? > > > > if i have $

[PHP] Program execution stops at exec()

2002-05-24 Thread Tom Mikulecky
Hello In one script I use exec() to execute a shell script which takes 2-3 hours to run. I disabled user abort and set time limit to more than one day. The shell script finishes well but no instruction after exec() is run. The script finishes with no error nor warnings. Some of you know hwat happ

[PHP] Opening large text files on Windows

2002-05-24 Thread Meredith-Wilks, Richard
Good afternoon all. I have a problem with opening a text file in PHP. The file is test.txt a comma separated file with 62,000 lines (4Mb) of data. I have extended the execution time to 200 seconds to allow time to read the file. The code I am using is below. set_time_limit(200); $datafi

[PHP] FFlush

2002-05-24 Thread DrouetL
Hi, I was wondering if anyone has already used this function (FFlush). If yes, do you have some example to show to me ? Regards Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Fast CGI ok with mod_php

2002-05-24 Thread Geoff Caplan
Hi folks I am thinking of doing some work with a platform that requires Fast CGI. Does anyone know if I can run Fast CGI safely alongside mod_php? The reason I ask is that a Rackspace support guy told me there are problems running Fast CGI and mod_perl on the same server. (I would appreciate

[PHP] PATH_INFO in CGI Mode

2002-05-24 Thread Mauricio Cuenca
Hello, I'm trying to work with the environment variable $PATH_INFO in a website that has PHP as CGI, not as an Apache module. The differences are these: 1. As an Apache module when I get into this URL: http://foo/script.php/path/info everything works fine and $PATH_INFO equals to "/path/info" 2

Re: [PHP] Opening large text files on Windows

2002-05-24 Thread Analysis & Solutions
Hi Richard: On Fri, May 24, 2002 at 02:42:59PM +0100, Meredith-Wilks, Richard wrote: [NOTE: Read throuhg the whole thing before commenting... --Dan] > set_time_limit(200); > $datafile = fopen ("text.txt", "r"); > while (!feof ($datafile)) { > $array = fgets($datafile, 10

[PHP] sorting array in predefined order - uksort

2002-05-24 Thread olinux
I am trying to sort array by key to a defined order - I thought uksort would be best option. Here's what i have come up with from the manual example - however it doesn't work at all. I want to sort this array by $region Array looks like this: $articles[$region][$article_id][$column_name] // END

[PHP] Multiple LEFT JOIN SQL syntax in msaccess

2002-05-24 Thread Emile Bosch
Yes, i know i am offtopic but i just don't want to that scary M$newsgroups so can please tell me how i can have 2 left joins in a queryresult? this doesn;t work in msaccess $q="SELECT * FROM salad a LEFT JOIN salam g ON (a.adgrpnum = g.amgrpnum), LEFT JOIN salmk m ON (a.admrknum = m.mkmrknum

[PHP] Re: Multiple LEFT JOIN SQL syntax in msaccess

2002-05-24 Thread Emile Bosch
OMG i solved it already! $q="SELECT * FROM ((salad a LEFT JOIN salam g ON a.adgrpnum = g.amgrpnum) LEFT JOIN salmk m ON a.admrknum = m.mkmrknum) WHERE a.adartnum=$adartnum" Tadaaa! Thx pong for giving me the tip about the ( 's !! "Emile Bosch" <[EMAIL PROTECTED]> wrote in message [EMAIL

[PHP] Client user info

2002-05-24 Thread Gary
Is there a way to get the user information? I know there must be a constant variable, but I can't seem to find it. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail Headers problem.......

2002-05-24 Thread CDitty
Per your request.. Chris // To email address if(substr($lines[$i], 0, 2) == "To"){ $To = substr($lines[$i], 4, strlen($lines[$i])); eregi("([A-Z0-9\.\-]+@[A-Z0-9\.\-]+\.[A-Z\.]+)", $To, $To); }elseif(substr($lines[$i], 0, 4) == "From"){// From email address $From =

Re: [PHP] Client user info

2002-05-24 Thread Tyler Longren
What kind of information? There's a whole bunch: Browser IP Referer Check phpinfo(); try print "$_SERVER[HTTP_USER_AGENT]"; to get the users browser print "$_SERVER[REMOTE_ADDR]"; to get the users IP print "$_SERVER[HTTP_REFERER]"; to get the users referer. Tyler Longren Captain Jack Communica

[PHP] 405 Method not Allowed

2002-05-24 Thread Kevin Van Der Hart
I am running Apache 1.3.23, with mod_ssl 2.8.7, and PHP 4.2.1 on Solaris 8. When I try to post to a PHP form that is in my htdocs folder, I get the 405 Method not Allowed message for method POST. I have no directives in my httpd.conf, and I have the 2 AddType application/x-httpd-php lines uncomme

[PHP] Update SQL

2002-05-24 Thread Richard Baskett
I have a page that when someone searches for information.. Every hit that shows up on that page has an SQL update that increases a counter for that particular "record". Now when we have hundreds/thousands of users using the site.. Will this cause some serious problems since most of the users will

[PHP] Re: Program execution stops at exec()

2002-05-24 Thread Michael Virnstein
check your max_execution_time settings in php.ini Michael "Tom Mikulecky" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello > > In one script I use exec() to execute a shell script which takes 2-3 > hours to run. I disabled user abort and set time li

[PHP] Re: Program execution stops at exec()

2002-05-24 Thread Michael Virnstein
note: i think the exec in your php waits for the shell to return, but before the shell can answer, php terminates the script, because of the max_exection. Michael "Michael Virnstein" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > check your max_executio

RE: [PHP] passing arrays

2002-05-24 Thread John Holmes
Urldecode is automatic when you pass something through the URL. You can call urldecode, but it doesn't do anything... ---John Holmes... > -Original Message- > From: Michael Virnstein [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 24, 2002 9:33 AM > To: [EMAIL PROTECTED] > Subject: Re: [P

Re: [PHP] Client user info

2002-05-24 Thread Miguel Cruz
On Fri, 24 May 2002, Gary wrote: > Is there a way to get the user information? I know there must be a constant > variable, but I can't seem to find it. What kind of information? Age? Favorite fish? You can get the information that their browser sends in the request header (browser version, plat

Re: [PHP] Update SQL

2002-05-24 Thread Miguel Cruz
On Fri, 24 May 2002, Richard Baskett wrote: > I have a page that when someone searches for information.. Every hit > that shows up on that page has an SQL update that increases a counter > for that particular "record". Now when we have hundreds/thousands of > users using the site.. Will this caus

[PHP] Defining Variables to use with a Function

2002-05-24 Thread chris reeper
Hi how can i set a variable defining an email address in this function ? Function SetTo($to) { if (strlen($to)<=0) return $this->Error(1, '"to" too short'); if (strlen($to)>=129) return $this->Error(1, '"to" too long'); $this-

[PHP] Re: Client user info

2002-05-24 Thread Gary
Thanks everyone! "Gary" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a way to get the user information? I know there must be a constant > variable, but I can't seem to find it. > > Thanks > > -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: Upload wont work

2002-05-24 Thread Ragnar
lol... the problem was in this line: move_uploaded_file($_FILES['userfile']['tmp_name'],"c:\\inetpub\\wwwroot\\up load\\".$_FILES['userfile']['name']); I used single backslash.. and thats no good i think ;) "Ragnar" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]

Re: [PHP] sorting array in predefined order - uksort

2002-05-24 Thread Miguel Cruz
Your comparison function doesn't compare anything. You should look at $a and $b and return an answer indicating which one comes first. If you want $a to come before $b, return -1. If they're the same, return 0. If you want $a to come after $b in the sorted list, return 1. miguel On Fri, 24 M

Re: [PHP] Confusion with UNIX date/time

2002-05-24 Thread Miguel Cruz
On Fri, 24 May 2002 [EMAIL PROTECTED] wrote: > What php functions should I use to convert a UNIX timestamp to a human - > legible format and back again? Human -> Unix: strtotime() Unix -> Human: date() miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Mail Headers problem.......

2002-05-24 Thread Analysis & Solutions
Hi: > Per your request.. [... code snipped ...] My request was really for you to examine your code, not to send the code to me: > >... I'm guessing the $Mime_Version is only > >getting "Status:\n" stuck into it. Then, your $headers string adds the > >extra "\n" which results in the follow

[PHP] type="file"

2002-05-24 Thread Anil Garg
Hi, I am using php In a html form m using: When i submit the form and try to retrieve the path written in the text box by using 'printf("%s",$file)' it returns a path "/var/tmp/trash" ... How can i print the path selected by browse button. Any ideas are appreciated. Thanx anil -- PHP Genera

Re: [PHP] type="file"

2002-05-24 Thread Miguel Cruz
On Fri, 24 May 2002, Anil Garg wrote: > In a html form m using: > When i submit the form and try to retrieve the path written in the text box > by using 'printf("%s",$file)' it returns a path "/var/tmp/trash" ... > How can i print the path selected by browse button. By developing a browser that

[PHP] Problem with if statement and while loops

2002-05-24 Thread Steve Buehler
I am having trouble with the following function. What it should do is to check one table for team_id's. Than it goes to another table and gets all rows with that team_id. If the team_id is in the new table, it should do one thing, else it should do something else. Can somebody look at this

Re: [PHP] Mail Headers problem.......

2002-05-24 Thread CDitty
I have looked at it and from what I understand, it should be working but it's not. At 12:18 PM 5/24/2002, you wrote: >Hi: > > > Per your request.. > >[... code snipped ...] >My request was really for you to examine your code, not to send the code >to me: > > > > >... I'm guessing the $Mime_V

Re: [PHP] Problem with if statement and while loops

2002-05-24 Thread Jason Wong
On Saturday 25 May 2002 01:29, Steve Buehler wrote: > I am having trouble with the following function. What it should do is to > check one table for team_id's. Than it goes to another table and gets all > rows with that team_id. If the team_id is in the new table, it should do > one thing, else

Re: [PHP] type="file"

2002-05-24 Thread Jason Wong
On Saturday 25 May 2002 01:15, Anil Garg wrote: > Hi, > > I am using php > > In a html form m using: > When i submit the form and try to retrieve the path written in the text box > by using 'printf("%s",$file)' it returns a path "/var/tmp/trash" ... > How can i print the path selected by browse b

[PHP] Using php to parse mail

2002-05-24 Thread Cedric Fontaine
Hello ! Since some months, I created a bot to parse a special email address. It means that my MTA Qmail sends the mail to a php script and this scripts make some works on it. It works great for months with php 4.0.6. Sunday, I installed php 4.2.1 mod for Apache and also on shell. And since this

[PHP] listing the files in the directory

2002-05-24 Thread _michael
hi, i'm pretty new to php - i am trying to list/print a list of files and folders that are on my server: from my little knowledge i have got: http://mysite.com/";; $handle = opendir($dir); while (($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "- " . $file . "

RE: [PHP] Defining Variables to use with a Function

2002-05-24 Thread Patrick Lynch
You can set a variable in a configuration file containing the email address as normal $to = "[EMAIL PROTECTED]"; In the function, use the global statement to bring the variable into the function's scope. Function SetTo($to) { global $to; if (strlen($to)<=0)

Re: [PHP] Mail Headers problem.......

2002-05-24 Thread Jason Wong
On Saturday 25 May 2002 01:29, CDitty wrote: > I have looked at it and from what I understand, it should be working but > it's not. Try plugging in fixed strings for your headers and see what results. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integ

Re: [PHP] listing the files in the directory

2002-05-24 Thread Jason Wong
On Saturday 25 May 2002 02:01, _michael wrote: > hi, i'm pretty new to php - i am trying to list/print a list of files and > folders that are on my server: > > from my little knowledge i have got: > > $dir = "http://mysite.com/";; > $handle = opendir($dir); > while (($file = readdir($handle))) {

RE: [PHP] listing the files in the directory

2002-05-24 Thread _michael
well do you think you can point me in the right direction to listing the files on my site? - is it possible (as i said i am very new to this) thanks -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 19:09 To: [EMAIL PROTECTED] Subject: Re: [PHP] listing the

Re: [PHP] Mail Headers problem.......

2002-05-24 Thread Analysis & Solutions
On Fri, May 24, 2002 at 10:58:08AM -0500, CDitty wrote: > if(IsSet($Mime_Version)){ > $Mime_Version = "MIME-Version: $Mime_Version\r\n"; > } Man, THINK! Did you set $Mime_Version anywhere in your code before this point? What happens here if $Mime_Version isn't set already? Then, remem

Re: [PHP] Problem with if statement and while loops

2002-05-24 Thread Steve Buehler
At 01:54 AM 5/25/2002 +0800, Jason Wong wrote: >Your biggest problem is that you're trying to nest mysql_query() but you're >only using 1 link identifier. You need to establish another connection using >another mysql_connect(). Why? I can nest 1000's of these as long as I don't use $result= for

[PHP] IMPORTANT, wanna know about MY PROJECT SALE !!!

2002-05-24 Thread Kamran Shakil
HI ALL . I personally have got 10 big and small demanding , complete solution websites, in php , made with access database with odbc connection string..wanna sell them for adequate and handsome price ? wanna know sites regarding sales and exchange of projects DO REPLY IF ANY .. ---

Re: Re: [PHP] Full-Duplex communication

2002-05-24 Thread Miguel Cruz
So still there is nothing in your requirements that doesn't suggest you'll do fine with a PHP-based listener. Of course you have the memory overhead of the PHP interpreter's RAM infrastructure multiplied by the number of simultaneous connections, but that would be the same with Apache (at leas

[PHP] image_create(), header.....

2002-05-24 Thread Gerard Samuel
Im trying to use dynamic buttons, and Im trying to figure out how to get around the header call. I figure use output buffering, but so far Ive only come up with errors. Anyone see a better way or any errors in my code. Thanks nb: Uncomment the echo() statement to get the error.

RE: [PHP] listing the files in the directory

2002-05-24 Thread Philip Olson
make $dir a local directory, try for example: $dir = '.'; regards, Philip Olson On Fri, 24 May 2002, _michael wrote: > well do you think you can point me in the right direction to listing the > files on my site? - is it possible (as i said i am very new to this) > > thanks > > -Origi

RE: [PHP] image_create(), header.....

2002-05-24 Thread Leotta, Natalie (NCI/IMS)
You can save them and then call them up, but then you have to use a cron or something to empty out the folder. Here's how I save it: //Image created and everything up here, this is the very end of it $myTime = time(); ImagePNG($im, "../spool/jp$myTime.png"); //this creates a unique name chmod(".

[PHP] gmtime?

2002-05-24 Thread Jens Lehmann
Any reasons why there's no gmtime()-function in PHP? I'd like to hear your thoughts. Jens Lehmann -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] gmtime?

2002-05-24 Thread SP
Did you see gmdate()? http://www.php.net/manual/en/function.gmdate.php -Original Message- From: Jens Lehmann [mailto:[EMAIL PROTECTED]] Sent: May 24, 2002 2:52 PM To: [EMAIL PROTECTED] Subject: [PHP] gmtime? Any reasons why there's no gmtime()-function in PHP? I'd like to hear your thou

Re: [PHP] listing the files in the directory

2002-05-24 Thread Kevin Stone
Michael, I wrote this function for a project that I'm working on. It returns an indexed array of local links found on a given page. It returns false if the url is not a valid file. If you want it to return all links regardless of prefix or file extension then just return $arrayoflinks[1] instea

[PHP] adjusting time() to correct for time zones

2002-05-24 Thread John Hughes
My server is located on the East Coast, but all of the users of my site live on the West Coast. I have an application that makes several calls to time() and as a result all of the times displayed are East Coast. Rather than changing every time() to time()-10800, I was wondering if there is a way

Fw: [PHP] gmtime?

2002-05-24 Thread Kevin Stone
I don't know what gmtime() is supposed to do. But is gmmktime() similar? http://www.php.net/manual/en/function.gmmktime.php -Kevin - Original Message - From: "Jens Lehmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 24, 2002 12:51 PM Subject: [PHP] gmtime? > Any reas

[PHP] File typing

2002-05-24 Thread Derek Piper
Hi, Does anyone know if there are functions in PHP or an extension for getting the mime type (and possibly a description) of ANY kind of file? I know that the array that the getimagesize() function returns has an image type field, but I'd like to be able to determine the appropri

Re: [PHP] gmtime?

2002-05-24 Thread Jens Lehmann
> Did you see gmdate()? > http://www.php.net/manual/en/function.gmdate.php Yes, of course. I can do time()-date("Z") to have gmtime (or maybe) something better, but wouldn't it be better to have gmtime() implemented anyways? Please tell me if I missed something. Thank you. Jens Lehmann PS: dat

Re: [PHP] Re: Program execution stops at exec()

2002-05-24 Thread Analysis & Solutions
On Fri, May 24, 2002 at 06:30:50PM +0200, Michael Virnstein wrote: > i think the exec in your php waits for the shell to return, but before the > shell can answer, php terminates the script, because of the max_exection. http://www.php.net/manual/en/function.set-time-limit.php "... Any time spen

RE: [PHP] image_create(), header.....

2002-05-24 Thread Leotta, Natalie (NCI/IMS)
Thanks! I didn't know it was that helpful :-) It's in there now. -Natalie -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 3:58 PM To: Leotta, Natalie (NCI/IMS) Subject: RE: [PHP] image_create(), header. This looks like a great example to

Re: [PHP] Problem with if statement and while loops

2002-05-24 Thread Steve Buehler
At 12:29 PM 5/24/2002 -0500, Steve Buehler wrote: >I am having trouble with the following function. What it should do is to >check one table for team_id's. Than it goes to another table and gets all >rows with that team_id. If the team_id is in the new table, it should do >one thing, else it

Re: [PHP] gmtime?

2002-05-24 Thread Jens Lehmann
> I don't know what gmtime() is supposed to do. But is gmmktime() similar? time() returns the number of seconds since the Unix Epoch to the current local time gmtime() should return the number of seconds since the Unix Epoch to the current GM-time Do you understand now? gmmktime() does exact

Re: [PHP] PATH_INFO in CGI Mode

2002-05-24 Thread Analysis & Solutions
Mauricio: On Fri, May 24, 2002 at 09:25:33AM -0500, Mauricio Cuenca wrote: > > I'm trying to work with the environment variable $PATH_INFO in a website > that has PHP as CGI, not as an Apache module. I find the following to provide consistent information between CGI and Module modes: *['PH

Re: [PHP] Defining Variables to use with a Function

2002-05-24 Thread chris reeper
Ok that works.. but I dont declare the variable and have it read it from a form but.. It can only execpt one email address at a time.. How can i take email address from each line in the form and use that.. I have been trying to adapt this to do it.. but it isnt working for me ? $lines = split("\n

Re: [PHP] Using php to parse mail

2002-05-24 Thread Analysis & Solutions
On Fri, May 24, 2002 at 01:57:31PM -0400, Cedric Fontaine wrote: > > Any clue ? What the differences between 4.0.6 and 4.2.1 makes this > happens ? Are you calling environment or server variables directly? For _example_ $PATH. If so, call them using the superglobal $_SERVER['PATH']. Or perh

Re: [PHP] Using php to parse mail

2002-05-24 Thread Miguel Cruz
On Fri, 24 May 2002, Cedric Fontaine wrote: > In fact, the script does work and does its jobs... But when Qmail > delivers the mail to my script, it assumes that the mail is not > successfully delivered and puts the mail in queue. But the mail is > fully delivered... > > That means that my script

Re: [PHP] image_create(), header.....

2002-05-24 Thread Miguel Cruz
You need to put the ob_start() call at the very beginning of your script, not inside that function. You have to turn output buffering on before ANY output is generated, if you want to be able to send headers later on. miguel On Fri, 24 May 2002, Gerard Samuel wrote: > Im trying to use dynamic

Re: [PHP] Problem with if statement and while loops

2002-05-24 Thread Miguel Cruz
On Sat, 25 May 2002, Jason Wong wrote: > Your biggest problem is that you're trying to nest mysql_query() but you're > only using 1 link identifier. You need to establish another connection using > another mysql_connect(). The same link identifier can be used simultaneously for any number of q

Re: [PHP] IMPORTANT, wanna know about MY PROJECT SALE !!!

2002-05-24 Thread Miguel Cruz
On Fri, 24 May 2002, Kamran Shakil wrote: > I personally have got 10 big and small demanding , complete solution > websites, in php , made with access database with odbc connection > string..wanna sell them for adequate and handsome price ? wanna know > sites regarding sales and exchange of pr

Re: [PHP] adjusting time() to correct for time zones

2002-05-24 Thread Miguel Cruz
On Fri, 24 May 2002, John Hughes wrote: > My server is located on the East Coast, but all of the users of my > site live on the West Coast. I have an application that makes several > calls to time() and as a result all of the times displayed are East > Coast. > > Rather than changing every time()

[PHP] HTML and Text emails

2002-05-24 Thread Fearless Froggie
Howdy, I've noticed that a number of online marketing companies now advertise the ability to send a combined HTML and Text email. The text email readers then apparently display these as text, and html email readers display these as html. I know how to send an html email, and a text email. But I

Re: [PHP] HTML and Text emails

2002-05-24 Thread Miguel Cruz
On Fri, 24 May 2002, Fearless Froggie wrote: > I've noticed that a number of online marketing companies now advertise > the ability to send a combined HTML and Text email. The text email > readers then apparently display these as text, and html email readers > display these as html. > > I know ho

[PHP] multipart/form-data parsing problems

2002-05-24 Thread PHP at open channel
Hello, I have a form with a file upload field (named 'file1') and a number of other data fields for submission. I am attempting to use curl to take the user submitted data, add some additional data, submit it to another location, retrieve the response and send that response back to the user t

Re: [PHP] adjusting time() to correct for time zones

2002-05-24 Thread John Hughes
--- Miguel Cruz <[EMAIL PROTECTED]> wrote: > On Fri, 24 May 2002, John Hughes wrote: > > My server is located on the East Coast, but all of the users of > my > > site live on the West Coast. I have an application that makes > several > > calls to time() and as a result all of the times displayed

RE: [PHP] image_create(), header.....

2002-05-24 Thread Jerome Houston
While Natalie's solution is a valid one, i have another first - the error you're getting is because the headers are sent AS SOON as you echo, print or output html outside of your tags. you're echoing something before you call ob_start(); second- the reason this doesn't work, is because yo

[PHP] Security problem, need help

2002-05-24 Thread Hawk
I was checking around on a page I made, and I just noticed the lack of security, it is rather easy to gain admin status if you enter the right ?blabal=blablabla after the url, I need some help to make this secure, I tried with adding a name check to, but that didnt work since the ?user=blabla can

Re: [PHP] adjusting time() to correct for time zones

2002-05-24 Thread Chris Boget
> If there is no other choice, there is no other choice. But in a > perfect world, there would be a way to locally correct the server > time on a global basis and thus correct ALL applications -- present > and future -- that need to know the "local" time. Is there a way to back track an IP addres

Re: [PHP] Security problem, need help

2002-05-24 Thread Thalis A. Kalfigopoulos
Read 'Secure Programming in PHP': http://www.zend.com/zend/art/art-oertli.php cheers, thalis On Fri, 24 May 2002, Hawk wrote: > I was checking around on a page I made, and I just noticed the lack of > security, it is rather easy to gain admin status if you enter the right > ?blabal=blablabla a

[PHP] Re: File lock - warning ?

2002-05-24 Thread Peter
I'm not familiar with PHP 3 stuff but try echo "start"; $fpLog = fopen ("/usr/home/aurica/aurica.com/cannesEmail/emailblastSendLog.txt","a"); if (!$fpLOG) { die ("Could not open file"); } if (flock ($fpLog, 2) ) { $strFileLog = "Manisha Test"; fwrite($fpLog,$strFileLog); } flo

[PHP] Time/date function MYSQL->UNIX

2002-05-24 Thread Peter
Is there a built in PHP function which will convert a MySQL type date (DDMM or whatever) into a unix timestamp so it can be used with the other PHP time and date functions? I'm currently using substr() to extract bits of the date so it displays as DD / MM / but it's annoying! -- PHP

RE: [PHP] adjusting time() to correct for time zones

2002-05-24 Thread SP
Baba told me about his time zone class in pear just recently. http://pear.php.net/package-info.php?pacid=57 -Original Message- From: John Hughes [mailto:[EMAIL PROTECTED]] Sent: May 24, 2002 4:45 PM To: Miguel Cruz; [EMAIL PROTECTED] Subject: Re: [PHP] adjusting time() to correct for

RE: [PHP] Time/date function MYSQL->UNIX

2002-05-24 Thread John Holmes
Use DATE_FORMAT() in your query to format the MySQL date to whatever format you want. You can also use UNIX_TIMESTAMP() in your query to return a Unix timestamp instead of the MySQL format. But if that's all you want to do is format it a certain way, do it in your query. Check Chapter 6 of the My

  1   2   >