[PHP] Re: how can I get the post content in php

2001-11-14 Thread Johan Holst Nielsen
> $HTTP_SERVER_VARS['QUERY_STRING'] --> it just can read the content by GET > method. > > I want POST content Ah okay. Try this: $post_query = ""; $keys_arr = array_keys($HTTP_POST_VARS); $keys_size = sizeof($key_arr); for($i=0; $i<$keys_size; $i++) { if($i == 0) { $post_query .= $

[PHP] Re: how can I get the post content in php

2001-11-14 Thread Yorgo Sun
$HTTP_SERVER_VARS['QUERY_STRING'] --> it just can read the content by GET method. I want POST content thanx -- Yorgo Sun Project Manager Technology Dept. Tom.com Email:[EMAIL PROTECTED] Mobile:13701243390 Phone:65283399-121 TomQ ID:yorgo http://www.ruisoft.com "Johan Holst Nielsen" <[EMAIL PR

[PHP] Re: how can I get the post content in php

2001-11-14 Thread Johan Holst Nielsen
> I mean post content string not a lot of variables > > etc: > > aaa.html post a=1&b=2 to bbb.php > > I want use php to read the string a=1&b=2 not $a and $b I not sure I understand you, but are you looking for $HTTP_SERVER_VARS['QUERY_STRING'] ?? Regards, Johan -- PHP General Mailing List

[PHP] Re: I suck at regular expressions!

2001-11-14 Thread Johan Holst Nielsen
Richard S. Crawford wrote: > I am trying to get the title of an html file... you know, the string > between the < title > and < /title > tags... > > Here is the function I've got so far: > > function fileTitle($fileName) { > $myFile = fopen($fileName, "r"); > $myText=""; >

[PHP] how can I get the post content in php

2001-11-14 Thread Yorgo Sun
I mean post content string not a lot of variables etc: aaa.html post a=1&b=2 to bbb.php I want use php to read the string a=1&b=2 not $a and $b thanks -- Yorgo Sun Project Manager Technology Dept. Tom.com Email:[EMAIL PROTECTED] Mobile:13701243390 Phone:65283399-121 TomQ ID:yorgo http://www.

[PHP] I suck at regular expressions!

2001-11-14 Thread Richard S. Crawford
I am trying to get the title of an html file... you know, the string between the < title > and < /title > tags... Here is the function I've got so far: function fileTitle($fileName) { $myFile = fopen($fileName, "r"); $myText=""; while (!feof($myFile)) {

[PHP] Re: PHP + apache .htaccess

2001-11-14 Thread EnriGA
Thanks very much ! I think I've got the way ! ^_^ "Johan Holst Nielsen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > then, can .htaccess store the user expried date ? > > like Peter is not allowed to login after 2Feb 2001, Sam is expired after > > 11Nov 2

[PHP] Session

2001-11-14 Thread jtjohnston
Hi, I have read: http://www.php.net/manual/en/function.session-register.php Could I ask you a question about how to set a session $vars in a ? It seems to be quite a mystery/controversy!! This is my problem: http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/test_session.php Type some

[PHP] Re: PHP + apache .htaccess

2001-11-14 Thread Johan Holst Nielsen
> then, can .htaccess store the user expried date ? > like Peter is not allowed to login after 2Feb 2001, Sam is expired after > 11Nov 2002.. Yes and no. You just have to make a change in the .htaccess file. > and also, is it possible to maintain the .htaccess automatically ? > like I write

[PHP] Re: PHP + apache .htaccess

2001-11-14 Thread EnriGA
then, can .htaccess store the user expried date ? like Peter is not allowed to login after 2Feb 2001, Sam is expired after 11Nov 2002.. and also, is it possible to maintain the .htaccess automatically ? like I write a shell script and run it schedully to delete those expired entry ? "Johan

[PHP] Re: PHP + apache .htaccess

2001-11-14 Thread Johan Holst Nielsen
> After I research security issue from the web, I had found apache > .htaccess which can solve > my problem. What my problem is that, can .htaccess perform like a database > system which > can store users loginID and password, and also set those users have a > expired time each ?? If you want

[PHP] PHP + apache .htaccess

2001-11-14 Thread EnriGA
Dear all I dunno this post is in right group or not.If no, please ignore. I am a user that use Linux, apache with PHP + mySQL. I have already written a member login security system with PHP to block any unathorized user to see my homepage. But unfortnately, I found that if ppl know the ful

[PHP] Re: mail() function

2001-11-14 Thread Johan Holst Nielsen
> $mailheaders = "From: \"Do Not Reply\"\r\nReply-To: Do Not Reply@Do Not > Reply\n"; > > If I use the above headers it says from "Do Not [EMAIL PROTECTED]" > > Does anyone know how to make it just say "Do Not Reply"? You cant... but try making it like this: $mailheaders = "FROM: Do Not Repl

[PHP] Re: Session help

2001-11-14 Thread Johan Holst Nielsen
> Start at index.html. It goes to postcard.php. When I click on submit in > postcard.php, if I change any of the values in the form, the session > values received in send_mail.php do not change. Anyone have an idea what > I have done wrong now? > Try to make a session_unregister(), and make sess

[PHP] Re: Controlling length of table data

2001-11-14 Thread Johan Holst Nielsen
> This is really a combination html/php question, I believe. The problem is > that I have a table that displays a field of text that can be several > hundred bytes long. If, however, someone holds down a key and produces > 500 > letter 'x' the table data then distorts the table! Since the lengt

Re: [PHP] PHP 4.0.6 $PHP_SELF empty?

2001-11-14 Thread John Steele
Hi David, No, I updated my php.ini manually (just to change the zend optimizer and add the DBG debugger. These two lines from php.ini haven't changed for sure: variables_order = "EGPCS"; register_globals = On; According to phpinfo, $PHP_SELF is set, but simply empty! John >> Hello, >> >>

Re: [PHP] gd-lib and libjpeg issues

2001-11-14 Thread David Robley
On Thu, 15 Nov 2001 05:29, Bill Brennick wrote: > Hi all... Having an issue with PHP recognizing the libgd and libjpeg > libraries... I specifically downloaded the newest version(s) of those, > and compiled the PHP 4.0.6 with: > > ./configure --with-mysql=/usr/local/mysql > --with-apache=../apac

Re: [PHP] PHP 4.0.6 $PHP_SELF empty?

2001-11-14 Thread David Robley
On Thu, 15 Nov 2001 06:53, John Steele wrote: > Hello, > > I just updated to v4.0.6 on win9x. Suddenly all my form-action > scripts using $PHP_SELF quit working, as it's empty. Anyone know how > to fix this? > > Thanks, > John Presumably in the process your php.ini was updated? Check umm, I

[PHP] PHP 4.0.6 $PHP_SELF empty?

2001-11-14 Thread John Steele
Hello, I just updated to v4.0.6 on win9x. Suddenly all my form-action scripts using $PHP_SELF quit working, as it's empty. Anyone know how to fix this? Thanks, John -- /* SteeleSoft Consulting John Steele - Systems Analyst/Programmer * We also walk dogs... Dynamic Web Design PHP/M

RE: [PHP] Controlling length of table data

2001-11-14 Thread Martin Towell
if you're going to go the "break string in words" way, then try $words = explode(" ", $string); -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Controlling length of table data This is reall

[PHP] Controlling length of table data

2001-11-14 Thread Gaylen Fraley
This is really a combination html/php question, I believe. The problem is that I have a table that displays a field of text that can be several hundred bytes long. If, however, someone holds down a key and produces 500 letter 'x' the table data then distorts the table! Since the length of the d

[PHP] I have pulled all my hair out - imap_sort still not working - please help!

2001-11-14 Thread richard phynga
Hello people out there, I have been tearing my hair out with this one, as I cannot get imap_sort to perform correctly. below is the piece of code that I use. of all the sort types, only SORTSIZE works. All the otheres give incorreclty sorted lists. to see an example of this please go to : http

[PHP] Re: "Function registration failed" and "Module compiled with debug=0" errors

2001-11-14 Thread Richard Lynch
D'oh!!! That's what I get for trying copying and pasting with Mandrake's screwy ./configure line! An oddly altered php.ini file was indeed the problem. Seems obvious in retrospect -- php.ini was trying to load Mandrake's old dynamic modules that are already static in my new PHP Module, so all

RE: [PHP] mail() function

2001-11-14 Thread Martin Towell
It's probably thinking that "Do Not Reply" is a user name, so try: "Do Not Reply <[EMAIL PROTECTED]>" and see how that goes -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 10:50 AM To: PHP User Group Subject: [PHP] mail() function Hel

[PHP] mail() function

2001-11-14 Thread Brandon Orther
Hello, I have been mssing with the mail function for a day now. When I send a e-mail it always adds the server name to the end of whatever I put the e-mail from in the header. Example: $mailheaders = "From: \"Do Not Reply\"\r\nReply-To: Do Not Reply@Do Not Reply\n"; If I use the above hea

Re: [PHP] IP Address Variable

2001-11-14 Thread John Taylor-Johnston
It may not work, if you are running Windows PHP on your localhost at home. I'll bet you are trying to log getenv('REMOTE_HOST'). Been there done that. I use http://www.indigostar.com/microweb.htm to create a localhost to develop and debug and then upload to the server. (I pay for modem time.) I re

Re: [PHP] take date and convert to day of year fixed!

2001-11-14 Thread sundogcurt
OK GOT IT!! $utine = strtotime("26-Nov-2001"); $bday=(int)$utine; $utoday = strtotime(""); $btoday = (int)$utoday; if((($bday-$btoday) <= 1209600 && ($bday-$btoday)>0)){ print "you have " . round(($bday-$btoday)/86400)." Days till 'blanks' bday"; print "you are within the two week rang

[PHP] Session help

2001-11-14 Thread John Taylor-Johnston
Start at index.html. It goes to postcard.php. When I click on submit in postcard.php, if I change any of the values in the form, the session values received in send_mail.php do not change. Anyone have an idea what I have done wrong now? http://www.CollegeSherbrooke.qc.ca/~languesmodernes/postcard

RE: [PHP] IP Address Variable

2001-11-14 Thread Ben Clumeck
Jim, Thanks for your quick response. I looked over the URL and tried it but it doesn't seem to work. I tried: Any advice would be appreciated. Ben -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 2:57 PM To: Ben Clumeck; [EMAIL PROTECT

Re: [PHP] IP Address Variable

2001-11-14 Thread Jim Lucas
check this out http://www.php.net/manual/en/function.gethostbyaddr.php jim - Original Message - From: "Ben Clumeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2001 2:48 PM Subject: [PHP] IP Address Variable > I currently log ip address that reach my site.

[PHP] IP Address Variable

2001-11-14 Thread Ben Clumeck
I currently log ip address that reach my site. However, I want to be able to log both the ip address and remote name. Can anyone help? Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] Ramadan@egyptpresents

2001-11-14 Thread Egypt Presents Marketing
Egypt Presents Logo Ramadan @ EgyptPresents First Online Gift Shop in Egypt

Re: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-14 Thread Papp Gyozo
Nonetheless sometimes it is more efficient to use a template engine. (IMHO) Papp Gyozo - [EMAIL PROTECTED] - Original Message - From: "Jason G." <[EMAIL PROTECTED]> To: "Brad Melendy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2001 1:33 PM Subject:

[PHP] Check if ip is with a network block

2001-11-14 Thread Paul Wolstenholme
Greetings, I'd like to check to see if an ip is within an ip cidr style network block (192.75.242.157 with 192.75.242.0/23). Initially, I started off with some code derived from some perl code that I found (code below). However, the bitmask calcution did not work ( $bitmask = 0x << (32 -

[PHP] NO CARGA PAGINA PHP

2001-11-14 Thread Daniel Geldres Castro
Tengo un pequeño problema con mi servidor SuSe 7.0 Tengo instalado el apache y corriendo los demonios, tengo instlado los rpm del mod_php, postgres y mysql pero cuando desde mi navegador deseo visualizar alguna pagina con la extension php esta se descarga sola, no me visualiza nada. Que error deb

[PHP] matches problem: refinement of the question

2001-11-14 Thread Bruno Grab
Von: "Bruno Grab" <[EMAIL PROTECTED]> An: <[EMAIL PROTECTED]> Betreff: Re: [PHP] matches problem ("preg_match") Datum: Mittwoch, 14. November 2001 12:41 Thank you for your answer. However our real problem is to solve it with preg_match. we want to rather analyse more complicated structures than

[PHP] Need a little help with IMAP (OT?)

2001-11-14 Thread Magnus
Hello all! I have finally got php and apache to work with IMAP, pdf and gd, not problems compiling them. But... When I try to connect to my local account called "homer" with IMAP in a php-page I get an error: Warning: Couldn't open stream {localhost:143}INBOX When I get more info about the erro

Re: [PHP] FTP Clients

2001-11-14 Thread Kurt Lieber
Look -- if you're going to post OT messages, at least put [OT] in the subject line so those of us who get pissy about OT messages (such as myself) can filter them out. As for a good, free windows FTP utility, you have one: Open up a command prompt and type "ftp". --kurt On Wednesday 14 Novem

Re: [PHP] Setting variables from a text file

2001-11-14 Thread Rudi Ahlers
I couldn't get this to work. Here is my complete script: \n"); $data = file ($file); for ($n = 0; $n < count($data); $n++) { $GetLine = explode("|", $data[$n]); print ("$GetLine[0]\n"); } fclose ($open); print ("\n"); } else { print ("Unable to read from bonzai.txt!\n"); } } ReadFr

[PHP] FTP Clients

2001-11-14 Thread Rudi Ahlers
Sorry for the totally OT question, but can anyone recommend a good, FREE, FTP client for windows? I now have to pay for AceFTP aswell, which used to be free. Thank you Rudi Ahlers -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: [PHP] VALUABLE LESSON: using sessions and include

2001-11-14 Thread jtjohnston
Only if you are allowed anywhere near your admin's account :) Papp Gyozo wrote: > or name it in PHP.ini: > > session.name > > > What you can do is not to name session at all :-) It's easyer :-) > > J > > "Jtjohnston" <[EMAIL PROTECTED]> ha scritto nel messaggio > > [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: VALUABLE LESSON: using sessions and include

2001-11-14 Thread jtjohnston
Yeah, I tried to NOT name the session, but it didn't carry over the data. This this simple lesson. Dav wrote: > What you can do is not to name session at all :-) It's easyer :-) > J > "Jtjohnston" <[EMAIL PROTECTED]> ha scritto nel messaggio > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Tha

[PHP] About Berkeley DB2 Db Nr. 2

2001-11-14 Thread Ricardo Núñez
Hello again, Nr. 2 I compiled my php with "--with-db2" option... 1) Does PHP support Berkeley DB2 concurrency control? How? 2) Does PHP support Berkeley DB2 transaction control? How? Thank you very much, Ricardo Núñez [EMAIL PROTECTED] -- PHP General Mailing List

RE: [PHP] Setting variables from a text file

2001-11-14 Thread Matthew Luchak
How about pseudocode... $variable=variablename; $array = explode("|",$text); foreach ($array as $key => $value) { $variable$key=$value; } Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Jeff Lewis [mailto:[EM

Re: [PHP] Setting variables from a text file

2001-11-14 Thread Jeff Lewis
Someone may have a better way but you can read each line (assuming the file uses \n for a new record) and use: arrayname = explode("|",$variable_holding_line_from_file); Then you can do assign the variables as such: $name = $arrayname[0]; etc Could be a better way from the list :) Jeff -

RE: [PHP] javascript to php ???????

2001-11-14 Thread Mark
On Wed, 14 Nov 2001 10:30:03 +1100, Martin Towell wrote: >That's why I put quotes around the words - obviously a function >would be >need to be written to do the "serialising" and a corresponding php >function >to retrieve the values and place them into an array again. oops, I guess I misread tha

[PHP] Setting variables from a text file

2001-11-14 Thread Rudi Ahlers
Hi Say I have a text file, separated by "|" ( a pipe). Now, I want to extract that info, in the form of variables. I can extract and display the info in the text files, but that's not what I want. I want to be able to tell it that the first entry should be variable1, the second entry should be va

[PHP] About Berkeley DB2 Databases

2001-11-14 Thread Ricardo Núñez
Hello, I read a paper about Berkeley DB2 databases and I have a few doubts about PHP db2 support I compiled my php with "--with-db2" option... 1) How can I create a Berkeley db2 database with the "Berkeley DB Concurrent Access Method" I want. Let's say... a B+Tree ... or hash method. USIN

[PHP] gd-lib and libjpeg issues

2001-11-14 Thread Bill Brennick
Hi all... Having an issue with PHP recognizing the libgd and libjpeg libraries... I specifically downloaded the newest version(s) of those, and compiled the PHP 4.0.6 with: ./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.22 --with-xml --with-zlib --with-gd=/usr/lib --with

Re: [PHP] High-Volume Newsletter Techniques?

2001-11-14 Thread The Big Roach
Just a reminder of sorts when dealing with this kind of issue. Where I work, we never had a need to mail 20,000+ newsletters but we do distribute 300 or so each week. On our initial tests, we discovered our external smtp server (our isp account), limited our mailings to chunks of 20 emails at a ti

Re: [PHP] Including declare statements that contain variables

2001-11-14 Thread Fred
Jim Lucas <[EMAIL PROTECTED]> wrote in message 012301c16d3a$6def13c0$96def5cc@bendcom">news:012301c16d3a$6def13c0$96def5cc@bendcom... > Here are a few pointers to make it run just a little faster also. > > don't extract the entire $GLOBALS array. just use the $var that you need. > function GetDa

Re: [PHP] very weird PHP behaviour...

2001-11-14 Thread Jim Lucas
try this: function Upload($source_file,$source_filename,$dest_dir,$allowed_types=array(), $upload_errmsg="") { if( count($allowed_types) ) { if(!in_array(ArquivoExt($source_filename),$allowed_types)) { ?>O arquivo não está entre os tipos autorizados To: <[EMAIL PRO

Re: [PHP] Including declare statements that contain variables

2001-11-14 Thread Jim Lucas
Here are a few pointers to make it run just a little faster also. don't extract the entire $GLOBALS array. just use the $var that you need. function GetData($Query) { return(mysql_query($Query, $GLOBALS[db_conn])); } another thing would be to build a wrapper function for mysql_query() and h

Re: [PHP] silly question

2001-11-14 Thread Mike Eheler
I assume that you have or some variation thereof. In that case, just set $field1 = "" after you save the record, or remove the value="" statement altogether. Mike Rodrigo Peres wrote: >Hi list, > >I have PHP code to insert the result of a form into mysql. When I nedd to >made an update, I pas

Re: [PHP] javascript to php ????

2001-11-14 Thread Mike Eheler
No. You have to realise that JavaScript is client side, and PHP is server side, so -- apart from inserting those javascript values into a form and submitting it using code -- PHP and JavaScript cannot interact. Mike fitiux wrote: >Hi =) > >is it possible to pass a javascript array to php ??

[PHP] Including declare statements that contain variables

2001-11-14 Thread Fred
I would like to offer my recent experience in the hope that it will help others avoid the wasted effort and frustration I managed to burden myself with yesterday. I will start by stating that the conclusions I have drawn may seem obvious at first blush, however in a troubleshooting environment it

Re: [PHP] Error with Netscape 6.2

2001-11-14 Thread Phil Driscoll
On Wednesday 14 November 2001 5:10 pm, Michael Stearne wrote: > That is not an error you get from a browser, that is an error generated > by the server. Netscape or IE are just reporting that. Are you sure > the app works in IE (try Shift+Refresh on IE and Shift+Reload on NS). > It sounds like

Re: [PHP] High-Volume Newsletter Techniques?

2001-11-14 Thread Larry Jeannette II
This is something I am curious about also. We are currently building a system to allow people to maintain/send out newsletters (40,000+). We have done some initial testing of the process (which uses the mail() function) and have found that it takes about 30 - 40 minutes to process 4000 emails. R

Re: [PHP] very weird PHP behaviour...

2001-11-14 Thread Christian Dechery
that's exactly the problem... damn, how couldn't I think of this.. I didn't realise that when a file is NOT uploaded its value is set to 'none'... and I was using empty() to check it... thanks a lot. At 10:54 14/11/01 -0600, Steve Cayford wrote: >Sure sounds like you're hitting this function t

[PHP] Re: High-Volume Newsletter Techniques?

2001-11-14 Thread Manuel Lemos
Hello, Sondra Russell wrote: > > Yes, I saw the discussion a few days earlier on this topic, but I'm > wondering if there is still some unmined wisdom out there about > building a script that sends a newsletter out to 25,000+ people > The very impressive class I found (phpmailer-1.41) looked

[PHP] Re: silly question

2001-11-14 Thread George Whiffen
Rodrigo, I don't quite understand your problem, it might help to see some of the php or form html. It might also help if I explain how I usually handle updates. I have a single php page with the form on it which is also the target of the form. Typically users get to the form via a link which i

Re: [PHP] Error with Netscape 6.2

2001-11-14 Thread Michael Stearne
That is not an error you get from a browser, that is an error generated by the server. Netscape or IE are just reporting that. Are you sure the app works in IE (try Shift+Refresh on IE and Shift+Reload on NS). It sounds like there is a problem in your code. Michael Anthony wrote: > I ge

Re: [PHP] very weird PHP behaviour...

2001-11-14 Thread Steve Cayford
Sure sounds like you're hitting this function twice by accident. Are you sure you're only calling it once? That would explain why you only get one output with the die(), but two without it. -Steve On Wednesday, November 14, 2001, at 10:34 AM, Christian Dechery wrote: > I don't know what it i

[PHP] Error with Netscape 6.2

2001-11-14 Thread Anthony
I get a CGI error whenever I view my php app under Netscape 6. The error is: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: My question is, what are the headers that I need to send, where can I find more info

[PHP] very weird PHP behaviour...

2001-11-14 Thread Christian Dechery
I don't know what it is... but PHP is acting very weird today... or I am becoming crazy... can anyone tell me which one? I have this function: function Upload($source_file,$source_filename,$dest_dir,$allowed_types=array()) { global $upload_errmsg; if( count($allowed_types) ) { $file_ext=Arqu

Re: [PHP] Help! How do i mail a value from a mysql databse?

2001-11-14 Thread George Whiffen
There's also a potential problem with: "Her har du ditt passord: $myrow["id"] \n God appetitt! Hilsen Subway" You are using double quotes for the array index,("id") within a double quoted string. I'm amazed php accepts this, you might expect it to parse that as "Her har du ditt passord: $myrow[

Re: [PHP] High-Volume Newsletter Techniques?

2001-11-14 Thread Michael Sims
At 12:14 PM 11/14/2001 +0100, Sondra Russell wrote: >Yes, I saw the discussion a few days earlier on this topic, but I'm >wondering if there is still some unmined wisdom out there about building a >script that sends a newsletter out to 25,000+ people The very >impressive class I found (phpm

Re: [PHP] VALUABLE LESSON: using sessions and include

2001-11-14 Thread Papp Gyozo
or name it in PHP.ini: session.name > What you can do is not to name session at all :-) It's easyer :-) > J > "Jtjohnston" <[EMAIL PROTECTED]> ha scritto nel messaggio > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanks Dav, > > You caught me while I was debugging. But I learned

Re: [PHP] take date and convert to day of year

2001-11-14 Thread Papp Gyozo
date("z"); // the today's ordinal number z - day of the year; i.e. "0" to "365" if you want the ordinal number of other days different than the current one you can play with mktime or strftime or strtotime to make an appropiate timestamp as you did in your earlier codes. - Ori

Re: [PHP] Redeclare a Function

2001-11-14 Thread Joffrey van Wageningen
i recon this is a way too, the website does not support to much information about how to use a tool like APD. create_function is a php native function so support, stability and usability is much greater than a 3rd party Zend Extention in early beta :) with kind regards, Joffrey van Wageningen

[PHP] Re: Time out for file()? - Use fsockopen

2001-11-14 Thread George Whiffen
Jean-Arthur, Your set_time_limit/shutdown function solution looks like a clever trick. If you can come up with that you might just as well do the proper job with an fsockopen and socket_set_timeout. The manual pages on fsockopen, socket_set_timeout plus the user comments have plenty of useful e

Re: [PHP] Redeclare a Function

2001-11-14 Thread Yasuo Ohgaki
Joffrey Van Wageningen wrote: > its possible to create lambda-style functions with create_function() and > redeclare the variable functions > > --- > $funct = create_function('$x', 'return ++$x;'); > echo $funct(10); > > $funct = create_function('$x', 'return --$x;'); > echo $funct(10); > --- >

Re: [PHP] keeping my code! Why?

2001-11-14 Thread mweb
> In general, if you think your old code is an "asset" and you're just > protecting it, think again. All code is obsolete before it's > finished. It's only your skills/experience that really matter > and the best way to protect them is to share your work and learn > from others. PERFECT ANSWE

[PHP] PHP debugging/tracing extensrion release

2001-11-14 Thread George Schlossnagle
This is just a quick announcement of the release of APD, a completely free and open (QPL) profiling/tracing/debugging extension for PHP. APD provides for strace/truss type output switched on and off inside scriipts as well as the ability to dump complete backtraces, similair to Perl's croak().

Re: [PHP] Re: Login/Security Problem

2001-11-14 Thread Tamas Arpad
On Wednesday 14 November 2001 14:58, you wrote: I think mixing of the web application's and the host's operating system's authantication is not the best thing (if you don't exactly need that) The $isLogged variable that is stored in the session is perfect as long as you check that it is came f

Re: [PHP] keeping my code! Why?

2001-11-14 Thread George Whiffen
Zend encoder is probably your best option. But why do you want to hide your php code from your Server Admin? 1. If you can't trust your Server Administrator you've got big problems. Change your hosting! 2. Are you sure your code is so valuable? Developers always seem to greatly overestimate

RE: [PHP] newbie question about odbc_connect

2001-11-14 Thread Andrew Hill
Johannnes, To enable ODBC support in PHP on Linux, configure --with-iodbc per the HOWTO at www.iodbc.org. This will link PHP against an ODBC Driver Manager, but you will still require an ODBC Driver. If you cannot obtain an ODBC driver for FMPro for Linux, you can use the OpenLink Multi-Tier ODB

RE: [PHP] Anyone knows how to prevent nonACSII chars convertion with MSSQL?

2001-11-14 Thread Andrew Hill
Tomaz, In spite of your ODBC adversion it may be your best bet :) One related option - OpenLink has a FreeTDS based driver available that you may wish to try. Please let me know if you require assistance. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.

Re: [PHP] Re: Login/Security Problem

2001-11-14 Thread Daniel Masur
so set an md5() of each user name as "yes". islogged=Ehyfoa74a23gfd or whatever is good i think. but sessions are the most secure way, so think about both (sessions and cookies) and decide what you really need. you have linux? you could make an .htaccess, and make real users with no bash, and let

Re: [PHP] Problem with "<"

2001-11-14 Thread Rasmus Lerdorf
The lines are not missed, they are simply not visible when you echo the stuff to the browser because your browser thinks these are HTML tags. Try doing a "View Source" in your browser and I bet you will discover that they are actually there. -Rasmus On Wed, 14 Nov 2001, Paul - Zenith Tech In

Re: [PHP] Re: Login/Security Problem

2001-11-14 Thread Stefan Rusterholz
I don't think this is a secure method. If I do only a little effort an find out, that it's this variable $islogged which has to set to "yes" (or whatever) I can gain access by simply typing into the browsers addressbar "www.yourdomain.com/theFileIWantToGo.php?islogged=yes" and I will gain access.

RE: [PHP] javascript to php ????

2001-11-14 Thread Grimes, Dean
One way I do this is with the following: var x = new Array(); x[0] = "zero"; x[1] = "one"; x[2] = "two"; // set the hidden input to a comma delimited string document.f.x_array.value = x.toString(); // alert(document.f.x_array.value); Hope this helps. Dean -Original M

[PHP] Re: Login/Security Problem

2001-11-14 Thread Joe Van Meer
Thx for replying, so I can do away with the session variable that I was setting and just set a cookie on their machine and delete it when they logout? I don't have to check on each page? Cheer Joe:) "Daniel Masur" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

[PHP] Re: Login/Security Problem

2001-11-14 Thread Daniel Masur
set a cookie, and delete it with a logout button or when the user leaves your domain "Joe Van Meer" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there. I'm new to php and would like some insight on securing a website. > Upon successful login to my

Re: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-14 Thread Dan McCullough
If someone has already replied to this I apploigize for a double post. You need to put in brackets after the if statement and end bracket before the else and then another open after the else, lastly you need to close with a bracket. Example: > > > if (strstr($DomResults,$Match)) { > > p

[PHP] Login/Security Problem

2001-11-14 Thread Joe Van Meer
Hi there. I'm new to php and would like some insight on securing a website. Upon successful login to my site (checks against database for username and password) I assign a session variable called '$islogged' to 'yes'. On all other pages throughout my site I use the following code to determine if t

[PHP] Re: keeping my code!

2001-11-14 Thread nobody
Has anyone been successful in compiling afterBURNER Cache on Win32? I tried, but couldn't do it "Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Here are a few links that might help you: > > 'Zend Encoder': > http://www.zend.co

Re: [PHP] array_unique() workaround? SOLUTION!

2001-11-14 Thread Andrey Hristov
reset() is not needed when using foreach but is requirement when using : each(),next(),prev(), etc. Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "dav" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 200

Re: [PHP] Sending mail without using mai() ?

2001-11-14 Thread Andrey Hristov
I think that are some code which does what you want? Look at www.hotscripts.com, phpclasses.upperdesign.net Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS - Original Message - From: "Jaime Iniesta Aleman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: We

Re: [PHP] array_unique() workaround? SOLUTION!

2001-11-14 Thread dav
Well infact you are checking equity, like my suggestion about in_array :-) "Spunk S. Spunk III" <[EMAIL PROTECTED]> ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanks everyone for the ideas, > Here's what I came up with... > I forgot to mention that I needed to preserve

[PHP] Sending mail without using mai() ?

2001-11-14 Thread Jaime Iniesta Aleman
Hi, is it possible to send SMTP mail if the server where are my pages hosted forbids the use of the mail() function ? I mean, by opening a sockets connection to an external SMTP server and writing the commands there directly... Jaime -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] keeping my code!

2001-11-14 Thread Michael A. Peters
On Wed, 14 Nov 2001 18:38:48 +0700 Ye Tun <[EMAIL PROTECTED]> wrote: > Hi all, > > I am not sure if this is the right list to ask. But I am wondering if I > can keep my php code from Server Administrator of the web server I am > putting my code on? Is there anyway I can encrypt or do someth

[PHP] Re: Time out for file()?

2001-11-14 Thread _lallous
from the manual this will grab a file too using the socket functions, the socket_set_timeout()'s first param is expected to be a socket handle. "Jean-Arthur Silve" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi ! I use the file function for accessing to pag

Re: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-14 Thread Jason G.
try this.. Raw html code here for as long as you want More Raw Html Code Here Ok, I figured out that just using echo seems to be the best way to do this >under PHP. In ASP, you can end your code block and

[PHP] Time out for file()?

2001-11-14 Thread Jean-Arthur Silve
Hi ! I use the file function for accessing to pages on another server. It works perfectly. But if the server does not respond or is too long to send datas, the file function wait too long.. Is there a way to tune the time out ?? I would like that id the server does not respond, the function

Re: [PHP] array_unique() workaround? SOLUTION!

2001-11-14 Thread Jason G.
it seems that... $newarray = array() foreach($oldarray as $key => $value) if(! isset($newarray[$key])) $newarray[$key] = $value; -JAson Garber IonZOft.com At 10:42 AM 11/14/2001 +0100, Spunk S. Spunk III wrote: >Thanks everyone for the ideas, >Here's what I came up wit

RE: [PHP] keeping my code!

2001-11-14 Thread Richard Black
Theres the Zend Encoder, but this is a bit pricey if you don't have a company to pay for it. Don't know if theres any free alternatives or not -Original Message- From: Ye Tun [SMTP:[EMAIL PROTECTED]] Sent: 14 November 2001 11:39 To: [EMAIL PROTECTED] Subject:[PHP] keeping

[PHP] Re: keeping my code!

2001-11-14 Thread Julio Nobrega Trabalhando
Here are a few links that might help you: 'Zend Encoder': http://www.zend.com/zend/products.php 'PBC': http://pbc.sourceforge.net/ 'AfterBurner Cache': http://bwcache.bware.it/ Pear's cache classes may also protect a little bit your code... I don't know how easy it is to break the file gener

Re: [PHP] matches problem ("preg_match")

2001-11-14 Thread Bruno Grab
Thank you for your answer. However our real problem is to solve it with preg_match. we want to rather analyse more complicated structures than the one in our example. Well, let me reformulate it: How can we (with preg_match) s a v e each subpattern into an array element, that is, also e a c h m

[PHP] Problem with "<"

2001-11-14 Thread Paul - Zenith Tech Inc
Hi, I have a text file, which is acting as a template for apache config. I open the file, and read it in using this bit of code: $filename = DIR_TEMPLATES."/apache/subdom.txt"; $fd = fopen ($filename, "r"); $template = fread ($fd, filesize ($filename)); fclose ($fd); However, the fi

  1   2   >