[PHP] Re: where is my uploaded file ?

2004-02-23 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > bool move_uploaded_file ( string filename, string destination) > > If filename is not a valid upload file, then no action will occur, and > move_uploaded_file() will return FALSE. > > If filename is a valid upload file, but cannot be moved for some

Re: [PHP] Send mail with attached

2004-02-23 Thread francesco
Thank you Karl for answer. Frank [EMAIL PROTECTED] www.automationsoft.biz - Original Message - From: "Karl Timmermann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 23, 2004 8:30 PM Subject: Re: [PHP] Send mail with attached > Check out phpmailer at http://phpmailer

[PHP] Re: XSLT in php v5 beta 4

2004-02-23 Thread Lucian Cozma
Try: http://slides.bitflux.ch/ http://slides.bitflux.ch/phpug2004_1/ You could also get the CVS version and check out the source code. It was the best way for me to find undocumented features. There are also samples and articles, but unfortunately you have to "dig" for them all over the net (goog

Re: [PHP] where is my uploaded file ?

2004-02-23 Thread Jason Wong
On Tuesday 24 February 2004 14:58, adwinwijaya wrote: [snip] > and when I look up at C:/Program Files/Apache > Group/Apache2/htdocs/test/ (the target directory) .. I never found > the file that I uploaded ... > > can someone tell me y this happen ? Maybe. But you can find out for yourself -- tu

[PHP] where is my uploaded file ?

2004-02-23 Thread adwinwijaya
Hello php-general, Right now I am trying to create a form that upload the file. The form it self: and the upload.php itself contain the code that I took from chapter 18 of php manual: "; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $

[PHP] Re: Please dont request for receipts

2004-02-23 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Agreed hehe I would also like to ask why are there so many threads starting with "Re:" Is that a bug on this newsgroup or people dont care about posting inside the thread they replying to? Nitin Mehta wrote: Dear All, I hereby request you all; pleas

Re: [PHP] Cannot send mail after upgrading to OS X v10.3

2004-02-23 Thread David Bourne
From gohaku I stand corrected. Now I don't remember what I did to fix this. I waited 5 minutes between sending test emails to myself. Starting postfix with postfix enabler seemed to start sendmail as well. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] session timeout?

2004-02-23 Thread Jake McHenry
How can I make my site auto log out a user like I've seen on many sites? Right now, the users session never expires unless manually logging out or the browser is closed. Also, should I change anything to cover any security issues? I havn't changed much from the default, only enough to get it run

[PHP] Re: Scroll en barra de mensajes del explorer

2004-02-23 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 php is server side scroll bar on explorer message bar (what is that?) is client side conclusion: no, you can not use php for that i think ppl would prefer if you posted in english php es el lado del servidor barra de mensajes del explorer (cuál es ése?

[PHP] Please dont request for receipts

2004-02-23 Thread Nitin Mehta
Dear All, I hereby request you all; please dont attach the request for receipts when submitting any queries or solutions to the list. It's hell of a task, to send or deny these requests, for someone like me, who's subscribed to a number of lists like this one and many others. Regards Nitin

Re: [PHP] enum('part1','...')

2004-02-23 Thread John Taylor-Johnston
Hmm. http://marc.theaimsgroup.com/?l=php-general&m=106933918806372&w=2 > -Original Message- > From: Alan Lord [mailto:[EMAIL PROTECTED] Lord?! Wasn't one of those perl dark lords was it? :) I'll try the code. Jason Wong wrote: > On Tuesday 24 February 2004 13:45, John Taylor-Johnston wr

RE: [PHP] enum('part1','...')

2004-02-23 Thread Cody Phanekham
>-Original Message- >From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] >Jason, >Sigh ... What would I look for in the archives Jason? > >Don't see anything here that would give me a hint where to start Jason: > >http://www.php.net/manual-lookup.php?pattern=enum umm that would be the onl

Re: [PHP] beginners question

2004-02-23 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 to avoid other issues followed by other threads about the same stuff of every 2 weeks: echo 'Click to add' John Nichel wrote: Steve wrote: I have this code $var=$_POST['Stock']; in one page further down in the code, if certain conditions are me

Re: [PHP] enum('part1','...')

2004-02-23 Thread Jason Wong
On Tuesday 24 February 2004 13:45, John Taylor-Johnston wrote: > Sigh ... What would I look for in the archives Jason? I had assumed you meant MySQL's enum field type which your other post confirms. How about the obvious "mysql enum" ? > Don't see anything here that would give me a hint where t

Re: [PHP] Send mail with attached

2004-02-23 Thread John Taylor-Johnston
I know I have something in here that did it. [Shake, shake, rattle, bump] This is how I send an image in a postcard maker I fashioned once: http://www.CollegeSherbrooke.qc.ca/languesmodernes/jtjohnston/0postcard0/send_mail.phps http://www.CollegeSherbrooke.qc.ca/languesmodernes/jtjohnston/0postca

Re: [PHP] enum('part1','...')

2004-02-23 Thread John Taylor-Johnston
Jason, Sigh ... What would I look for in the archives Jason? Don't see anything here that would give me a hint where to start Jason: http://www.php.net/manual-lookup.php?pattern=enum I know you want to be helpful, and not send me back to the Dark Lords of Perl. > On Tuesday 24 February 2004 11:

[PHP] Re: Php and GpG

2004-02-23 Thread Manuel Lemos
Hello, On 02/23/2004 10:35 AM, Paul Marinas wrote: Those anyone know hoh to use php with gpg. I've tryed gpgext, but doesn't seems to work maybe my php is not compiled with some kind of support. Not exactly with GPG, but here you can find a solution with PGP: http://www.phpclasses.org/browse/pack

Re: [PHP] enum('part1','...')

2004-02-23 Thread John Taylor-Johnston
Chris, >It's not obvious what language You mean, Sorry. Let me explain. It's a MySQL field. I want to use PHP to read the parts of the array of the MySQL field district: district enum('part1','part2','part3','part4') How do I get the array from my $table? John wrote: > It's not obvious wha

Re: [PHP] Send mail with attached

2004-02-23 Thread Manuel Lemos
Hello, On 02/23/2004 04:15 PM, [EMAIL PROTECTED] wrote: Hi all, is possible to send an email, with mail() function, with an attached? I see on www.php.net but there isn't nothing about this. If someone have the solution please send the solution. You may want to try this class that provides a ready

[PHP] Scroll en barra de mensajes del explorer

2004-02-23 Thread William Morales (INCOS)
Saludos Se podrá con PHP poner un scroll en la barra de mensajes del explorer, alguien lo ha hecho? Lo he checado con JavaScrip, pero PHP lo hace? Espero alguien me ayude. William Morales Tabasco, México

Re: [PHP] beginners question

2004-02-23 Thread John Nichel
Steve wrote: I have this code $var=$_POST['Stock']; in one page further down in the code, if certain conditions are met, I want the user to click on a link that will take them to a form to fill in some info. I need to have the data that is in $var passed along to that new url. So I have $var

[PHP] beginners question

2004-02-23 Thread Steve
I have this code $var=$_POST['Stock']; in one page further down in the code, if certain conditions are met, I want the user to click on a link that will take them to a form to fill in some info. I need to have the data that is in $var passed along to that new url. So I have $var=$_POST['Stock

[PHP] GZIP Question

2004-02-23 Thread Karl Timmermann
Hi, I am using fsockopen with fputs to send some headers to a HTTP server, and I say I accept gzip encoding. The data gets returned and I put it in a variable. However, whichever gzip command I try using in PHP to decompress it (or is it deflate, or both?) returns an error. Is it because the s

RE: [PHP] enum('part1','...')

2004-02-23 Thread Chris
It's not obvious what language You mean, but I think this will work for you: $aDistrict = array('part1','part2','part3','part4'); foreach($aDistrict as $sDistrict) { echo '',$sDistrict,"\n"; } Note: I'm using single quotes for some of the string chunks to eliminate the multiple backslashes for t

Re: [PHP] enum('part1','...')

2004-02-23 Thread Jason Wong
On Tuesday 24 February 2004 11:57, John Taylor-Johnston wrote: > Basically I have an enum field. I would like to extract the parts of the > field to create some html. [snip] > Can I even do this? yes > How? archives -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Softwar

Re: [PHP] enum('part1','...')

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 22:57, John Taylor-Johnston wrote: > district enum('part1','part2','part3','part4') > > while (district??) > { > echo "".district[0]." > } Are you doing this in PHP? I do not think you can even create enums in PHP. -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer

Re: [PHP] Re: [PHP-DB] Embedded MySQL server (libmysqld)?

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 23:02, [EMAIL PROTECTED] wrote: > Adam, > Thanks for your repsone(s) now back the root of the problem. > As stated above I need to be able to run the database from with the home > direcory/document root? I hesitate to answer this so as to not create a naming confusion but I

[PHP] Re: confirm subscribe to php-general@lists.php.net

2004-02-23 Thread php
> Hi! This is the ezmlm program. I'm managing the > [EMAIL PROTECTED] mailing list. > > I'm working for my owner, who can be reached > at [EMAIL PROTECTED] > > To confirm that you would like > >[EMAIL PROTECTED] > > added to the php-general mailing list, please send > an empty reply to this add

Re: [PHP] Re: [PHP-DB] Embedded MySQL server (libmysqld)?

2004-02-23 Thread user
Adam Voigt wrote: Alright, well with any txt based system, your probably going to run into problems with multi-users (multiple browsers) updating the DB. Reguardless, if you must use txtbased, I recommend SQL-Lite, it supports SQL statements, and is very small and very fast. http://www.sqlite.com Q

[PHP] enum('part1','...')

2004-02-23 Thread John Taylor-Johnston
Basically I have an enum field. I would like to extract the parts of the field to create some html. district enum('part1','part2','part3','part4') while (district??) { echo "".district[0]." } part1 part2 part3 part4 Can I even do this? How? J -- PHP General Mailing List (http://www.php.net/

[PHP] RE: Record Counts

2004-02-23 Thread Mark Roberts
I did RTFM...I always RTFM first. That was the example in the F Book!. Mark Roberts, Roberts Computing Systems Webmaster Services $29.50/mo mailto:[EMAIL PROTECTED]

Re: [PHP] Getting Record Counts

2004-02-23 Thread Jason Wong
On Tuesday 24 February 2004 10:48, Mark Roberts wrote: > I am trying to get a record count from a MySql database using the > following: > > $reccount = @mysql_query("select count(*) from mytable where user = > 'testuser'); > > I try this from mysql and get the correct response ( 1 ). > > However, w

[PHP] Getting Record Counts

2004-02-23 Thread Mark Roberts
I am trying to get a record count from a MySql database using the following: $reccount = @mysql_query("select count(*) from mytable where user = 'testuser'); I try this from mysql and get the correct response ( 1 ). However, when I put this in an php script, $reccount returns a value of 'Resourc

Re: [PHP] Constants in class definitions

2004-02-23 Thread Adam Bregenzer
On Tue, 2004-02-24 at 09:26, Toro Hill wrote: > Here's the situation: > PHP 4.3.4 > Apache 1.3.29 > MMCache 2.4.6 > > I'm ending up with some garbage in certain class variables. > The code runs fine without MMCache disabled. > There seems to be a very specific circumstances under which the error

Re: [PHP] Constants in class definitions

2004-02-23 Thread Toro Hill
Hi Adam. I was wondering if using defined constants in class definitions is completely legal (or even good practice) in PHP. I've looked throught the PHP documentation and from what I can tell it is legal. However, I've had some problems with Turck MMCache and class definitions that are similar to

Re: [PHP] saving form data

2004-02-23 Thread Charlie Fiskeaux II
Richard Davey wrote: CFI> It's just a matter of development time; if there's a way to CFI> use the Perl mail script with a PHP data saving script, it CFI> would save time. If I do have to rewrite the whole thing in CFI> PHP, how would I accept uploaded file attachments and attach CFI> them to

RE: [PHP] To Separate, or Not to Separate

2004-02-23 Thread Chris W. Parker
Monty on Monday, February 23, 2004 2:35 PM said: > I'm wondering if I will see any noticeable speed increase if I were > to split the 20+ fields that hold preferences (nearly all are > single-digit 1/0 fields) out from the other fields that hold general > member data

[PHP] To Separate, or Not to Separate

2004-02-23 Thread Monty
I have a member DB table that has about 50 fields in it for each record. It holds things like username, password, mailing address, and general site preferences. I'm wondering if I will see any noticeable speed increase if I were to split the 20+ fields that hold preferences (nearly all are single

Re: [PHP] Finding out the local path to a file.

2004-02-23 Thread Michal Migurski
>I'm wondering if there's a way for PHP fo know the local path of >REQUEST_URI. I've used a script to list directories, in order to replace >the looks of the traditional Indexes look (apache). By setting >DirectoryIndex to a fixed file (/list/lister.php) that file is now >executed whenever there's

Re: [PHP] Detecting Binaries

2004-02-23 Thread Shane Nelson
Richard Davey wrote: Hello Axel, Monday, February 23, 2004, 7:03:38 PM, you wrote: AIM> Guys, this isn't THAT stupid of a question is it? From my perspective, AIM> the way PHP seems to see it is that I should already know what kind of AIM> file I'm looking at. In most cases that's not an unrea

Re: [PHP] Constants in class definitions

2004-02-23 Thread Adam Bregenzer
On Tue, 2004-02-24 at 08:22, Toro Hill wrote: > I've looked throught the PHP documentation and from what I can > tell it is legal. I'm using PHP4.3.4, and haven't had any problems with > class definitions like this. I use constants in classes myself without problems. In PHP 5 you can actually d

Re[2]: [PHP] saving form data

2004-02-23 Thread Richard Davey
Hello Charlie, Monday, February 23, 2004, 10:15:17 PM, you wrote: CFI> It's just a matter of development time; if there's a way to CFI> use the Perl mail script with a PHP data saving script, it CFI> would save time. If I do have to rewrite the whole thing in CFI> PHP, how would I accept uploa

Re: [PHP] Constants in class definitions

2004-02-23 Thread Richard Davey
Hello Toro, Tuesday, February 24, 2004, 12:22:29 AM, you wrote: TH> Hi all. TH> I was wondering if using defined constants in class definitions TH> is completely legal (or even good practice) in PHP. I see absolutely no reason why not. Constants are just ways of defining non-changing variables,

Re: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Tom Rogers
Hi, Tuesday, February 24, 2004, 3:21:11 AM, you wrote: N> Is there a PHP alternative to an IFRAME? Here's what I mean. N> Is there a way to include a file in my php document that will be positioned N> where I want it, like an IFRAME? I want to have it aligned right with text N> wrapping around it

[PHP] Constants in class definitions

2004-02-23 Thread Toro Hill
Hi all. I was wondering if using defined constants in class definitions is completely legal (or even good practice) in PHP. For example, define( "CONSTANT", "hello" ); class Yep{ $var stuff = array( CONSTANT => 'two' ); } ?> I've looked throught the PHP documentation and from what I can tell i

Re: Re[4]: [PHP] Detecting Binaries

2004-02-23 Thread Lucas Gonze
Alternatively, count unigrams in the first 1000 characters and get the euclidean distance to a sample from e.g. an english text, a french text, a chinese text, etc. - Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] system / exec Question...

2004-02-23 Thread Evan Nemerson
On Monday 23 February 2004 03:48 pm, Gary Sanders wrote: > Hello... I'm using with PHP with Windows XP. I just set it up today and > terribly new to PHP (1st day). Anyway, I'm having a problem calling an > .exe file with system and exec. I can call lots of other programs, but not > this one. Ca

[PHP] Re: preg_guru

2004-02-23 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 delimiters? ex: preg_match("/(:[0-9]{16}:)/", $contents, $match); or something like that... http://br2.php.net/manual/en/function.preg-match.php http://br2.php.net/manual/en/ref.pcre.php welcome to php manual hehe btw, are you actually running those 3

Re: [PHP] Detecting Binaries

2004-02-23 Thread Evan Nemerson
On Monday 23 February 2004 03:02 pm, Axel IS Main wrote: > That's not bad, but I found a way to do it simply using chr() and > passing it a value. It turns out the if I go 0-31 Almost nothing will > get through. Even the simples html has something in there from that > list. However, by just looking

Re: [PHP] saving form data

2004-02-23 Thread Evan Nemerson
On Monday 23 February 2004 02:51 pm, Charlie Fiskeaux II wrote: > Richard Davey wrote: > > CFI> It's just a matter of development time; if there's a way to > > CFI> use the Perl mail script with a PHP data saving script, it > > CFI> would save time. If I do have to rewrite the whole thing in > > CF

RE: [PHP] Finding out the local path to a file.

2004-02-23 Thread Chris W. Parker
Evan Nemerson on Monday, February 23, 2004 4:33 PM said: > dirname($_SERVER['SCRIPT_FILENAME'])? __FILE__ will also do it. chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Finding out the local path to a file.

2004-02-23 Thread Evan Nemerson
On Monday 23 February 2004 04:31 pm, Simon Fredriksson wrote: > I'm wondering if there's a way for PHP fo know the local path of > REQUEST_URI. I've used a script to list directories, in order to replace > the looks of the traditional Indexes look (apache). By setting > DirectoryIndex to a fixed fi

[PHP] system / exec Question...

2004-02-23 Thread Gary Sanders
Title: Message Hello... I'm using with PHP with Windows XP.  I just set it up today and terribly new to PHP (1st day).  Anyway, I'm having a problem calling an .exe file with system and exec.  I can call lots of other programs, but not this one.  Can you tell me what's the best way to debug

RE: [PHP] saving form data

2004-02-23 Thread Gary Sanders
Charlie, Can you make the submit target be the PHP script and have the PHP script call the Perl script to send the email? Gary > -Original Message- > From: Charlie Fiskeaux II [mailto:[EMAIL PROTECTED] > Sent: Monday, February 23, 2004 2:15 PM > To: PHP General > Subject: Re: [PHP] savi

Re: [PHP] Detecting Binaries

2004-02-23 Thread Axel IS Main
That's not bad, but I found a way to do it simply using chr() and passing it a value. It turns out the if I go 0-31 Almost nothing will get through. Even the simples html has something in there from that list. However, by just looking between 14 and 26, one more than carriage return, and one le

[PHP] Re: Problem deleting a cookie...

2004-02-23 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Here's what I use to set the cookie. > $value=(time() + 9000) . ":$uid:$username:$gid:$fullname"; > SetCookie("Trackookie", $value, 0, "", "server.mssystems.com" ); > > Here's what I use to delete the cookie. > SetCookie("Trackookie", "", time()-3600,

[PHP] Finding out the local path to a file.

2004-02-23 Thread Simon Fredriksson
I'm wondering if there's a way for PHP fo know the local path of REQUEST_URI. I've used a script to list directories, in order to replace the looks of the traditional Indexes look (apache). By setting DirectoryIndex to a fixed file (/list/lister.php) that file is now executed whenever there's n

[PHP] Re: To Separate, or Not to Separate

2004-02-23 Thread André Cerqueira
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 i think if the most accessed fields are much smaller than the hole thing, you can consider splitting it whats the average size of your records? whats the size of the fields you access the most? (check your sql's for that one...) amount of records woul

Re: [PHP] Re: Problem deleting a cookie...

2004-02-23 Thread Dave O
Forgot to -cc the list. André Cerqueira wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Here's what I use to set the cookie. > $value=(time() + 9000) . ":$uid:$username:$gid:$fullname"; > SetCookie("Trackookie", $value, 0, "", "server.mssystems.com" ); > > Here's what I use to delete th

[PHP] Problem deleting a cookie...

2004-02-23 Thread Dave O
Hi all. I'm currently experiencing a problem deleting cookies on a test server. Before I go on, here's the server info: Server 1 -- Apache 1.3.29 PHP Version 4.3.4 Server 2 -- Apache 2.0.48 PHP Version 4.3.4 Previously running PHP 5.0.0.a4 I've got a technical support app runnin

Re: [PHP] saving form data

2004-02-23 Thread Charlie Fiskeaux II
Richard Davey wrote: You can't make one form submit to two different scripts sadly, but to be honest if you're going to write a PHP script to capture this information - why not make it do what the Perl formmail script does too? (i.e. send the email) and remove the Perl script from the equation? It

Re[4]: [PHP] Detecting Binaries

2004-02-23 Thread Richard Davey
Hello Evan, Monday, February 23, 2004, 8:57:43 PM, you wrote: >> It would be wise to check for characters from 0 to 31, if they appear >> then it's almost certainly (but not guaranteed) binary. EN> Assuming that's decimal, you're including 0x09 0x0a and 0x0d which are, EN> respectively, tab, lin

Re[2]: [PHP] saving form data

2004-02-23 Thread Richard Davey
Hello Charlie, Monday, February 23, 2004, 9:27:07 PM, you wrote: CFI> Thanks, but how do I get the info submitted to the PHP CFI> script to access the data in the first place? Since the CFI> target of the form is the Perl script, the submit button CFI> submits the form to the Perl script; can I

Re: [PHP] Re: hello

2004-02-23 Thread Nathan Torkington
On Feb 24, 2004, at 6:45 AM, BAO RuiXian wrote: Based on the style of message body (short and shout), and the subject line, and the zip attachment, I conclude it as a virus. It may or may not a virus in face, I immediately delete it anyway:) Yeah, that's a bloody virus on someone else's machine,

Re: [PHP] saving form data

2004-02-23 Thread Charlie Fiskeaux II
Sam Masiello wrote: If the PHP configuration doesn't have "register_globals" turned on in the php.ini file, you will be able to access the form variables via the _POST array like this: $_POST["my_form_var"] Of course, substitute my_form_var with the correct variable from the form that you are sub

Re: [PHP] Send mail with attached

2004-02-23 Thread janet
In a message dated 2/23/2004 11:41:00 AM Pacific Standard Time, [EMAIL PROTECTED] writes: >is possible to send an email, with mail() function, with an attached? >I see on www.php.net but there isn't nothing about this. >If someone have the solution please send the solution. >Thanks in advance. >Fr

[PHP] Re: XSLT in php v5 beta 4

2004-02-23 Thread Ryan C. Creasey
Steve Dieke wrote: | I am guesing that I have installed something incorrectly. I am trying to | use the function xslt_create(). I installed php v5 Beta 4 successfully. | but when I try to use the function xslt_create() I get the following | error: | | Fatal Error: Call to undefined function xsl

Re: Re[2]: [PHP] Detecting Binaries

2004-02-23 Thread Evan Nemerson
On Monday 23 February 2004 11:55 am, Richard Davey wrote: > Hello Axel, > > Monday, February 23, 2004, 7:38:25 PM, you wrote: > > AIM> Thanks, you just gave me the solution, I think. I don't have to strip > AIM> out every character above standard ascii, I just have to look for > them. AIM> If one i

Re: [PHP] Php and GpG

2004-02-23 Thread Evan Nemerson
On Monday 23 February 2004 10:49 am, Adam Bregenzer wrote: > On Mon, 2004-02-23 at 08:35, Paul Marinas wrote: > > Those anyone know hoh to use php with gpg. I've tryed gpgext, but doesn't > > seems to work maybe my php is not compiled with some kind of support. > > You will need to call gpg from yo

RE: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Chris W. Parker
Nicole on Monday, February 23, 2004 12:06 PM said: > I'm not having much luck explaining what I want here ... a drawback of > emailing. I know how to include files, I just wanted to include it > in such a way that my body text still wrapped around it. myfile.php: h

Re: [PHP] delete a function

2004-02-23 Thread Adam Bregenzer
On Sun, 2004-02-22 at 07:25, Sztankó Demeter wrote: > I'm not sure that I want to start OOP-ing in my php code, but I will if > necessary. Ok, I have below a non-OO response. Personally, while I enjoy the OO methodology, I don't think it is the "one true way." I adhere to the philosophy that any

Re: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Nicole
I'm not having much luck explaining what I want here ... a drawback of emailing. I know how to include files, I just wanted to include it in such a way that my body text still wrapped around it. I think I need to tackle this using HTML. "Robert Sossomon" <[EMAIL PROTECTED]> wrote in message news

Re: [PHP] Detecting Binaries

2004-02-23 Thread Axel IS Main
Thanks, that's very helpful. It beats the heck out of doing it the way I've been doing it. Richard Davey wrote: Hello Axel, Monday, February 23, 2004, 7:38:25 PM, you wrote: AIM> Thanks, you just gave me the solution, I think. I don't have to strip AIM> out every character above standard ascii

Re[2]: [PHP] Detecting Binaries

2004-02-23 Thread Richard Davey
Hello Axel, Monday, February 23, 2004, 7:38:25 PM, you wrote: AIM> Thanks, you just gave me the solution, I think. I don't have to strip AIM> out every character above standard ascii, I just have to look for them. AIM> If one is there, then just get rid of it. It's true that an OS can't AIM> tell

Re: [PHP] preg guru again.....

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 11:36, pete M wrote: > Here is a snippet > ð­ :2002020720020208:[EMAIL > PROTECTED]://www.lyricsworld.com/cgi-bin/search.cgi?q=Bruce > +Springsteen&m=phrase&ps=20&o=0&wm=wrd&ul=&wf=1ð­ð­ð­ð­ > > it breaks down in the following elements > the :date: in the format mmdd

Re: [PHP] PHP 5

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 14:25, Karl Timmermann wrote: > I am new to the list, so sorry if this has been asked before. I was > wondering if anyone knew of an approx. date for the final release of > PHP 5.0? I ask because I have a project to do semi-soon that uses XML > and I would rather wait for P

Re: [PHP] Detecting Binaries

2004-02-23 Thread Marek Kilimajer
Generally, binaries have \0 in them, but it is not necessery. Axel IS Main wrote: Guys, this isn't THAT stupid of a question is it? From my perspective, the way PHP seems to see it is that I should already know what kind of file I'm looking at. In most cases that's not an unreasonable assumptio

Re: [PHP] Detecting Binaries

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 14:19, Axel IS Main wrote: > Yes, and in fact that is what I am doing now. This is a spider bot > though, so I'm having to think of every single type of binary file that > could be linked to on the web. So far I'm up to 28 with no end in sight. > What about a .com file? I c

[PHP] Send mail with attached

2004-02-23 Thread francesco
Hi all, is possible to send an email, with mail() function, with an attached? I see on www.php.net but there isn't nothing about this. If someone have the solution please send the solution. Thanks in advance. Frank [EMAIL PROTECTED] www.automationsoft.biz

Re: [PHP] Possible to write CRC/MD5 to the file?

2004-02-23 Thread Sean McCarthy
Hi, At 04:20 23/02/2004, Simon Fredriksson wrote: I wonder if it's possible to write the MD5 or CRC checksum of my scriptfile to the scriptfile. I know that if I change it, the value will change, but is there any way to calculate what it will be? There's no way you can add the CRC after calculat

[PHP] PHP 5

2004-02-23 Thread Karl Timmermann
Hi, I am new to the list, so sorry if this has been asked before. I was wondering if anyone knew of an approx. date for the final release of PHP 5.0? I ask because I have a project to do semi-soon that uses XML and I would rather wait for PHP 5 and use the SimpleXML extension to make things ea

RE: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Robert Sossomon
Just place In your web page in the location where the little box is. Word wrap typically only happens with images though, so you may have to turn your text into an image, in which case you could just use a javascript commands to change the image as needed. If you are including the text into a

Re: [PHP] Detecting Binaries

2004-02-23 Thread Adam Voigt
Well actually to check .com, just make sure it contains a / then the .com, that will filter yahoo.com, but keep yahoo.com/downloadme.com On Mon, 2004-02-23 at 14:19, Axel IS Main wrote: > Yes, and in fact that is what I am doing now. This is a spider bot > though, so I'm having to think of every

Re[2]: [PHP] Detecting Binaries

2004-02-23 Thread Richard Davey
Hello Axel, Monday, February 23, 2004, 7:03:38 PM, you wrote: AIM> Guys, this isn't THAT stupid of a question is it? From my perspective, AIM> the way PHP seems to see it is that I should already know what kind of AIM> file I'm looking at. In most cases that's not an unreasonable AIM> assumption

Re: [PHP] Detecting Binaries

2004-02-23 Thread Jas
Well you can do a check on the mime type of the file. eg. $mimes = array("1" => "application/octet-stream", "2: => "image/jpeg", etc. For more info... http://us4.php.net/manual/en/ref.filesystem.php Just like the upload file function you can check for the mime types... http://us4.p

Re: [PHP] Re: hello

2004-02-23 Thread John Nichel
Ben Ramsey wrote: I would advise against sending attachments to the list with the message "read it immediately." Chances are, it won't be opened or looked at. Please include a description of the problem you are facing, as well as the code you are using in your message body--not in an attachmen

Re: [PHP] Detecting Binaries

2004-02-23 Thread Axel IS Main
Yes, and in fact that is what I am doing now. This is a spider bot though, so I'm having to think of every single type of binary file that could be linked to on the web. So far I'm up to 28 with no end in sight. What about a .com file? I can't omit links that end in .com can I? That would be co

Re: [PHP] Detecting Binaries

2004-02-23 Thread Adam Voigt
Couldn't you just check the extension on the file? On Mon, 2004-02-23 at 14:03, Axel IS Main wrote: > Guys, this isn't THAT stupid of a question is it? From my perspective, > the way PHP seems to see it is that I should already know what kind of > file I'm looking at. In most cases that's not a

Re: [PHP] Re: hello

2004-02-23 Thread Duncan Hill
On Monday 23 February 2004 17:27, Ben Ramsey wrote: > I would advise against sending attachments to the list with the message > "read it immediately." Chances are, it won't be opened or looked at. > Please include a description of the problem you are facing, as well as > the code you are using in

Re: [PHP] Detecting Binaries

2004-02-23 Thread Axel IS Main
Guys, this isn't THAT stupid of a question is it? From my perspective, the way PHP seems to see it is that I should already know what kind of file I'm looking at. In most cases that's not an unreasonable assumption. Unfortunately, that's only good for most cases. PHP is rich in ways to work wit

Re: [PHP] Possible to write CRC/MD5 to the file?

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 00:01, Evan Nemerson wrote: > What you would have to do is find a collision, which is thankfully difficult > to do- if it were easy, MD5 would be useless. Theoretically, you could modify > say John The Ripper and have it brute force something, but you may end up > waiting a

Re: [PHP] Php and GpG

2004-02-23 Thread Adam Bregenzer
On Mon, 2004-02-23 at 08:35, Paul Marinas wrote: > Those anyone know hoh to use php with gpg. I've tryed gpgext, but doesn't > seems to work maybe my php is not compiled with some kind of support. You will need to call gpg from your script using either a socket connection[1], something from the ex

RE: [PHP] saving form data

2004-02-23 Thread Sam Masiello
If the PHP configuration doesn't have "register_globals" turned on in the php.ini file, you will be able to access the form variables via the _POST array like this: $_POST["my_form_var"] Of course, substitute my_form_var with the correct variable from the form that you are submitting. If the se

[PHP] saving form data

2004-02-23 Thread Charlie Fiskeaux II
I'm using a prebuilt Perl form mailer script for a project, but because the form is so long, my client would like to give the user the ability to save the data and come back to finish it later. I was hoping to be able to code this part in PHP (because I don't know Perl), but I'm fairly new to

Re[2]: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Richard Davey
Hello Nicole, Monday, February 23, 2004, 6:26:24 PM, you wrote: N> What I wanted to know I guess was if I use an include and include a file can N> I format where that file will display. Yes absolutely, but again this is still an HTML issue. N> So what I have is a little box with some info in it

RE: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Chris W. Parker
Nicole on Monday, February 23, 2004 10:26 AM said: > What I wanted to know I guess was if I use an include and include a > file can I format where that file will display. > > So what I have is a little box with some info in it. I want it to > display to the right o

Re: [PHP] PHP Alternative to IFRAME?

2004-02-23 Thread Nicole
Your right I was mixing up what I wanted. What I wanted to know I guess was if I use an include and include a file can I format where that file will display. So what I have is a little box with some info in it. I want it to display to the right of the body text and have the body text wrap around

Re: [PHP] E-Commerce Advice? Squirrelcart?

2004-02-23 Thread Richard Baskett
on 2/23/04 9:53, Matt Hedges at [EMAIL PROTECTED] wrote: > Hello, > > I am working on using PHP to build a web store. > http://www.squirrelcart.com/ looks to be pretty good for a shopping cart- > does anyone have any experience with this or others? > > Also, what suggestions do ya'll have for a

RE: [PHP] E-Commerce Advice? Squirrelcart?

2004-02-23 Thread Elliott Mina
I have used OsCommerce, and not had any problems. Original Message Follows From: "Matt Hedges" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP] E-Commerce Advice? Squirrelcart? Date: Mon, 23 Feb 2004 11:53:14 -0600 Hello, I am working on using PHP to build a web store. http://www

Re: [PHP] E-Commerce Advice? Squirrelcart?

2004-02-23 Thread Adam Voigt
PayPal has some pretty impressive inter-active programming API's. Other then that, the only suggestion I could make is try and steer clear of AuthorizeNET. On Mon, 2004-02-23 at 12:53, Matt Hedges wrote: > Hello, > > I am working on using PHP to build a web store. > http://www.squirrelcart.com/

  1   2   >