php-general Digest 2 May 2001 04:41:51 -0000 Issue 661 Topics (messages 50953 through 51076): Re: Best Practice-HTML In Database 50953 by: Mark Roedel .htaccess 50954 by: Dennis Gearon Re: template solutions? 50955 by: Michael Kimsal 50957 by: Henning Kilset Pedersen 50958 by: Henning Kilset Pedersen 50959 by: Steven Haryanto 50976 by: Steven Haryanto Re: Get the string between custom delimiters 50956 by: Daniel Tryba is CURL right for SSL post to payment processing Authenticate.net 50960 by: Tom Beidler 50974 by: Peter 51018 by: Tom Beidler 51027 by: Kelly Cochran Re: timezones 50961 by: Zane Appel test - pls ignore. 50962 by: Michael Geier Re: Problems after reversing a guestbook 50963 by: Jason Stechschulte Your opinion on security issue: file extension 50964 by: Johnson, Kirk 50966 by: Jon Rosenberg Re: Content_Type is included in uploaded file! 50965 by: Jason Stechschulte Re: Please review our coding standards [ ideas ] 50967 by: Toby Miller Re: Logout Problem auf .htaccess-Login 50968 by: Matt Schroebel About MySQL 50969 by: Hassan Arteaga How to unsubscribe from the list??? 50970 by: Andreas Pucko Re: Loading PHP module on Win98 50971 by: Phil Driscoll Re: replace functions add \ 50972 by: Jason Stechschulte File upload form 50973 by: Boget, Chris 50979 by: Boget, Chris 50990 by: Boget, Chris Re:lex error in make of PHP_4.0.2/Zend 50975 by: Surinder Singh Re: Creating Graphs 50977 by: Grimes, Dean compare PHP with C for apache modules 50978 by: surinder singh Re: variables within variables 50980 by: Jason Stechschulte HELP !!!! 50981 by: Hassan Arteaga 50982 by: Henning Kilset Pedersen 50983 by: Altunergil, Oktay 50986 by: Hassan Arteaga 51055 by: Chris Fry 51056 by: Tomasz Abramowicz PHP Graph class/library anywhere? 50984 by: indrek siitan 50987 by: Boget, Chris 50988 by: Henning Kilset Pedersen split and array logic 50985 by: Matthew Luchak 51012 by: Gyozo Papp Great for all software !!!! 50989 by: Hassan Arteaga Going crazy again ... 50991 by: Martin Skjöldebrand 50992 by: Jimmy Lantz 50993 by: Altunergil, Oktay 51000 by: Martin Skjöldebrand 51063 by: Martin Skjöldebrand How to build PHP4 shared object extensions? 50994 by: Guenter Millahn $BL4$N@$3&$X!&!&!&(B 50995 by: mailin.palette.plala.or.jp subtracting Dates 50996 by: Mike Mike 51015 by: Gyozo Papp String delimeters, arg! 50997 by: Nick 51001 by: Johnson, Kirk 51019 by: Gyozo Papp 51032 by: James, Yz Re: upload/download of files (This is LONG) 50998 by: Sterling opening files 50999 by: Joseph Bannon 51002 by: Mark Roedel LDAP support for 4.0.5 51003 by: Walgamotte, David restrict access of Copy command 51004 by: PanDragon 51022 by: Sebastien Roy 51030 by: PanDragon Re: Is PHP code software? 51005 by: Nikhil Goyal File upload 51006 by: Boget, Chris Re: include whole directories? 51007 by: Nikhil Goyal mailing list 51008 by: Nikhil Goyal xmlHTTP.send equiv? 51009 by: Todd Kennedy 51016 by: Fabian Raygosa Easiest Way to Upgrade PHP 51010 by: K Old 51021 by: Henrik Hansen PHP + javascript 51011 by: Ide, Jim 51023 by: Joseph Tate Re: Post XML to PHP via XMLHTTP VB Object 51013 by: Steve Meyers 51070 by: Samantha Savvakis Re: Do You Like This Book? 51014 by: sono.selectcomm.ab.ca adding text to a variable name 51017 by: Jamie Saunders 51020 by: Brandon Orther 51025 by: Brandon Orther 51028 by: Henrik Hansen 51029 by: Gyozo Papp Re: Urgent: PHP4 security (ISP setup) 51024 by: lbergman Problems compiling with PDF support 51026 by: Bill Shupp 51076 by: Yasuo Ohgaki FTP function in php 51031 by: Brandon Orther 51033 by: Henrik Hansen session_destroy() 51034 by: Nick 51035 by: Johnson, Kirk 51036 by: Henrik Hansen What's wrong? 51037 by: Rafael Faria 51038 by: Kath Quoting an unknown string for database insert 51039 by: Joseph Tate 51045 by: CC Zona Re: Netscape 4.0 "Double Loads" my Page 51040 by: Karl J. Stubsjoen zlib.output_compression - how to turn it on 51041 by: Robert Mena 51074 by: Yasuo Ohgaki PHP.ini 51042 by: Chris Anderson 51046 by: Johnson, Kirk mod_php with Apache 2.0.16 beta? 51043 by: Willis L. Sarka 51069 by: Yasuo Ohgaki reverse array for mysql data 51044 by: ktb 51051 by: Gyozo Papp 51057 by: Alok K. Dhir Emanuel virus 51047 by: Miles Thompson This is driving me to drink... 51048 by: Richard S. Crawford 51049 by: Jack Dempsey 51050 by: Johnson, Kirk 51052 by: Richard S. Crawford 51053 by: Ralph Guzman http_post_files not returning file type 51054 by: Tomasz Abramowicz date list 51058 by: Jon Rosenberg 51059 by: Chris Fry 51060 by: Tomasz Abramowicz 51064 by: Chris Fry re : date list 51061 by: Jon Rosenberg Hosts. 51062 by: David Bruce 51065 by: Chris Schneck Edit a file from a PHP form 51066 by: Allen May IMAGE 51067 by: Rafael Faria a bit off the list but.... 51068 by: Jacky 51071 by: Jack Dempsey 51072 by: Pierre-Yves Lemaire 51075 by: Jacky How to compile PDFLIB in FreeBSD 4.3 51073 by: Ivan Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
> -----Original Message----- > From: John Monfort [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 30, 2001 5:08 PM > To: Mark Roedel > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Best Practice-HTML In Database > > > Yes, I will need to provide searching capabilities. > > Basically, I'm creating an online referencing system with a > db backend. A user will be able to search for a manual, > and/or browse to a particular section of the manual. > > It's similar to the online PHP manual...at least, in concept. > > > So, in the long run, which will be more beneficial: > 1) HTML code inside the db fields? > or > 2) HTML URL inside the field? Well, I know I'm going against most of the rest of the responses you've gotten, but if you think you're going to need to do databasey things with the material, it makes sense to me to put it in a database. Having said that, I do agree with a lot of what the other posters have said regarding things like the impact on ease of maintenance, waste of storage space, etc. If it were me, I think I'd be looking for a way to only store the actual text in the database, with some PHP scripting to apply whatever formatting/template is needed to generate the page you want to present. --- Mark Roedel ([EMAIL PROTECTED]) || "There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full." LeTourneau University || -- Henry Kissinger
can you guys give me some good things to put into my .htaccess file for my highest directory in a PHP/MySQL/Apache project?
The 'security' angle is the only one I consider terribly valid, an was what I had in mind when I said I can't think of too many reasons why a packaged' template' solution is in order. Obviously it is for you. I still believe that in most cases it doesn't make much sense to use one, for most people, because it's limiting you to a subset of a powerful language, and the implementation can be slower. Smarty is on the right track by compiling the templates to PHP and cacheing them. What I'd *love* to see is a template system which is portable between various platforms (JSP, CF, PHP, Perl, VBScript). That would, imo, make it worhtwhile for people to learn *one* templating system that would be cross-platform. On Tue, 1 May 2001, Christian Reiniger wrote: > On Monday 30 April 2001 21:02, Steven Haryanto wrote: > > At 5/1/2001 01:43 AM, Michael Kimsal wrote: > > >I understand completely what you're getting at already, but PHP is > > >designed to do what you're asking to do. > > > > > >I know there are valid reaons for stripped down implementations, but > > > can't think of too many. > > > > Clean separation of content and presentation? That is one strong > > point (for some people anyway). > > Well, whether you write > <p>Hello <?= $User ?>, how are you?</p> > or > <p>Hello {{ USER }}, how are you?</p> > > doesn't really matter I'd say. > > > Ease of use? I want to let *other people* customize the web page to > > some extent, but surely do not want to require them to learn PHP. > > Also in this regard. > > -- > Christian Reiniger > LGDC Webmaster (http://sunsite.dk/lgdc/) > > CPU not found. retry, abort, ignore? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Nope, it doesn't support nested loops (or dynamic blocks, as it's called now). But PHPLib templates supports this. PHPlib covers a lot of other stuff as well, but I haven't bothered to take a look at that yet, as Fasttemplate is good enough for my use ;-) http://phplib.netuse.de is their URL. Regards, ---------- Henning Kilset Pedersen Anarchy Online Server Operations Oracle, PHP, e-Commerce etc. Funcom Oslo AS phone + 47 22 92 58 40 cell + 47 91 66 40 30 email [EMAIL PROTECTED] -----Original Message----- From: Steven Haryanto [mailto:[EMAIL PROTECTED]] Sent: 1. mai 2001 17:50 To: Henning Kilset Pedersen; 'Fabian Raygosa'; [EMAIL PROTECTED] Subject: RE: [PHP] template solutions? Cool. I didn't know that. Does FastTemplate support nested loop and ifs? Steve At 5/1/2001 10:33 PM, Henning Kilset Pedersen wrote: >Fasttemplate supports loops and if's. > >You set a dynamic block like so: > ><!-- BEGIN DYNAMIC BLOCK : rowset --> ><TR> > {ROWCONTENT} ></TR> ><!-- END DYNAMIC BLOCK : rowset --> > >And then in the PHP code that parses this html template (.tpl, for example) >file, you do a $tpl->assign (.ROWCONTENT, "rowdata"); > >and loop over that. the .ROWCONTENT means that you're ADDING data to a >variable that already exists. Replace "rowdata" with the data for the row in >question. > >Isn't this what you want??
Fasttemplate supports loops and if's. You set a dynamic block like so: <!-- BEGIN DYNAMIC BLOCK : rowset --> <TR> {ROWCONTENT} </TR> <!-- END DYNAMIC BLOCK : rowset --> And then in the PHP code that parses this html template (.tpl, for example) file, you do a $tpl->assign (.ROWCONTENT, "rowdata"); and loop over that. the .ROWCONTENT means that you're ADDING data to a variable that already exists. Replace "rowdata" with the data for the row in question. Isn't this what you want?? Regards, ---------- Henning Kilset Pedersen Anarchy Online Server Operations Oracle, PHP, e-Commerce etc. Funcom Oslo AS -----Original Message----- From: Steven Haryanto [mailto:[EMAIL PROTECTED]] Sent: 30. april 2001 21:09 To: Fabian Raygosa; [EMAIL PROTECTED] Subject: Re: [PHP] template solutions? At 5/1/2001 01:43 AM, Fabian Raygosa wrote: >Maybe this is what you are looking for >http://www.thewebmasters.net/php/FastTemplate.phtml Nope. I was looking for a template that supports loops and IFs. Someone pointed me to php dreamtime: http://www.phptemplates.org/ which is a cool project, by the way. Btw, I think I might need some extra "tags" to my template "language" so I'm going to hack this on by myself at the time being. Thanks, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Cool. I didn't know that. Does FastTemplate support nested loop and ifs? Steve At 5/1/2001 10:33 PM, Henning Kilset Pedersen wrote: >Fasttemplate supports loops and if's. > >You set a dynamic block like so: > ><!-- BEGIN DYNAMIC BLOCK : rowset --> ><TR> > {ROWCONTENT} ></TR> ><!-- END DYNAMIC BLOCK : rowset --> > >And then in the PHP code that parses this html template (.tpl, for example) >file, you do a $tpl->assign (.ROWCONTENT, "rowdata"); > >and loop over that. the .ROWCONTENT means that you're ADDING data to a >variable that already exists. Replace "rowdata" with the data for the row in >question. > >Isn't this what you want??
At 5/1/2001 06:49 PM, Michael Kimsal wrote: >The 'security' angle is the only one I consider terribly valid, an was >what I had in mind when I said I can't think of too many reasons why a >packaged' template' solution is in order. Obviously it is for you. > >I still believe that in most cases it doesn't make much sense to use one, >for most people, because it's limiting you to a subset of a powerful >language, and the implementation can be slower. Smarty is on the right >track by compiling the templates to PHP and cacheing them. > >What I'd *love* to see is a template system which is portable between >various platforms (JSP, CF, PHP, Perl, VBScript). That would, imo, make >it worhtwhile for people to learn *one* templating system that would be >cross-platform. That is where a template system like HTML::Template excels, actually. It is very simple to implement it in Perl, PHP, Tcl, etc etc. Steve
On Mon, Apr 30, 2001 at 02:06:50PM +0100, Matthew Ralston wrote: > Is there a nice easy function that could be used to get a sub string that > lies in between two other sub strings in one big string. > > For example... get the text that lies in between "<title>" and "</title>" > (without the quotes) in the code of a web page. > > I'm after a function like: > > string getstring_between_customdelimiters(string source, string > open_delimiter, sting close_delimiter) Regular Expressions are you friends http://www.php.net/manual/en/ref.regex.php <?php $string="whawha <Title>blabla blabla </TITLE> yada"; eregi("<title>(.*)</title>",$string,$result); echo "Before:\"$string\", after \"$result[1]\""; ?> -- Daniel Tryba
I'm wondering if anyone has experience using CURL and could advise if it's the best direction for creating a SSL to a payment processing service. I'm trying to connect an existing PHP form to a payment processing service called Authorize.net. Using there direct response method requires a Secure Socket which a thought meant to send from a secure form to their secure script which didn't work. Here's what I got from their tech support. "The problem is that you can't send an HTML form POST when using Direct Response. You must write a script that creates an SSL connection directly with our server (port 443) and send the information to us through that connection. I do not know if this is possible through PHP but usually this is done with PERL, CGI, or ColdFusion. Please refer to the Developer's guide for more information: https://secure.authorize.net/docs Thank you for contacting our customer service group." I found some info about CURL, http://curl.haxx.se/, and it seems like it might do the trick. I was wondering if anyone has experience with this a can confirm that this is the best approach or give me some other direction. Thanks, Tom >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTECTED] http://www.orbittechservices.com/ >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
Hi Tom Yep, php_curl is the way to go. I have used exactly the same method to connect to WorldPay. Check out php_curl on php.net. Cheers Peter "Tom Beidler" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm wondering if anyone has experience using CURL and could advise if it's > the best direction for creating a SSL to a payment processing service. > > I'm trying to connect an existing PHP form to a payment processing service > called Authorize.net. Using there direct response method requires a Secure > Socket which a thought meant to send from a secure form to their secure > script which didn't work. Here's what I got from their tech support. > > "The problem is that you can't send an HTML form POST when using Direct > Response. You must write a script that creates an SSL connection directly > with our server (port 443) and send the information to us through that > connection. I do not know if this is possible through PHP but usually this > is done with PERL, CGI, or ColdFusion. Please refer to the Developer's guide > for more information: > > https://secure.authorize.net/docs > > Thank you for contacting our customer service group." > > I found some info about CURL, http://curl.haxx.se/, and it seems like it > might do the trick. I was wondering if anyone has experience with this a can > confirm that this is the best approach or give me some other direction. > > Thanks, > Tom > > >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> > Tom Beidler > Orbit Tech Services > 805.682.8972 (phone) > 805.682.5833 (fax) > [EMAIL PROTECTED] > http://www.orbittechservices.com/ > >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Apologies if this went through twice. The original got bounced back. I'm wondering if anyone has experience using CURL and could advise if it's the best direction for creating a SSL to a payment processing service. I'm trying to connect an existing PHP form to a payment processing service called Authorize.net. Using there direct response method requires a Secure Socket which a thought meant to send from a secure form to their secure script which didn't work. Here's what I got from their tech support. "The problem is that you can't send an HTML form POST when using Direct Response. You must write a script that creates an SSL connection directly with our server (port 443) and send the information to us through that connection. I do not know if this is possible through PHP but usually this is done with PERL, CGI, or ColdFusion. Please refer to the Developer's guide for more information: https://secure.authorize.net/docs Thank you for contacting our customer service group." I found some info about CURL, http://curl.haxx.se/, and it seems like it might do the trick. I was wondering if anyone has experience with this a can confirm that this is the best approach or give me some other direction. Thanks, Tom >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>> Tom Beidler Orbit Tech Services 805.682.8972 (phone) 805.682.5833 (fax) [EMAIL PROTECTED] http://www.orbittechservices.com/ >>.>>.>>>.>>>>>.>>>>>>>>>.>>>>>>>>
I was doing this a while back with Authorize.net and using cURL with PHP let me ditch the C CGI I had been using to accomplish this. Not quite as clear-cut a solution as something like the PayFlow extension, but it's quite doable. Main gotcha is having to compile cURL against the same SSL libs as were linked into the webserver (Stronghold in this case) if you're not using PHP as a CGI. Tom Beidler wrote: > > I'm wondering if anyone has experience using CURL and could advise if it's > the best direction for creating a SSL to a payment processing service. > > I'm trying to connect an existing PHP form to a payment processing service > called Authorize.net. Using there direct response method requires a Secure > Socket which a thought meant to send from a secure form to their secure > script which didn't work. Here's what I got from their tech support. > > "The problem is that you can't send an HTML form POST when using Direct > Response. You must write a script that creates an SSL connection directly > with our server (port 443) and send the information to us through that > connection. I do not know if this is possible through PHP but usually this > is done with PERL, CGI, or ColdFusion. Please refer to the Developer's guide > for more information: > > https://secure.authorize.net/docs > > Thank you for contacting our customer service group." > > I found some info about CURL, http://curl.haxx.se/, and it seems like it > might do the trick. I was wondering if anyone has experience with this a can > confirm that this is the best approach or give me some other direction. > > Thanks, > Tom -- - Kelly Cochran <[EMAIL PROTECTED]> Technical Staff - funschool.com Corporation
If you want to do it correctly it is much more difficult to calculate the TZ than you think. The problem is that different time zones shift to daylight savings at different times and some do not shift at all. Therefore simply adding the offset will work for a while and then you will get problems in places like Arizona and parts of Indiana and you will shift to daylight savings time a full week after your European users. The way I did this was to parse the time zone data available at ftp://elsie.nci.nih.gov/pub/ and store it in a database. I then built some functions that would calculate the correct offset depending on the date (and time) passed in and another function that would apply the offset. They have some tools to do this in C and perl but I don't speak either of them so I did it myself (unfortunately for you I didn't use PHP either because the project I did this for is written in Progress 4GL.) At an application level I determined that it is easier to convert everything done on the server to GMT and store that and then to convert from GMT to the user's local time zone for display. It becomes much easier to calculate the offset because GMT never shifts to daylight savings plus you only take a small performance hit every time instead of the double conversion hit on display which may become significant for something like a report. It took about a weekend of work to set this up and then a couple of hours here and there to tweak it so there is some significant work involved but it is worth it. BTW: Based on the look and feel of worldtimeserver.com (and many others like this) I would say that they are using the perl version of this data. Also: For some reason I am unable to bring up the FTP server I referenced above. I was there the other day to get fresh data so I know it is still valid. Try again later if you can't get to it. Zane Appel On Mon, 30 Apr 2001 14:24:20 -0500, Joe Stump <[EMAIL PROTECTED]> wrote: >Thanks to everyone who sent in the info. The problem is as follows: > >1.) the mktime()'s are stored as PST in the DB. >2.) we have users ALL OVER the world - is there a place to find all of the > timezones at? > >--Joe > >On Mon, Apr 30, 2001 at 12:11:55PM -0700, Mark Maggelet wrote: >> On Mon, 30 Apr 2001 13:56:20 -0500, Joe Stump ([EMAIL PROTECTED]) >> wrote: >> >I have a quick question regarding timezones ... >> > >> >On the local side a record is inserted into the DB by someone in >> >Michigan, while >> >the server rests in CA. Thus a three hour difference. The local >> >mktime() will >> >create a timestamp for say 9:00am when in reality it was entered at >> >12:00noon >> >in MI. I have 2 character timezones for all my users so it should be >> >easy to >> >convert the two. >> >> you could use gmmktime() instead and add or subtract the offset. >> >> $offsets=array(" >> "PST"=>1000, // not actual values >> "EST"=>-2000, >> "); >> >> $localtime=gmmktime()+$offsets[$timezone]; >> >> >putenv() won't work because of the fact that the timestamp created >> >will be >> >9:00 no matter what timezone you put it in. So what needs to be done >> >is some >> >recognition that 10800 seconds needs to be added to adjust the PST >> >timestamp >> >to an EST timestamp. Are there any functions out ther that do this? >> > >> >--Joe >> > >> >Joe Stump <[EMAIL PROTECTED]> >> >--------------------------------------------------------------------- >> >> >--- >> >One is taught by experience to put a premium on those >> >few people who can appreciate you for what you are. >> > >> > >> >-- >> >PHP General Mailing List (http://www.php.net/) >> >To unsubscribe, e-mail: [EMAIL PROTECTED] >> >For additional commands, e-mail: [EMAIL PROTECTED] >> >To contact the list administrators, e-mail: php-list- >> >[EMAIL PROTECTED] >> > >Joe Stump <[EMAIL PROTECTED]> >------------------------------------------------------------------------ >Dyslexics of the world
Michael Geier CDM Sports Systems Administration EMail: [EMAIL PROTECTED] Phone: 314.991.1511 x 6505
On Sun, Apr 29, 2001 at 01:03:15AM +0200, Mogens Nielsen wrote: > Now the problem: If I post a message with a line of text, a newline (as in > hitting the return-key), some more text and newlines, these > newline-separated text-lines show before the posting itself after reversing > because they are independent elements in the array..... > How can I fix this???? The short answer is use a database. The long answer is to write your function to reverse the array. You could have the original array passed to the function and your function return a reversed one. In your function, you would have to do some checking. If the index is a new entry into your guestbook, then create a new index in the new array. If not, just prepend the text to the last index of the array. I'm imaging that your text file is delimited by something. You may want to explode each line so you can tell if it belongs together or not. -- Jason Stechschulte [EMAIL PROTECTED] -- double value; /* or your money back! */ short changed; /* so triple your money back! */ -- Larry Wall in cons.c from the perl source code
I would like opinions on a security question. A co-worker suggested we rename our application files to some extension other than .php (for example, .htm). The reasoning being that the .php extension tells a cracker that we are using PHP, and not ASP, or ColdFusion, etc. The cracker can focus immediately on vulnerabilities of PHP. So, is there something to be gained by masking our server setup by changing our filename extension? TIA Kirk
Not really, I mean it may deter a very novice hacker. But, if the people want in, they can very easily find out what server and server software you are running. For example, goto www.netcraft.com and click on 'What's that site running?' and put in your www.domain.com address. It will tell ou everything about the server, even uptime. So, if they want to know, they can find out, file extensions just make it a bit easier... ----- Original Message ----- From: "Johnson, Kirk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 01, 2001 12:08 PM Subject: [PHP] Your opinion on security issue: file extension > I would like opinions on a security question. > > A co-worker suggested we rename our application files to some extension > other than .php (for example, .htm). The reasoning being that the .php > extension tells a cracker that we are using PHP, and not ASP, or ColdFusion, > etc. The cracker can focus immediately on vulnerabilities of PHP. > > So, is there something to be gained by masking our server setup by changing > our filename extension? > > TIA > > Kirk > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
On Sat, Apr 28, 2001 at 05:58:45PM -0500, Siamak Amirghodsi wrote: > When I upload a file with php 4 and apache using the > call move_upload_file(-----,-----); > > the file gets uploaded, but the file ( which is just a text file ) at > the server side contains > some extra lines at the top : > Content-Type: text/plain > blankline > blankline > > Does anybody know how to suppress this? > This also happens with images! Sorry if this is wrong info Rasmus, but I was told this is a bug in some version(s) of apache. Someone I know ran into this probelem and said he found it was a bug, so he upgraded apache, reinstalled php and everything works fine. -- Jason Stechschulte [EMAIL PROTECTED] -- Almost nothing in Perl serves a single purpose. -- Larry Wall in <[EMAIL PROTECTED]>
What I always do would probably fill both needs. My filenames usually look like this: URL Files - can be accessed directly through the browser ---------------------------------------- filename.php -> Normal PHP files Non-URL Files - are hidden from the browser either by means of .htaccess or by being moved outside of the root web directory ---------------------------------------- filename.inc.php -> PHP Include files (these are all files containing content to be included in Normal files) filename.class.php -> PHP Class files (these are my class files) filename.lib.php -> PHP Library files (these are function libraries) This allows PHPDoc to pick up the correct files as well as prevents people from viewing the source code of my files. The only files that print content directly to STDOUT are filename.php and filename.inc.php. The other two file extensions, filename.class.php and filename.lib.php, only contain functions, classes, variable declarations, etc. --Toby ----- Original Message ----- From: "Johnson, Kirk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 30, 2001 6:22 PM Subject: RE: [PHP] Please review our coding standards [ ideas ] > Steve, I am wondering what your reason is for item 4.2. Security, or > otherwise? Personally, I like having various file extensions, for sorting > files by content type. > > Thanks for putting this up here. > > Kirk > > > -----Original Message----- > > From: Steven Haryanto [mailto:[EMAIL PROTECTED]] > > Subject: [PHP] Please review our coding standards [ ideas ] > > > 4. File organization > > -------------------- > > > 4.2 All PHP libraries and include files, is named with '.php' > > extension (ie. > > no '.lib', '.inc', etc.). Test scripts is named with > > '.phpt' extension. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
$PHP_AUTH_USER="" ought to do it. > From: Jochen Kaechelin [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 01, 2001 4:30 AM > Is it possible to unset $PHP_AUTH_USER and $PHP_AUTH_PW after > a successfull '.htaccess-login'?
Hello to all: I installed mySQL in my PC running Win98, PHP and PWS..I ran an example and all Ok!!! But I have not still been able to run MS SQL'S example, I didn't understand very well that I should make..in spite of the help that friends of the list have offered me. Thanks again !!! -- M. Sc. Hassan Arteaga Rodríguez Microsoft Certified System Engineer Network Admin, WEB Programmer FUNDYCS, Ltd [EMAIL PROTECTED]
Hi there, I would like to unsubscribe from the phplist and it doesn't work. How do I do that? I already sended a mail to unsubscribe. Any sugestions? Andy
>I downloaded the distribution from www.php.net, so it's from the same >distribution but it doesn't work. What should I do? Try again with 4.0.5 when once the binary zip appears on the downloads page. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
On Mon, Apr 30, 2001 at 10:16:13AM -0700, Kasten, Holger wrote: > I have a strange problem. > I tried ereg_rplace and str_replace: > > $to_test = 'This is a test'; > $to_test = str_replace ("test","little test",$to_test); > echo $to_test; > > the result is: "This is a \little test" > Why does this happen? I have no idea. I copied your code and it works as expected. "This is a little test" is printed out. -- Jason Stechschulte [EMAIL PROTECTED] -- : - cut in regexps I don't think we reached consensus on that. We're still backtracking... -- Larry Wall in <[EMAIL PROTECTED]>
Below is the (very) simple form that I'm using to allow users to upload files to my site: ----------------------- <html> <head> <title>Upload Attachment</title> </head> <body > <br> <center> <h3>Upload File</h3> You are uploading from an unsecure server.<br> <FORM ENCTYPE="multipart/form-data" ACTION="/upload.php" METHOD=POST name="uploadForm"> <table border=0 width="65%"> <td colspan="4" align="center"> <input type="file" name="uploadfile" size="50"> </td></tr> <td><br></td></tr> <th align="center" valign="center"> <input type="submit" name="submit" value="Send This File" onClick="document.uploadForm.upload_file_name.value = document.uploadForm.uploadfile.value"> </th></tr> </table> </center> <input type="hidden" name="upload_file_name" value=""> <input type="hidden" name="site_key" value="d3d3LmNhcmliYmVhbnByZXN0aWdlLmNvbQ=="> <input type="hidden" name="host_key" value="cGFudGhlci53aWxkLm5ldA=="> <input type="hidden" name="db_key" value="Y2FyaWJiZWFucHJlc3RpZ2U="> <input type="hidden" name="https_key" value="MA=="> <input type="hidden" name="reg_file" value="d3d3LmNhcmliYmVhbnByZXN0aWdlLmNvbS9pbnRlcmFjdGl2ZS9sb2dpbi91cGxvYWRfZ mlsZXMvcmVnaXN0ZXJfdXBsb2FkX2ZpbGUucGhw"> </form> <br><br> <center><a href="" onclick="window.close(); return false;">Close Window</a></center> <br><br> </body> </html> ----------------------- The problem that I'm experiencing using the above form is that when some users (and the problem is consistent for those users) submit the above form, *none* of the POST variables are getting passed to the receiving page. None of the hidden variables, not the "input type = file" variable, _nothing_. However, the majority of my users have absolutely no problem using this form. Just those very few. Now, when I change this line: <FORM ENCTYPE="multipart/form-data" ACTION="/upload.php" METHOD=POST name="uploadForm"> to this: <FORM ACTION="/upload.php" METHOD=POST name="uploadForm"> (ie, remove the ENCTYPE="multipart/form-data"), all of the POST data gets sent to the receiving page for those users. What is going on? Why is the POST data not getting sent to the server when the ENCTYPE="multipart/form-data" is included in the form definition? And why only for a very small subset of users? Thanks for any insight you can give! Chris
> The problem that I'm experiencing using the above form is that when > some users (and the problem is consistent for those users) submit the > above form, *none* of the POST variables are getting passed to the > receiving page. None of the hidden variables, not the "input > type = file" variable, _nothing_. However, the majority of my users > have absolutely no problem using this form. Just those very few. > Now, when I change this line: > <FORM ENCTYPE="multipart/form-data" ACTION="/upload.php" > METHOD=POST name="uploadForm"> > to this: > <FORM ACTION="/upload.php" METHOD=POST name="uploadForm"> > (ie, remove the ENCTYPE="multipart/form-data"), > all of the POST data gets sent to the receiving page for those users. > What is going on? Why is the POST data not getting sent to the server > when the ENCTYPE="multipart/form-data" is included in the form > definition? And why only for a very small subset of users? > Thanks for any insight you can give! Another thing of note: These same users that are having problems with my file upload form are not having problems with Yahoo!'s email attachment form (a file upload form as well). So I copied all the same HTML code from that form and put it on my site to test. The only thing I changed was the ACTION field and I modified their "Done" button to be a submit button. When they submitted that form, the POST vars didn't come through either. The only thing I can think of is that there is an issue with our Apache or, more likely, our PHP configuration. However, I'm not sure of where to even start looking. Again, any help would be greatly appreciated! Chris
> > Again, any help would be greatly appreciated! > could be a browser specific issue. have you checked into the > possibility that people having problems are all using the same > browser? I don't know what all of them are using, but most are using IE. I don't know how feasable it would be to get them to all change browsers, especially when they are not having this problem on other sites (Yahoo, for example). The problem is originating from my server. There is some combination of the ENCTYPE of the form and some setting on our server that is causing the POST vars not to get sent. Chris
Hi all, I got php_4.0.2 build went smooth on my Solaris8/SPARC. It required a few GNU utilities that i got ready made from sunfreeware.com. It is hosting most of the binaries of GNU utilities for Solaris. Thus time saving and cleaner install using solaris packages avilable there. If you want to be at bleeding edge of technology and don't like a few weeks old utility ( not always ) gnu.org is there! or if enjoy building;) a) download from www.sunfreeware.com b) mv <pkgname> <pkgname>.gz ( sometimes the file is not saved with .gz as it is shown on the web page ) c) gunzip <pkgname>.gz will get you <pkgname> as a Solaris package here d) pkgadd -d ./<pkgname> ( you need to be su to do this ) e) add /usr/local/bin to your path if it is not there followings were required: GNU m4 GNU autoconf GNU automake GNU bison ( replacement of yacc ) GNU flex ( replcaement of lex ) In the rush I also installed( and not sure if they were required): GNU libtool GNU gawk All the GNU software went to /usr/local/ so there were no conflicts with normal Solaris software. I got gcc also but it was not must required as requiement was just for an ANSI C compiler. It compiled with /usr/dist/share/devpro,v4.0/5.x/SC4.0/bin/cc though gcc is recommended. I was earlier getting error for compiling source for m4 and autoconf that I earlier got from gnu.org even with gcc as compiler ( due to me being new to these things, Ofcourse!! ) but quiting it here only as am happy with ready made m4 and autoconf. Thanks all for your support. Cheers! - Surinder Check out the FREE cell phone packages complete with accessories at Lycos Wireless Marketplace http://www.inphonic.lycos.com/redirect.asp?referringpage=www.lycosad129
phpBarGraph is a bargraphing class for PHP. It allows one to have an arbitrary number of bargraphs. phpBarGraph scales the bars to fit the area you set. It is possible to cycle through colors for each bar. Each bar can be its own color or they can all be the same color. Multiple bar graphs can be placed on one image and the inter-bar spacing is configurable. URL: http://phpclasses.upperdesign.com/browse.html/package/181 -----Original Message----- From: Mike Mike [mailto:[EMAIL PROTECTED]] Sent: Monday, April 30, 2001 10:39 AM To: [EMAIL PROTECTED] Subject: [PHP] Creating Graphs Hello, I was wonder if anyone knows of a place where I can get a good tutorial about making graphs for beginners using php. If so please let me know. Thank you --Mike __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi, What are benefits and losses of having a PHP module for apache instead of of a C module if PHP modules are without xml and mysql support. Opinions! - Surinder Get 250 color business cards for FREE! http://businesscards.lycos.com/vp/fastpath/
On Sat, Apr 28, 2001 at 07:12:15PM +0100, Robert Morrissey wrote: > I have a form on one page with a text box called 'emailtext'. This gets > passed to a php script that gets info from a database (such as $name, > $email, etc) and mails selected email addresses; my problem is this: > > Say, the form passes $emailtext as "Hello $name, how're you?", and this is > passed to mail() in the php form, rather than emailing "Hello Bob, how're > you?" it prints "$name" literally. > > Seeing as $name isn't pulled from the database till the php script is it > possible to get it to print the value? or do I have to pull $name from the > database in the original form? (which'll is going to be a lot more > complicated). > > Does this make sense? No, not really. What is the value of $name when the form passes $emailtext? That is the value that will be in $name. If it is actually printing $name and not an empty string, then the '$' must be getting escaped somewhere along the line, or you are using ' instead of " around the variable. http://www.php.net/manual/en/function.echo.php -- Jason Stechschulte [EMAIL PROTECTED] -- I'll say it again for the logic impaired. -- Larry Wall
Hi all !!! I need URL to download some visual tool to create Databases, tables, etc..for mySQL Thanks !!!! -- M. Sc. Hassan Arteaga Rodríguez Microsoft Certified System Engineer Network Admin, WEB Programmer FUNDYCS, Ltd [EMAIL PROTECTED]
http://www.scibit.com Mascon - it's great for MySQL, but doesn't support any other databases. If you want for other DB's as well, use something like Embarcadero ER/Studio at http://www.embarcadero.com - that's horrendously expensive, though. ---------- Henning Kilset Pedersen Anarchy Online Server Operations Oracle, PHP, e-Commerce etc. Funcom Oslo AS -----Original Message----- From: Hassan Arteaga [mailto:[EMAIL PROTECTED]] Sent: 1. mai 2001 19:59 To: Php (E-mail) Subject: [PHP] HELP !!!! Hi all !!! I need URL to download some visual tool to create Databases, tables, etc..for mySQL Thanks !!!! -- M. Sc. Hassan Arteaga Rodríguez Microsoft Certified System Engineer Network Admin, WEB Programmer FUNDYCS, Ltd [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Try this if you are using Windows. http://www.anse.de/mysqlfront/ This is a Windows GUI for MySQL. It is very well done but it still has some issues. I don't think you will have a problem if all you'll be doing is creating tables , databases etc. You can also try installing phpMyAdmin on the server side and working on a web browser. phpMyAdmin is also a very nice tool. There are a lot more interfaces to mysql, but I haven't had a pleasent experience with the others. Oktay -----Original Message----- From: Hassan Arteaga [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 1:59 PM To: Php (E-mail) Subject: [PHP] HELP !!!! Hi all !!! I need URL to download some visual tool to create Databases, tables, etc..for mySQL Thanks !!!! -- M. Sc. Hassan Arteaga Rodríguez Microsoft Certified System Engineer Network Admin, WEB Programmer FUNDYCS, Ltd [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Thanks to Oktay and Henning !!! -- M. Sc. Hassan Arteaga Rodríguez Microsoft Certified System Engineer Network Admin, WEB Programmer FUNDYCS, Ltd [EMAIL PROTECTED] -----Original Message----- From: Altunergil, Oktay [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 3:03 PM To: 'Hassan Arteaga'; Php (E-mail) Subject: RE: [PHP] HELP !!!! Try this if you are using Windows. http://www.anse.de/mysqlfront/ This is a Windows GUI for MySQL. It is very well done but it still has some issues. I don't think you will have a problem if all you'll be doing is creating tables , databases etc. You can also try installing phpMyAdmin on the server side and working on a web browser. phpMyAdmin is also a very nice tool. There are a lot more interfaces to mysql, but I haven't had a pleasent experience with the others. Oktay -----Original Message----- From: Hassan Arteaga [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 1:59 PM To: Php (E-mail) Subject: [PHP] HELP !!!! Hi all !!! I need URL to download some visual tool to create Databases, tables, etc..for mySQL Thanks !!!! -- M. Sc. Hassan Arteaga Rodríguez Microsoft Certified System Engineer Network Admin, WEB Programmer FUNDYCS, Ltd [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Try phpMyAdmin Chris Hassan Arteaga wrote: > Hi all !!! > > I need URL to download some visual tool to create Databases, tables, > etc..for mySQL > > Thanks !!!! > > -- > M. Sc. Hassan Arteaga Rodríguez > Microsoft Certified System Engineer > Network Admin, WEB Programmer > FUNDYCS, Ltd > [EMAIL PROTECTED] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ********************************************************************** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed.
(www.phpwizard.net) > Try phpMyAdmin > > Chris > > Hassan Arteaga wrote: > > > Hi all !!! > > > > I need URL to download some visual tool to create Databases, tables, > > etc..for mySQL > > > > Thanks !!!! > > > > -- > > M. Sc. Hassan Arteaga Rodríguez > > Microsoft Certified System Engineer > > Network Admin, WEB Programmer > > FUNDYCS, Ltd > > [EMAIL PROTECTED] > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > Chris Fry > Quillsoft Pty Ltd > Specialists in Secure Internet Services and E-Commerce Solutions > 10 Gray Street > Kogarah > NSW 2217 > Australia > > Phone: +61 2 9553 1691 > Fax: +61 2 9553 1692 > Mobile: 0419 414 323 > eMail: [EMAIL PROTECTED] > http://www.quillsoft.com.au > > You can download our Public CA Certificate from:- > https://ca.secureanywhere.com/htdocs/cacert.crt > > ********************************************************************** > > This information contains confidential information intended only for > the use of the authorised recipient. If you are not an authorised > recipient of this e-mail, please contact Quillsoft Pty Ltd by return > e-mail. > In this case, you should not read, print, re-transmit, store or act > in reliance on this e-mail or any attachments, and should destroy all > copies of them. > This e-mail and any attachments may also contain copyright material > belonging to Quillsoft Pty Ltd. > The views expressed in this e-mail or attachments are the views of > the author and not the views of Quillsoft Pty Ltd. > You should only deal with the material contained in this e-mail if > you are authorised to do so. > > This notice should not be removed. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hi, is there a PHP class/library available anywhere, that supports dynamic creation of different graphs? I need 2D bar graph and pie graph support. i found the VH Graph (http://www.vhconsultants.com/graph/graph.htm), but they want $100 for their 2.x version. i'd prefer a free one (i'm sure there must be a couple floating around) :) Rgds, Tfr --==< [EMAIL PROTECTED] >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==--
> is there a PHP class/library available anywhere, that supports > dynamic creation of different graphs? I need 2D bar graph and > pie graph support. > i found the VH Graph (http://www.vhconsultants.com/graph/graph.htm), > but they want $100 for their 2.x version. i'd prefer a free one > (i'm sure there must be a couple floating around) :) Funny enough, I just got an email from the PHP Classes site about a new class that does that. Try this URL http://phpclasses.upperdesign.com/browse.html/package/226 That might do what you need. Chris
http://www.zend.com --> Resources --> Code Gallery --> Look Around ;-) There's tons of them in there. ---------- Henning Kilset Pedersen Anarchy Online Server Operations Oracle, PHP, e-Commerce etc. Funcom Oslo AS -----Original Message----- From: indrek siitan [mailto:[EMAIL PROTECTED]] Sent: 1. mai 2001 20:08 To: [EMAIL PROTECTED] Subject: [PHP] PHP Graph class/library anywhere? Hi, is there a PHP class/library available anywhere, that supports dynamic creation of different graphs? I need 2D bar graph and pie graph support. i found the VH Graph (http://www.vhconsultants.com/graph/graph.htm), but they want $100 for their 2.x version. i'd prefer a free one (i'm sure there must be a couple floating around) :) Rgds, Tfr --==< [EMAIL PROTECTED] >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
I can't quite get the logic to create my own associative arrays: if: $stuff[0]="165.33.114.63 anonymous Mozilla/4.0" $stuff[1]="213.35.354.93 anonymous Mozilla/4.0" how do I end up with: $stuff[0][user]="165.33.114.63" $stuff[0][browser]="Mozilla/4.0" $stuff[1][user]="213.35.354.93" $stuff[1][browser]="Mozilla/4.0" I am hacking away at: foreach( $stuff as $cFile ) { list ($user, $junk, $browser) = split (' ', $cFile); } and it hurts.....any hints ? TIA, ____________________________ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED]
I can't quite get the logic to create my own associative arrays: if: $stuff[0]="165.33.114.63 anonymous Mozilla/4.0" $stuff[1]="213.35.354.93 anonymous Mozilla/4.0" how do I end up with: $stuff[0][user]="165.33.114.63" $stuff[0][browser]="Mozilla/4.0" $stuff[1][user]="213.35.354.93" $stuff[1][browser]="Mozilla/4.0" what about : $stuff[0] = array('user' => '156.33.114.63', 'browser' => 'Mozilla/4.0'); and so on....
thanks again !!! -- M. Sc. Hassan Arteaga Rodríguez Microsoft Certified System Engineer Network Admin, WEB Programmer FUNDYCS, Ltd [EMAIL PROTECTED]
Going grey haired again. In this code only the first case is working (adding stuff to tables). The second and third are producing - Warning: Supplied argument is not a valid MySQL-Link resource in /chroot/htdocs/diarium/settings.php on line 31 (which is $query_res ..../ms) error: I've even copied and pasted the also clause which works from sendaction to recaction but I get the same result. Anyone sees what going on? I don't. And my deadline is tomorrow (or thursday). M. switch ($sendaction) { case "Lägg till": $query="INSERT INTO employees (login, name)"; $query .= "VALUES('$txtSend', '')"; $query_res =mysql_query($query, $mysql_link) or die('error: ' . mysql_error()); if ($also=="Rec"){ $query="INSERT INTO contacts (id, name)"; $query .= "VALUES('$txtSend', '')"; $query_res =mysql_query($query, $mysql_link) or die('error: ' . mysql_error()); } break; } switch ($recaction) { case "Lägg till": $query="INSERT INTO contacts (id, name)"; $query .= "VALUES('$txtRec', '')"; $query_res =mysql_query($query, $mysql_link) or die('error: ' . mysql_error()); break; } switch ($archaction) { case "Lägg till": $query="INSERT INTO archive (s_name, name) VALUES('$txtArch', '')"; $query_res =mysql_query($query, $mysql_link) or die('error: ' . mysql_error()); break; }
Hej, jag hade nog inte använt åäö i case men det är bara en vana, kanske du kan använda en dold variabel via html-formuläret istället och använda den i case satsen? Men det svarar ju inte på din fråga men lycka till. / iImmy Martin Skjöldebrand wrote: > Going grey haired again. In this code only the first case is working > (adding stuff to tables). The second and third are producing - Warning: > Supplied argument is not a valid MySQL-Link resource in > /chroot/htdocs/diarium/settings.php on line 31 (which is $query_res ..../ms) > error: > > I've even copied and pasted the also clause which works from sendaction to > recaction but I get the same result. Anyone sees what going on? I don't. > And my deadline is tomorrow (or thursday). > > M. > > switch ($sendaction) { > case "Lägg till": > > $query="INSERT INTO employees (login, name)"; > $query .= "VALUES('$txtSend', '')"; > $query_res =mysql_query($query, $mysql_link) or die('error: >' . > mysql_error()); > if ($also=="Rec"){ > $query="INSERT INTO contacts (id, name)"; > $query .= "VALUES('$txtSend', '')"; > $query_res =mysql_query($query, $mysql_link) or >die('error: ' . > mysql_error()); > } > break; > } > > switch ($recaction) { > case "Lägg till": > $query="INSERT INTO contacts (id, name)"; > $query .= "VALUES('$txtRec', '')"; > $query_res =mysql_query($query, $mysql_link) or die('error: >' . > mysql_error()); > break; > } > > switch ($archaction) { > case "Lägg till": > $query="INSERT INTO archive (s_name, name) VALUES('$txtArch', '')"; > $query_res =mysql_query($query, $mysql_link) or die('error: >' . > mysql_error()); > > > break; > } > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
I was actually interested in the answer to this. I believe one can write in English if one can read English. (PS: It's not my first language either) oktay -----Original Message----- From: Jimmy Lantz [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 3:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Going crazy again ... Hej, jag hade nog inte använt åäö i case men det är bara en vana, kanske du kan använda en dold variabel via html-formuläret istället och använda den i case satsen? Men det svarar ju inte på din fråga men lycka till. / iImmy Martin Skjöldebrand wrote: > Going grey haired again. In this code only the first case is working > (adding stuff to tables). The second and third are producing - Warning: > Supplied argument is not a valid MySQL-Link resource in > /chroot/htdocs/diarium/settings.php on line 31 (which is $query_res ..../ms) > error: > > I've even copied and pasted the also clause which works from sendaction to > recaction but I get the same result. Anyone sees what going on? I don't. > And my deadline is tomorrow (or thursday). > > M. > > switch ($sendaction) { > case "Lägg till": > > $query="INSERT INTO employees (login, name)"; > $query .= "VALUES('$txtSend', '')"; > $query_res =mysql_query($query, $mysql_link) or die('error: ' . > mysql_error()); > if ($also=="Rec"){ > $query="INSERT INTO contacts (id, name)"; > $query .= "VALUES('$txtSend', '')"; > $query_res =mysql_query($query, $mysql_link) or die('error: ' . > mysql_error()); > } > break; > } > > switch ($recaction) { > case "Lägg till": > $query="INSERT INTO contacts (id, name)"; > $query .= "VALUES('$txtRec', '')"; > $query_res =mysql_query($query, $mysql_link) or die('error: ' . > mysql_error()); > break; > } > > switch ($archaction) { > case "Lägg till": > $query="INSERT INTO archive (s_name, name) VALUES('$txtArch', '')"; > $query_res =mysql_query($query, $mysql_link) or die('error: ' . > mysql_error()); > > > break; > } > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Jimmy Lantz wrote: > > Hej, jag hade nog inte använt åäö i case men det är bara en vana, kanske > du kan använda en dold variabel via html-formuläret istället och använda > den i case satsen? Men det svarar ju inte på din fråga men lycka till. > / iImmy Fixat! Problemet låg någon annanstans, vilket jag upptäckte när jag plötsligt fick ett annat fel i scriptet. Ändrade dessutom "Lägg till" till "Skapa" vilket ju inte innehåller våra tecken. Verkade ju funka ändå men för säkerhetesskull så. M.
Altunergil, Oktay wrote: > I was actually interested in the answer to this. I believe one can write > in English if one can read English. (PS: It's not my first language > either) > AS it was my question I'll answer. He said that he was sceptical about using our accented character in code and that that I could use a <input hidden ...> instead of whatever to track the variable. Well, I fixed it eventually - the problem was somewhere else, which I noticed when I got a completely different error message later. 'Twas due to stupidity of the coder rather than the quoted code itself. M. > > Hej, jag hade nog inte använt åäö i case men det är bara en vana, kanske > du kan använda en dold > variabel via html-formuläret istället och använda den i case satsen? > Men det svarar ju inte på din fråga men lycka till. > / iImmy
Hello all! I try to build additional extension modules for PHP4 (4.0.5RC6) on Debian Linux 2.2r3 for connecting to commercial databases like Sybase, Oracle8, and IBM DB/2. But all what I get is a big PHP4 module with all additional interfaces linked in (I use APXS from Apache 1.3.19). Can anybody tell me how to build a separate .so PHP module especially for Sybase-CT (this I need most urgently). If you can give me a pointer to an URL or a FAQ, this would be also fine. Thank you very much. Guenter -- Dipl.-Ing. Guenter Millahn Brandenburg University of Technology Systems, Network & DB Admin CS Dept / DB & IS Research Group Voice: +49 (355) 69-2272/2700 P.O. Box: 10 13 44 Fax: +49 (355) 69-2766 D-03013 Cottbus GERMANY "The real world is still far away from be led ad absurdum by the virtual one." (Hal Faber, newsreel "What happened, what will be", 08/13/2000)
$B!z!z!z!z!z!z!z!!(BJust in Mail $B!z!z!z!z!z!z!z(B $B>pJsDs6!4k6HL>(B : G-Spot.com$B"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!!~"!(B $B:#=5$N$*>)$a%5%$%H$r$*CN$i$;$$$?$7$^$9(B http://sv.g-spot.to/check/mail.html $B!!!!(B $B!#(B $B!z!z!z!z!z!z!z!!(BJust in Mail $B!z!z!z!z!z!z!z(B
Hello, I am trying to make a hit counter graph that will have 7 days to it. Monday thru Friday. I'm having problems getting the last 7 days. For instance today is 05-01-2001 I would like to determan the previous 7 days from that date. In VB Date - 7 = 04-24-2001 I would like this to work for any date using php. Here is what I have so far... $t = (date ("m-d-Y")); echo $t; // output 05-01-2001 echo "<br>"; $r = $t - 7; echo $r; //output -2 but now $r returns -2 How do I get $r to yesterdays date in this format. 04-30-2001 Thank you --Mike __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
> Hello, > For instance today is 05-01-2001 I would like to > determan the previous 7 days from that date. In VB > Date - 7 = 04-24-2001 I would like this to work for > any date using php. > Here is what I have so far... > $t = (date ("m-d-Y")); > echo $t; // output 05-01-2001 > echo "<br>"; > $r = $t - 7; > echo $r; //output -2 > but now $r returns -2 > How do I get $r to yesterdays date in this format. > 04-30-2001 see the php manual: (Function Reference / XV. Date and Time functions) a piece of description & examples about date() function: $tomorrow = mktime (0,0,0,date("m") ,date("d")+1,date("Y")); $lastmonth = mktime (0,0,0,date("m")-1,date("d"), date("Y")); $nextyear = mktime (0,0,0,date("m"), date("d"), date("Y")+1); date() with mktime() is more than perfect. After subtracting date parts with the help of date() you pass them to mktime... and you can deal with its arguments as integers.(see ie: $tomorrow).
Hello PHP'ers I am having a problem with string delimiters. For some reason no matter what I do I can not get them to process correctly!! For example, <? $area_entered = "yes"; $date_entered = "no"; echo "$area_entered\t\t\t$date_entered<br>"; ?> That outputs: yes no What am I doing wrong?! Is there something I need to set in the php.ini file? I would like to be able to type \n instead of <br> repeatidly! Also, when working with cookies, if I have a cookie that is set by, if (!isset($cookies)) { //Set Cookies $cookie_user = setcookie ("username", $row["user"], time()+86400, "/", "localhost"); $cookie_pass = setcookie ("password", $row["pass"], time()+86400, "/", "localhost"); $cookie_step = setcookie ("step", "1", time()+86400, "/", "localhost"); $cookies_set = setcookie ("cookies", "y", time()+86400, "/", "localhost"); } Is there a way to unset the cookie? Perhaps by, $cookie_set = setcookie ("cookies",""); ? Thanks for your time, Nick
> I am having a problem with string delimiters. For some reason > no matter what I do I can not get them to process correctly!! > For example, > > <? > $area_entered = "yes"; > $date_entered = "no"; > echo "$area_entered\t\t\t$date_entered<br>"; > ?> > > That outputs: > yes no > > What am I doing wrong?! The \n and \t control the layout of the source code, but it is still the HTML that determines what the browser renders. Do a View Source when you display the page above, and you will see yes no<br> as the source which outputs yes no Kirk
Hello PHP'ers I am having a problem with string delimiters. For some reason no matter what I do I can not get them to process correctly!! For example, <? $area_entered = "yes"; $date_entered = "no"; echo "$area_entered\t\t\t$date_entered<br>"; ?> That outputs: yes no What am I doing wrong?! Is there something I need to set in the php.ini file? I would like to be able to type \n instead of <br> repeatidly! Do you see this output in a browser window? If you does, then never mind. Browsers are allowed to change the look of your HTML source in a way that replacing multiple whitespaces with a single space (i really don't know they are allowed to...) So it's a HTML stuff. maybe you can nest your output into a <pre></pre>. This tag handles \n \t and other HTML tags also.
Hi Nick, to delete a cookie, simply use set_cookie("cookie_name"); without appending any values. Possible solutions for the \t and \n : For \n to <br>, use: $string = nl2br($string); Not sure whether or not there a similar function for \t, though you could perhaps use some method to replace \t with * 4. I'm not sure something like: $string = ereg_replace("\t", " ", $string); would be too clever, just in case someone typed \t rather than ereg_replace / preg_replace recognising it as a Tab. It's getting too late to do any serious thinking. :) James. ""Nick"" <[EMAIL PROTECTED]> wrote in message 005601c0d275$bfc88510$4c8d7018@cr279859a">news:005601c0d275$bfc88510$4c8d7018@cr279859a... Hello PHP'ers I am having a problem with string delimiters. For some reason no matter what I do I can not get them to process correctly!! For example, <? $area_entered = "yes"; $date_entered = "no"; echo "$area_entered\t\t\t$date_entered<br>"; ?> That outputs: yes no What am I doing wrong?! Is there something I need to set in the php.ini file? I would like to be able to type \n instead of <br> repeatidly! Also, when working with cookies, if I have a cookie that is set by, if (!isset($cookies)) { //Set Cookies $cookie_user = setcookie ("username", $row["user"], time()+86400, "/", "localhost"); $cookie_pass = setcookie ("password", $row["pass"], time()+86400, "/", "localhost"); $cookie_step = setcookie ("step", "1", time()+86400, "/", "localhost"); $cookies_set = setcookie ("cookies", "y", time()+86400, "/", "localhost"); } Is there a way to unset the cookie? Perhaps by, $cookie_set = setcookie ("cookies",""); ? Thanks for your time, Nick
H- Some things to consider. You might want to do a search and replace for any spaces and special characters and replace them with the underscore for all files. This way you won't get the Netscape error messages and it also might be affecting IE. For instance. Provoke - Quick Blast.mp3 would be converted to Provoke___Quick_Blast.mp3 Or just remove white spaces. The reason I mention this is because in your last paragraph you mention using the name in a web link. If it's not encoded correctly (meaning, has whitespace) netscape will choke. Don't know why IE is freaking on the name. Is it being saved correctly in the directory? What is the DB filename? As far as the file itself not playing. Sounds like you're not saving the file out correctly. Might want to check for bin types or some such thing for saving binary files. I know if you don't have the correct header and save out code your images will be screwy. Perhaps it's related. Sorry I can't be more helpful. Well that's all I can think of right now. Hope it helps some or gives a direction. -Sterling Tyler Longren wrote: > > Hello everyone, > > Here's my problem: > I need to be able to upload some info about an mp3 to a database (name, > filename, size, and file_type). I can do this already, and it works just > fine. After the info is added to the database, the mp3 is uploaded to > music/$binFile_name. > > Here's the code I have to put info into the db and upload the file to the > music directory: > $data = addslashes(fread(fopen($binFile, "r"), filesize($binFile))); > $strDescription = addslashes(nl2br($txtDescription)); > $album_sql = mysql_query("SELECT * FROM albums WHERE id = '$album_id' > AND artist_id = '$artist_id'"); > $album = mysql_fetch_object($album_sql); > $sql = "INSERT INTO music > (artist_id, artist, album_id, album_title, track_name, track_number, > mp3_type, description, filename, filesize, filetype) VALUES ('$artist_id', > '$artist', '$album_id', '$album->album_title', '$track_name', > '$track_number', '$mp3_type', '$strDescription', '$binFile_name', > '$binFile_size', '$binFile_type')"; > $result = mysql_query($sql, $db); > mysql_free_result($result); > $len = strlen($data); > if ($fp = fopen("../../music/$binFile_name", "wb")) { > if ($size = fwrite($fp, $data, $len)) { > print "<font face=Arial size=2>Thanks, $binFile_name has been added >to > our database.</font>"; > fclose ($fp); > } > else { > print "<font face=Arial size=2>$binFile_name couldn't be written to, > perhaps some permissions are wrong?"; > } > } > else { > print "<font face=Arial size=2>$binFile_name couldn't be opened (or > created), please try again.</font>"; > } > > One problem begins when trying to play that MP3. When I try to play the > MP3, it NEVER plays. Is there some headers that need to be sent while > uploading the file? > > Here's the code I use to let users download the mp3: > while ($row = mysql_fetch_array($sql)) { > $artist = $row["artist"]; > $artist_id = $row["artist_id"]; > $id = $row["id"]; > $track_name = $row["track_name"]; > $type = $row["mp3_type"]; > $filename = $row["filename"]; > if ($alternate == "1") { > $color = "#ffffff"; > $alternate = "2"; > } > else { > $color = "$color1"; > $alternate = "1"; > } > print "<tr bgcolor=$color><td width=33%><a > href=bands.php?option=View%20Band&id=$artist_id><font face=Arial size=2 > color=#000000>$artist</font></a></td><td width=33%><A > href='music/$filename'><font face=Arial size=2 > color=#000000>$track_name</font></a></td><td width=34%>$type</td></tr>"; > } > > So the final dl link ends up being: <a href='music/filename.mp3'>Track > Name</a> > I can download this in IE, but it still won't play, and when I do a "Save > Target As" the file name is all screwed up. > If the link was this: <a href="http://localhost/sweetleaf/music/Provoke - > Quick Blast.mp3>Quick Blast</a> you'd think the filename I'd download would > be "Provoke - Quick Blast.mp3". When doing a Save Link As, this is the > filename: ProvokQuicBlast.mp3. Any ideas why? > > Also, when downloading in NS, I get this: The parameter is incorrect. > Any idea what that means? > > thanks for sitting through all of this. I hope you can offer me some help. > :) > > Regards, > Tyler Longren > > P.S. > If you'd like more of my code to look @, just let me know. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
How do you open a text file and put all the contents into a variable like $filecontent? Joseph
> -----Original Message----- > From: Joseph Bannon [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 01, 2001 2:33 PM > To: PHP (E-mail) > Subject: [PHP] opening files > > > How do you open a text file and put all the contents into a > variable like $filecontent? You use some combination of the commands presented at http://www.php.net/manual/en/ref.filesystem.php If you're just wanting something quick and simple, you might find the file() function particularly useful. --- Mark Roedel ([EMAIL PROTECTED]) || "There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full." LeTourneau University || -- Henry Kissinger
Can anyone direct me as to what source is needed to compile ldap support into php ? I get the error ldap.h not found when performing a configure *options on php4.0.5. The server does not have an LDAP directory installed which makes perfect sense. I need to find an opensource solution that works well with php. Thanks in advance for any assistance !! David
I am running an apache server with virtual hosts and need to prevent the php Copy command from being able to copy from one virtual host dir to another. The server is in php safe mode and the doc_root, and basedir are set correctly, at least they prevent "includes" and "opendir" and such from working, but "copy" still works. I sure would appreciate any suggestions. Pan
Hi, There is a section in the php.ini where you can specified the function you don't whant to use : disable_functions : copy; ... I never used it, but I think it's what you are looking for. Regards, Sebastien Roy [EMAIL PROTECTED] PanDragon wrote: > I am running an apache server with virtual hosts and need to prevent the php > Copy command from being able to copy from one virtual host dir to another. > > The server is in php safe mode and the doc_root, and basedir are set > correctly, at least they prevent "includes" and "opendir" and such from > working, but "copy" still works. > > I sure would appreciate any suggestions. > > Pan > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
Thanks for the suggestion, but I need to be able to use the copy command, I just do not want it to be able to read from one virtual host to another. I would imagine that lots of web hosters running php with virtual hosts would have the same problem. Sebastien Roy <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hi, > > There is a section in the php.ini where you can specified the function you > don't whant to use : > > disable_functions : copy; ... > > I never used it, but I think it's what you are looking for. > > > Regards, > > Sebastien Roy > [EMAIL PROTECTED] > > > PanDragon wrote: > > > I am running an apache server with virtual hosts and need to prevent the php > > Copy command from being able to copy from one virtual host dir to another. > > > > The server is in php safe mode and the doc_root, and basedir are set > > correctly, at least they prevent "includes" and "opendir" and such from > > working, but "copy" still works. > > > > I sure would appreciate any suggestions. > > > > Pan > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > Sebastien Roy <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > There is a section in the php.ini where you can specified the function you > don't whant to use : > > disable_functions : copy; ... > > I never used it, but I think it's what you are looking for. > > > Regards, > > Sebastien Roy > [EMAIL PROTECTED] > > > PanDragon wrote: > > > I am running an apache server with virtual hosts and need to prevent the php > > Copy command from being able to copy from one virtual host dir to another. > > > > The server is in php safe mode and the doc_root, and basedir are set > > correctly, at least they prevent "includes" and "opendir" and such from > > working, but "copy" still works. > > > > I sure would appreciate any suggestions. > > > > Pan > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
I read about a PHP compiler for windows some time back - that qualifies PHP as software, or actually code analogous to C/++ right? "Kath" <[EMAIL PROTECTED]> wrote in message 002201c0cf58$c26d7980$[EMAIL PROTECTED]">news:002201c0cf58$c26d7980$[EMAIL PROTECTED]... > Food for thought: Is PHP code software? > > - Kath >
>From the manual: "Handling file uploads Uploading multiple files Common Pitfalls Not validating which file you operate on may mean that users can access sensitive information in other directories. " What is meant by the above? How would you "validate" that you weren't operating on the wrong file? As far as I know, PHP puts the file in whatever directory you specify and that is where you would access the file... how could someone make it so they access information elsewhere? Chris
you could create a common include file for each directory, for e.g. functions/auth.inc.php would contain: include ("auth/auth1.php"); include ("auth/auth2.php"); ... later you could just include() the auth.inc.php file, and all the rest qould get included as well "andrew" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Is there any way to include whole directories? > I have my function declarations in many small, easily maintainable > files, but it's a pain to include/require them all individually...I > would like to just split them into directories by common purpose, e.g > > functions/auth > functions/content > functions/modules > > and then include a directory at once - any ideas? > > cheers! > andrew > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hello people, I came with this problem to the group a while back, got some suggestions, and have been working on them since then. I know post the query again from a new perspective I have a mysql database, which contains a lot of email addresses and various other fields. My PHP code generates a list of email addresses based on certain criteria, and I have to send a fixed text body to each of these email addresses. This is my mailing list server. The idea was to be able to send out multiple mailing lists using the same database The mail is sent using fsockopen and SMTP commands, I loop over each email address: The problem was the users were getting multiple copies of the email. After much frustration, I found that what was happening was that the script would start sending email (this process would take many minutes). However before this script finished, another copy of the same script started, and this new copy was sending emails to the same users again. The original script continued. Result: duplicate emails I tried setting the script timeout to a large value, but no effect. I have managed to catch (and stop) the execution of the second copy, and hence prevent duplicate mails, but I have no idea _why_ this copy was being spawned... Can anybody help me out here? I would really appreaciate any help! N
Does anyone know of an equivilent for ASP's xmlHTTP.send command for PHP? i need to send a XML string out to an HTTP server without using user interaction (from the inside of a script). please respond via email at [EMAIL PROTECTED] thanks
I was also going to post this question from below, if anyone has an answer please reply to me as well. Thanks ----- Original Message ----- From: "Todd Kennedy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 01, 2001 1:37 PM Subject: [PHP] xmlHTTP.send equiv? > Does anyone know of an equivilent for ASP's xmlHTTP.send command for > PHP? > > i need to send a XML string out to an HTTP server without using user > interaction (from the inside of a script). > > please respond via email at [EMAIL PROTECTED] > > thanks > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hello all, Quick question. I'm wondering what the easiest way to upgrade PHP is? For instance, right now I have PHP 3 installed on a RH6.1 box and would like to upgrade to the latest version. Even though it was installed using RPMs can I use the tar.gz and build it to apply the upgrade? And then for each release after that just build it manually (I assume it will overwrite whatever needs to be "upgraded")? Red Hat is very slow about getting RPMs out and I wanted to stay on top of everything. Thanks Kevin _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
"K Old" <[EMAIL PROTECTED]> wrote: > Hello all, > > Quick question. I'm wondering what the easiest way to upgrade PHP is? > For instance, right now I have PHP 3 installed on a RH6.1 box and > would like to upgrade to the latest version. Even though it was > installed using RPMs can I use the tar.gz and build it to apply the > upgrade? And then for each release after that just build it manually > (I assume it will overwrite whatever needs to be "upgraded")? I dont think you can mix rpms and tgz's, for example if you use an apache rpm you need some header files to get php going (if you want to compile php as an apache module). It might be better to remove the old rpm first and then install the new php from tgz where the old rpm places it's files (don't know where that is on redhat maybe /usr/local) so you dont break something, but it might be better to change all rpms connected to php to tgzs. Yes after that you will be able to overwrite exsisting php versions. -- Henrik Hansen
Hi - I want to use javascript to validate some fields on a form. The javascript code will take the value the user typed into the form and search for it in an array. If the value is found in the array, then the value is ok, otherwise an alert() message will be displayed. The amount of data in the array is quite large. The data in the array rarely changes. I want to avoid transferring the array from the web server to the client's web browser every time the user loads the form. I put the array in a file called "myarray.js": $ cat myarray.js var MyArray = new Array( "value 1", "value 2", <many lines snipped> "value 789", "value 790" ); $ Then, I put the following line in the php script that generates the form: <script language="JavaScript" src="myarray.js"></script> By examining Apache's access_log, I see that "myarray.js" is transferred to the user's web browser once when the form is first displayed, and for subsequent uses of the form, the web browser uses the myarray.js that is cached, so that the array does not have to be transferred from the web server to the client computer every time the user uses the form. So, if the data in the array contained in myarray.js _does_ need to be changed, I need some way of signaling the user's web browser that it needs to transfer the updated myarray.js file from the web server. How do I do this? The only way I know to do this is to instruct the users to clear their web browser cache, which will force the web browser to transfer the updated myarray.js from the web server to the web browser. Is there another way? Is there some kind of "expire" mechanism that will tell the web browser that it needs to get the updated myarray.js file? Thanks - Jim Ide
This is usually handled by the browser automatically. (Nobody likes to see out of date content when browsing the web). Users can set their browser settings to check for new things once per session, every time, or never (or some variation of these). Most users use once per session. Otherwise, a complete reload can be forced on many browsers (NS and IE at least) by holding shift and clicking reload. Joseph > -----Original Message----- > From: Ide, Jim [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 01, 2001 4:36 PM > To: '[EMAIL PROTECTED]' > Subject: [PHP] PHP + javascript > > > > Hi - > > I want to use javascript to validate some fields on a form. > The javascript code will take the value the user typed > into the form and search for it in an array. If the value > is found in the array, then the value is ok, otherwise > an alert() message will be displayed. > > The amount of data in the array is quite large. > > The data in the array rarely changes. > > I want to avoid transferring the array from the web server > to the client's web browser every time the user loads the > form. I put the array in a file called "myarray.js": > > $ cat myarray.js > var MyArray = new Array( > "value 1", > "value 2", > <many lines snipped> > "value 789", > "value 790" > ); > $ > > Then, I put the following line in the php script that generates the form: > > <script language="JavaScript" src="myarray.js"></script> > > By examining Apache's access_log, I see that "myarray.js" is > transferred to the user's web browser once when the form is first > displayed, and for subsequent uses of the form, the web browser > uses the myarray.js that is cached, so that the array does not > have to be transferred from the web server to the client computer > every time the user uses the form. > > So, if the data in the array contained in myarray.js _does_ need > to be changed, I need some way of signaling the user's web browser > that it needs to transfer the updated myarray.js file from the web > server. How do I do this? > > The only way I know to do this is to instruct the users to clear their > web browser cache, which will force the web browser to transfer > the updated myarray.js from the web server to the web browser. > > Is there another way? Is there some kind of "expire" mechanism > that will tell the web browser that it needs to get the updated > myarray.js file? > > Thanks - > Jim Ide > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Try using the $HTTP_RAW_POST_DATA array. -- Steve Meyers [EMAIL PROTECTED] ""PHP"" <[EMAIL PROTECTED]> wrote in message 9clmgq$2fc$[EMAIL PROTECTED]">news:9clmgq$2fc$[EMAIL PROTECTED]... > Hi, > > I'm trying to the MSXML DOM 3 from Visual Basic and send XML to a PHP page > that sits on my Apache web server on SCO Unix. > > This is my VB Code: > > Dim xmlstr As New XMLHTTP30 > Dim sXML As String > sXML = "Content-Type: text/xml;" > sXML = sXML & "<?xml version=""1.0""?>" > sXML = sXML & "<command><commandtext>Initialize</commandtext>" > sXML = sXML & "<returnsdata>True</returnsdata>" > sXML = sXML & "</command>" > > xmlstr.open "POST", "http://mywebserver/somepage.php", False > xmlstr.send sXML > Set xmlstr = Nothing > > Pretty basic stuff. This succeeds, and at the Apache server level, in the > logs I can see the POST request go through. In the file "somepage.php" - all > I'm doing is running phpinfo() to see what the server thinks it's receiving. > > <? > phpinfo(); > ?> > > Back at the VB level, I can see xmlstr.responseText which is the output from > phpinfo(); > > I am not getting any HTTP_POST_VARS like I expected to receive. > > Has anyone done anything like this before? Is this mainly an issue with > Apache rather than PHP? > > Thanks, > Sam > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hi, I tried the HTTP_RAW_POST_DATA array, but it doesn't appear to exist. Then I just tried to access it like a variable and it's empty. Have I not got something setup correctly for PHP? Thanks, Sam "Steve Meyers" wrote in message <9cn71i$d03$[EMAIL PROTECTED]>... >Try using the $HTTP_RAW_POST_DATA array. > >-- > >Steve Meyers >[EMAIL PROTECTED] > >""PHP"" <[EMAIL PROTECTED]> wrote in message >9clmgq$2fc$[EMAIL PROTECTED]">news:9clmgq$2fc$[EMAIL PROTECTED]... >> Hi, >> >> I'm trying to the MSXML DOM 3 from Visual Basic and send XML to a PHP >page >> that sits on my Apache web server on SCO Unix. >> >> This is my VB Code: >> >> Dim xmlstr As New XMLHTTP30 >> Dim sXML As String >> sXML = "Content-Type: text/xml;" >> sXML = sXML & "<?xml version=""1.0""?>" >> sXML = sXML & "<command><commandtext>Initialize</commandtext>" >> sXML = sXML & "<returnsdata>True</returnsdata>" >> sXML = sXML & "</command>" >> >> xmlstr.open "POST", "http://mywebserver/somepage.php", False >> xmlstr.send sXML >> Set xmlstr = Nothing >> >> Pretty basic stuff. This succeeds, and at the Apache server level, in the >> logs I can see the POST request go through. In the file "somepage.php" - >all >> I'm doing is running phpinfo() to see what the server thinks it's >receiving. >> >> <? >> phpinfo(); >> ?> >> >> Back at the VB level, I can see xmlstr.responseText which is the output >from >> phpinfo(); >> >> I am not getting any HTTP_POST_VARS like I expected to receive. >> >> Has anyone done anything like this before? Is this mainly an issue with >> Apache rather than PHP? >> >> Thanks, >> Sam >> >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> To contact the list administrators, e-mail: [EMAIL PROTECTED] >> > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Yah I got it. I thought it was excellent. Goes into quite a lot of detail and pretty advanced php programs with good descriptions of how to implement it. Don't look to this book if you want a howto on how to set up mysql etc.. I thought it was a great book otherwise. Great for edpereince programmers Sono On Sat, 28 Apr 2001, Jeff Oien wrote: > Has anyone read this new book yet? > > PHP and MySQL Web Development > by Luke Welling, Laura Thomson > > http://www.amazon.com/exec/obidos/ASIN/0672317842/ref=ase_hotscrcomyourgui/1 > 07-0943347-2161363 > Would be interested in hearing opinions. > > Jeff Oien > > > -- Sono
Hi, Is it possible to add text onto the end of a variable name? e.g. to add the word 'code' onto the variable $field so it would be $fieldcode Thanks Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk
Just do this: $fieldcode = field; Brandon -----Original Message----- From: Jamie Saunders [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 6:46 AM To: [EMAIL PROTECTED] Subject: [PHP] adding text to a variable name Hi, Is it possible to add text onto the end of a variable name? e.g. to add the word 'code' onto the variable $field so it would be $fieldcode Thanks Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Sorry Syntax error. Correct: $fieldcode = $field; -----Original Message----- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 2:06 PM To: PHP User Group; Jamie Saunders Subject: RE: [PHP] adding text to a variable name Just do this: $fieldcode = field; Brandon -----Original Message----- From: Jamie Saunders [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 6:46 AM To: [EMAIL PROTECTED] Subject: [PHP] adding text to a variable name Hi, Is it possible to add text onto the end of a variable name? e.g. to add the word 'code' onto the variable $field so it would be $fieldcode Thanks Jamie Saunders Mail: [EMAIL PROTECTED] Web: http://jamie-s.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Jamie Saunders <[EMAIL PROTECTED]> wrote: > Hi, > > Is it possible to add text onto the end of a variable name? > e.g. to add the word 'code' onto the variable $field so it would be $fieldcode Look variable variables up in the manual, I think that would solve your problem. example: $var = "fieldcode"; $$var = "the value"; echo $fieldcode; more information here: http://www.php.net/manual/en/language.variables.variable.php -- Henrik Hansen
From: "Jamie Saunders" <[EMAIL PROTECTED]> Subject: [PHP] adding text to a variable name > Is it possible to add text onto the end of a variable name? > e.g. to add the word 'code' onto the variable $field so it would be $fieldcode I think you want to do it in an automatic way for each variable which satisfies a prescribed condition, so you may use a for / while statement for ( ; ; ) { GLOBALS[$old_name . "_put_your_own_postfix_here"] = GLOBALS[$old_name]; } or with variable variables: for ( ; ; ) { $new_name = $old_name . "_put_your_own_postfix_here"; $$new_name = $$old_name; } but if you know the name of variables exactly, the simplest solution is already posted. $var_code = $var;
On Tue, 01 May 2001, you wrote: My ftp server saves uploaded files as the uid that was logged in at the time. It is proftpd. If I log in as user/pass and then do a mput and upload files it saves them as user.user. This is confirmed by an ls -la on the user's home dir. The other alternative is to change the user the ftp deamon runs as. My proftpd runs as ftp.ftp but it could just as easily run as nobody.somebody or nobody.www or whatever. -- Lewis Bergman Texas Communications 4309 Maple St. Abilene, TX 79602 915-695-6962
Hello, I've been scouring the archives, but none of the solutions presented are helping me... I've got php 4.0.5 and am trying to compile support for pdflib-4.0.0. Here's how I compiled pdflib: ./configure make make install Looks successful, right? ldconfig -v | grep libpdf libpdf.so.1 => libpdf.so.1.1.0 ls -1 /usr/local/lib/libpdf* /usr/local/lib/libpdf.a /usr/local/lib/libpdf.la /usr/local/lib/libpdf.so@ /usr/local/lib/libpdf.so.1@ /usr/local/lib/libpdf.so.1.1.0 And here's how I'm compiling PHP: ./configure \ --enable-versioning \ --enable-track-vars \ --with-mysql=/usr/local/mysql \ --with-imap=/var/src/imap-4.5 \ --with-curl=/var/src/curl-7.5.1 \ --enable-gd-imgstrttf \ --with-gd=../gd-1.8.3 \ --with-ttf \ --with-tiff-dir=/usr \ --with-jpeg-dir=/usr \ --with-zlib-dir=/usr \ --with-png-dir=/usr/local \ --with-pdflib=/usr/local/lib (I'm now building CGI mode for testing so I don't have to keep restarting my production web server) The only mention of pdflib from ./configure is this: checking whether to include PDFlib support... yes I've also tried: --with-pdflib=/var/src/libpdf-4.0.0 (src directory) --with-pdflib=/usr/local/lib/libpdf.so (directly to the lib itself) And cp ../pdflib-4.0.0/bind/php/ext/pdf/* ext/pdf/ ... Same results. php -i does NOT mention anything about PDF, and the pdfclock example fails with: "Fatal error: Call to undefined function: pdf_new()" NOTE: I've been doing (make clean ; rm config.cache config.status) between each ./configure. I've also started with clean source a few times. I've been working on this for a few days now, and am out of ideas. I'd appreciate any and all suggestions! Thanks, Bill Shupp
"Bill Shupp" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, SNIP > --with-png-dir=/usr/local \ > --with-pdflib=/usr/local/lib --with-pdflib=/usr/local/ if you have pdflib in /usr/local/lib You have /usr/local/lib in ld.so.conf, right? then you don't even have to specify directory. --with-pdflib should work. (I'm not sure if your pdflib version is supported by PHP, though) Regards, -- Yasuo Ohgaki
Hello, I am making a script that makes .htaccess files for websites. When I use ftp_nlist(); It doesn't show the files with a . in front of them. Does anyone know how to show hidden files when listing a directory? Thanks Brandon
"Brandon Orther" <[EMAIL PROTECTED]> wrote: > Hello, > > I am making a script that makes .htaccess files for websites. When I use > ftp_nlist(); It doesn't show the files with a . in front of them. Does > anyone know how to show hidden files when listing a directory? Maybe use ftp_rawlist(); instead -- Henrik Hansen
Just curious if anyone knows how to properly destroy a session. I tried doing this, session_start(); session_unregister("logged_in"); session_unregister("username"); session_unregister("password"); session_unregister("accesslevel"); session_unregister("emailaddress"); session_unregister("last_login"); session_destroy(); However that doesn't work, the session isn't terminated and the session variables are still available. Help anyone? :-)
> -----Original Message----- > From: Nick Adams [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 01, 2001 3:47 PM > To: [EMAIL PROTECTED] > Subject: [PHP] session_destroy() > > > Just curious if anyone knows how to properly destroy a session. As I understand it, session_unregister() removes a variable from the list of session variables. session_destroy removes the session's content from wherever it is being stored (e.g., a file in /tmp). To delete the *values* of the variables immediately, use session_unset(). Kirk
"Nick Adams" <[EMAIL PROTECTED]> wrote: > 1. (*) text/plain > > Just curious if anyone knows how to properly destroy a session. > I tried doing this, > > session_start(); > > session_unregister("logged_in"); > session_unregister("username"); > session_unregister("password"); > session_unregister("accesslevel"); > session_unregister("emailaddress"); > session_unregister("last_login"); > > session_destroy(); hmm i guess session_destroy() should unregister all variables too, try echo session_destroy() to see if it returns 1. -- Henrik Hansen
What's wrong with my php file? ------------------------------------------------ <? if (acao == 1) { if (!copy($MyFile,"c:\\temp\\$MyFile_name")) { echo "can't copy"; exit; } } ?> <html> <head> <title></title> </head> <body bgcolor=#FFFFFF text=#000000 link=#000000 alink=#000000 vlink=#000000 marginwidth=10 marginheight=10 topmargin=10 leftmargin=10> <form action=teste.php method=post name=teste ENCTYPE="multipart/form-data"> <input type=hidden name=acao value=1> <table width=0 cellpadding=0 cellspacing=0 border=0> <tr bgcolor=#DDDDDD> <td width=20%><font face=verdana size=2><b>File</b></font></td> <td><input type=file name=MyFile size=40></td> </tr> </table> <input type=submit name=submit value=test> </form> </body> </html> --------------------------------------------------------------------------- --- [ r a f a e l f a r i a] _____________________ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665
Don't you need a $ before acao on the line: if (acao == 1) { ? - Kath ----- Original Message ----- From: "Rafael Faria" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 01, 2001 6:08 PM Subject: [PHP] What's wrong? > > > What's wrong with my php file? > ------------------------------------------------ > <? > if (acao == 1) { > if (!copy($MyFile,"c:\\temp\\$MyFile_name")) { > echo "can't copy"; > exit; > } > } > ?> > > <html> > <head> > <title></title> > </head> > > <body bgcolor=#FFFFFF text=#000000 link=#000000 alink=#000000 vlink=#000000 > marginwidth=10 marginheight=10 topmargin=10 leftmargin=10> > > <form action=teste.php method=post name=teste ENCTYPE="multipart/form-data"> > <input type=hidden name=acao value=1> > <table width=0 cellpadding=0 cellspacing=0 border=0> > <tr bgcolor=#DDDDDD> > <td width=20%><font face=verdana size=2><b>File</b></font></td> > <td><input type=file name=MyFile size=40></td> > </tr> > </table> > <input type=submit name=submit value=test> > </form> > > </body> > </html> > -------------------------------------------------------------------------- - > --- > > [ r a f a e l f a r i a] _____________________ > [EMAIL PROTECTED] > WebMaster Universo Online - http://www.uol.com.br > Phone # +55 11 3038-8665 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Is there a function that I can call that is similar to perl's DBI::quote function that will take arbitrary text and quote it so that it is safe to insert into a database? I'm using PHP 4.0.4pl1 on Apache 1.3.14 with postgresql 7.0.2 Joseph
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Joseph Tate") wrote: > Is there a function that I can call that is similar to perl's DBI::quote > function that will take arbitrary text and quote it so that it is safe to > insert into a database? http://php.net/addslashes -- CC
Originally posted at an HTML newsgroup, but no response : ( Anyone here have any suggestions on the following problem? > Hello All, > > Anyone have any ideas why Netscape 4.0 would be double refreshing my pages? > This also occurs, this double refresh, when the page loads for the first > time. It almost appears as if it: "loads the page", then "refreshes". > > ...oh, and then all of my awesome Java Script is disabled! > (no problems in IE though) > > Help Plz! > > Karl > >
Hi, after downloading and compiling php4.0.6dev (from cvs) I've decided to try the new "much improved" zlib output support (already enabled in 4.0.5). The announcement from the changelog says check the zlib.output_compression ini. I've searched the php.net site as well as the mailing lists but could not find a reference for it. I've tried to put zlib.output_compression=on (or yes) in my /usr/local/etc/php.ini and even tough I've restarted the server, phpInfo() shows me no difference. The php was compiled with zlib support. How can I turn it on ? thanks. __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
"Robert Mena" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, after downloading and compiling php4.0.6dev (from > cvs) I've decided to try the new "much improved" zlib > output support (already enabled in 4.0.5). > > The announcement from the changelog says check the > zlib.output_compression ini. > > I've searched the php.net site as well as the mailing > lists but could not find a reference for it. > > I've tried to put zlib.output_compression=on (or yes) > in my /usr/local/etc/php.ini and even tough I've > restarted the server, phpInfo() shows me no > difference. If you want to check if it is working. Display phpinfo() and check the size of the file. I get 6 KB compressed, where I get 50KB uncompressed. You have zlib support, right? -- Yasuo Ohgaki
Is there a way for each user on a server to have their own php.ini settings? If so...how? Thanks Chris Anderson aka "Null" -------------------------------------------- PHP Developer / Nulltech PHP-GTK Grunt / gtk.php.net STA-DoD, TO and DDay Administrator / www.stronger.org DOD Co-Owner / www.dayofdefeat.com Zeroping Staff Member / www.zeroping.com Volition Programmer / www.Volition-net.com
> -----Original Message----- > Is there a way for each user on a server to have their own php.ini > settings? If so...how? Thanks > > Chris Anderson aka "Null" If you are using Apache, see the documentation for .htaccess files. These files allow you to set individual php.ini settings on a per directory basis. Kirk
Greetings, Just a general question, I am experimenting with Apache 2.0.16 beta. Reading the manual that comes installed from the source, it seems that third party modules like PHP will not work. Is there a development version of PHP designed to work with Apache 2.0? Thanks in advance, Will -- ------------------- From David Touretzky's DeCSS Gallery ------------------- ------------- http://www.cs.cmu.edu/~dst/DeCSS/Gallery/index.html ----------- #!/usr/bin/perl -w # 526-byte qrpff, Keith Winstein and Marc Horowitz <[EMAIL PROTECTED]> # MPEG 2 PS VOB file on stdin -> descrambled output on stdout # arguments: title key bytes in least to most-significant order $_='while(read+STDIN,$_,2048){$a=29;$c=142;if((@a=unx"C*",$_)[20]&48){$h=5; $_=unxb24,join"",@b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$d= unxV,xb25,$_;$b=73;$e=256|(ord$b[4])<<9|ord$b[3];$d=$d>>8^($f=($t=255)&($d >>12^$d>>4^$d^$d/8))<<17,$e=$e>>8^($t&($g=($q=$e>>14&7^$e)^$q*8^$q<<6))<<9 ,$_=(map{$_%16or$t^=$c^=($m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;$t ^=(72,@z=(64,72,$a^=12*($_%16-2?0:$m&17)),$b^=$_%64?12:0,@z)[$_%8]}(16..271)) [$_]^(($h>>=8)+=$f+(~$g&$t))for@a[128..$#a]}print+x"C*",@a}';s/x/pack+/g;eval -----------------------------------------------------------------------------
Try 4.0.5. Configure with --with-apxs2. Regards, -- Yasuo Ohgaki ""Willis L. Sarka"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Greetings, > > Just a general question, I am experimenting with Apache 2.0.16 beta. > Reading the manual that comes installed from the source, it seems that > third party modules like PHP will not work. Is there a development > version of PHP designed to work with Apache 2.0? > > Thanks in advance, > Will > > -- > ------------------- From David Touretzky's DeCSS Gallery ------------------- > ------------- http://www.cs.cmu.edu/~dst/DeCSS/Gallery/index.html ----------- > #!/usr/bin/perl -w > # 526-byte qrpff, Keith Winstein and Marc Horowitz <[EMAIL PROTECTED]> > # MPEG 2 PS VOB file on stdin -> descrambled output on stdout > # arguments: title key bytes in least to most-significant order > $_='while(read+STDIN,$_,2048){$a=29;$c=142;if((@a=unx"C*",$_)[20]&48){$h=5; > $_=unxb24,join"",@b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$d= > unxV,xb25,$_;$b=73;$e=256|(ord$b[4])<<9|ord$b[3];$d=$d>>8^($f=($t=255)&($d > >>12^$d>>4^$d^$d/8))<<17,$e=$e>>8^($t&($g=($q=$e>>14&7^$e)^$q*8^$q<<6))<<9 > ,$_=(map{$_%16or$t^=$c^=($m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;$t > ^=(72,@z=(64,72,$a^=12*($_%16-2?0:$m&17)),$b^=$_%64?12:0,@z)[$_%8]}(16..271)) > [$_]^(($h>>=8)+=$f+(~$g&$t))for@a[128..$#a]}print+x"C*",@a}';s/x/pack+/g;eval > ----------------------------------------------------------------------------- > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
I'm new at programing and not getting very far with this. I've looked at "array_revers" and "array_multisort" and can't get anything to work. What I have is a mysql table laid out like: item number | title | body text | subject heading What I want to do is pull the top 7 entries off and display them on a web page. I have written some code that will do this but when it prints to the web page the first item is printed at the top and I would like it on the bottom with later entries successively on top. How can I do this? Hear is the code I have so far: $result = mysql_query ("SELECT title, body FROM junkyard LIMIT 0, 7"); $i = '0'; while ($i < 7) { if ($row = mysql_fetch_array ($result)) { echo "$row[0] <br />$row[1]"; ++$i; } } Thanks, kent
> I'm new at programing and not getting very far with this. I've looked > at "array_revers" and "array_multisort" and can't get anything to work. > What I have is a mysql table laid out like: > > item number | title | body text | subject heading > > What I want to do is pull the top 7 entries off and display them on a > web page. I have written some code that will do this but when it prints > to the web page the first item is printed at the top and I would like it > on the bottom with later entries successively on top. How can I do > this? Hear is the code I have so far: > > $result = mysql_query ("SELECT title, body FROM junkyard LIMIT 0, 7"); i) maybe, you add an ORDER BY clause to your query. This cause that returning rows in the result set are ordered in that way you 've specified. ORDER BY works as follows : ORDER BY <column name> ASC for ascending or DESC for descending sorting. (you can give more than one column name.) $result = mysql_query ("SELECT title, body FROM junkyard ORDER BY title DESC LIMIT 0, 7"); or you can gather all the rows you need in an array and print this array as you love. for ($i = 0 ; $i < 7 && ($result_rows[] = mysql_fetch_array($result)); $i++) ; > $i = '0'; > > while ($i < 7) { > if ($row = mysql_fetch_array ($result)) { > echo "$row[0] <br />$row[1]"; > ++$i; > } > } >
You're looking in the wrong place. What you want to do should be handled at the database level. I.e. your SQL query should be something like: select title,body from junkyard order by item_number desc, limit 7 Since you refer to what you want as the 'top 7' entries, there is presumably some sort of order that you are attempting to enforce in what you display. The way you currently have your query formed, the results you get back are not guaranteed to have any order. You must add the order by clause. The next problem you're likely to have, is that you don't have any way of enforcing order in your database other than the item number, which is probably not what you want. In this case, what is it that determines whether something is in the 'top 7'? Is it based on time? Is it alphabetical? Whatever it is, you need to sort by the corresponding field. My guess is that you're going to want to add a timestamp column to your database, and order by that, descending (i.e. highest to lowest). Once you do this, you don't need to change your php code at all which executes the query and displays the results. Good luck. Al > -----Original Message----- > From: > [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]. > net] On Behalf Of ktb > Sent: Monday, April 30, 2001 2:52 PM > To: [EMAIL PROTECTED] > Subject: [PHP] reverse array for mysql data > > > I'm new at programing and not getting very far with this. > I've looked at "array_revers" and "array_multisort" and can't > get anything to work. What I have is a mysql table laid out like: > > item number | title | body text | subject heading > > What I want to do is pull the top 7 entries off and display > them on a web page. I have written some code that will do > this but when it prints to the web page the first item is > printed at the top and I would like it on the bottom with > later entries successively on top. How can I do this? Hear > is the code I have so far: > > $result = mysql_query ("SELECT title, body FROM junkyard > LIMIT 0, 7"); $i = '0'; > > while ($i < 7) { > if ($row = mysql_fetch_array ($result)) { > echo "$row[0] <br />$row[1]"; > ++$i; > } > } > > Thanks, > kent > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] To contact the list > administrators, e-mail: [EMAIL PROTECTED] > >
Somehow I picked up a copy of the emanuel virus, and like a damned fool, clicked on it last night. It immediately started Eudora and tried to distribute itself to anything that looked like an email address. Fortunately Eudora is set so that emails don't go out without me looking at them first. If it did escape, and got sent to any of you, my humble apologies. Look for emanuel.exe; if you have multiple copies it serializes itself, emanuel1.exe, emanuel2.exe, and so forth. The NT system here was getting pretty creaky. So, with all my data backed up and network settings recorded, I'm about to format C:, reinstall NT and then start looking for all those little utiities I've gotten so used to. <g>. Once again, if it got passed to any of you, through me, my apologies. I wouldn't trust my anti-virus software on this, I could find any reference to it at Symantec. Maybe it has another name? Feeling like a leper - Miles Thompson
...But my boss won't let me keep the Bushmill's at my desk. *sigh* So, assuming that $p_code is "MNE" and $neuroKey is 2, then $hub should be 2, right? Instead, it's coming up with 1, which is the value of $coreKey. What have I missed? $hub=$coreKey; if (($p_code=="MNE")||($p_code=='SN')||($p_code=='PM')) { $hub=$neuroKey; } else if ($p_code=="MAI") { $hub=$allergyKey; } else if (($p_code=="SPS")||($p_code=="MCC")) { $hub=$dermKey; }
Have you tried printing the values of $p_code and $neuroKey at various stages? Perhaps there's a space or some other slight inconsistency...if you could paste in the snippet, maybe we could see what was going on before this that might have it acting strange... -jack "Richard S. Crawford" wrote: > > ...But my boss won't let me keep the Bushmill's at my desk. *sigh* > > So, assuming that $p_code is "MNE" and $neuroKey is 2, then $hub should be > 2, right? Instead, it's coming up with 1, which is the value of > $coreKey. What have I missed? > > > $hub=$coreKey; > if (($p_code=="MNE")||($p_code=='SN')||($p_code=='PM')) > { > $hub=$neuroKey; > } > else if ($p_code=="MAI") > { > $hub=$allergyKey; > } > else if (($p_code=="SPS")||($p_code=="MCC")) > { > $hub=$dermKey; > } > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
Do you have some echo statements on $p_code and $neuroKey right before the if statement, to make sure your assumptions are true? Kirk > -----Original Message----- > From: Richard S. Crawford [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 01, 2001 4:58 PM > To: [EMAIL PROTECTED] > Subject: [PHP] This is driving me to drink... > > > ...But my boss won't let me keep the Bushmill's at my desk. *sigh* > > So, assuming that $p_code is "MNE" and $neuroKey is 2, then > $hub should be > 2, right? Instead, it's coming up with 1, which is the value of > $coreKey. What have I missed? > > > $hub=$coreKey; > if (($p_code=="MNE")||($p_code=='SN')||($p_code=='PM')) > { > $hub=$neuroKey; > } > else if ($p_code=="MAI") > { > $hub=$allergyKey; > } > else if (($p_code=="SPS")||($p_code=="MCC")) > { > $hub=$dermKey; > }
Problem solved. Boy, that was easy. The database was adding trailing spaces to the codes (so that "MNE" was actually "MNE " and so on). $p_code=trim($p_code) did the trick. I could still use that Bushmill's, though. At 03:57 PM 5/1/2001 -0700, Richard S. Crawford wrote: >...But my boss won't let me keep the Bushmill's at my desk. *sigh* > >So, assuming that $p_code is "MNE" and $neuroKey is 2, then $hub should be >2, right? Instead, it's coming up with 1, which is the value of >$coreKey. What have I missed? > > >$hub=$coreKey; >if (($p_code=="MNE")||($p_code=='SN')||($p_code=='PM')) >{ > $hub=$neuroKey; >} >else if ($p_code=="MAI") >{ > $hub=$allergyKey; >} >else if (($p_code=="SPS")||($p_code=="MCC")) >{ > $hub=$dermKey; >} > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] >
$p_code = "MNE"; $hub=$coreKey; if ($p_code=='MNE' || $p_code=='SN' || $p_code=='PM') { $hub = "$neuroKey"; } else if ($p_code=='MAI') { $hub = "$allergyKey"; } else if ($p_code=='SPS' || $p_code=='MCC') { $hub = "$dermKey"; } echo "$hub"; -----Original Message----- From: Richard S. Crawford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 3:58 PM To: [EMAIL PROTECTED] Subject: [PHP] This is driving me to drink... ...But my boss won't let me keep the Bushmill's at my desk. *sigh* So, assuming that $p_code is "MNE" and $neuroKey is 2, then $hub should be 2, right? Instead, it's coming up with 1, which is the value of $coreKey. What have I missed? $hub=$coreKey; if (($p_code=="MNE")||($p_code=='SN')||($p_code=='PM')) { $hub=$neuroKey; } else if ($p_code=="MAI") { $hub=$allergyKey; } else if (($p_code=="SPS")||($p_code=="MCC")) { $hub=$dermKey; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
this is taken straight from phpinfo(), as you can see its all there except for type. I was wondering why wouldnt my RH7.0, Apache 1.3.12 w/ PHP4.0.4pl1 know what the file type was... HTTP_POST_FILES["userfile1"] Array ( [name] => palazzina1.jpg [type] => [tmp_name] => /tmp/phpewzSBs [size] => 10272 ) tnx, t.
I need to make a select list for a web page in the following format: 01/01/01-01/07/01 01/08/01-01/14/01 01/15/01-01/21/01 etc etc till the end of 2002 and further in the future eventually I'd like to make PHP generate this for me so I don't have to handcode it for each year in the future. I've looked at the date/time functions and I'm a bit confused. Any help would be appreciated. Thanks! Jon
Jon, Just had to do almost exactly this - here's one solution. The tricky bit was getting the number of days in the month - you have to look at next month! This generates a list for 12 months starting with the current month and outputs display stuff as well. In our scenario this is passed to a script which grabs records from a database and produces a report for the month selected and the previous month so the range of values is always for 2 months. Ours goes backwards - you'll need to adjust it to run forwards. <select name="strReportMonth" size="1"> <? // Get This Month $strThisMonth = date('m'); $strThisYear = date('Y'); // convert to integer $strThisMonth++; $strNextMonth = $strThisMonth; $strPrevYear = $strThisYear; for($i=0;$i<=12;$i++) { $strThisMonth--; if($strNextMonth == 0) { $strNextMonth = 12; } if($strNextMonth == 13) { $strNextMonth = 1; } // How many days in this month $lastday = mktime (0,0,0,$strNextMonth,0,$strThisYear); $last = strftime ("%d", $lastday); $strThisMonthTS = mktime (0,0,0,$strNextMonth,0,$strThisYear); $strThisMonthName = strftime ("%B", $strThisMonthTS); $strNextMonth--; if($strThisMonth == 0) { $strThisMonth = 12; $strThisYear--; } $strPrevMonth = $strThisMonth -1; if($strPrevMonth == 0) { $strPrevMonth = 12; $strPrevYear--; } $strPrevMonthTS = mktime (0,0,0,$strThisMonth,0,$strPrevYear); $strPrevMonthName = strftime ("%B", $strPrevMonthTS); if($strPrevMonth < 10) { $strPrevMonth = "0".$strPrevMonth; } if($strThisMonth < 10) { $strThisMonth = "0".$strThisMonth; } ?> <option value="<? print $strPrevMonth."/01/".$strPrevYear."|".$strThisMonth."/".$last."/".$strThisYear."|".$strThisMonthName."|".$strThisYear."|".$strPrevMonth."|".$strThisMonth."|".$strPrevMonthName."|".$strPrevYear; ?>"><? print $strThisMonthName." ".$strThisYear; ?> <? } ?> </select> Jon Rosenberg wrote: > I need to make a select list for a web page in the following format: > > 01/01/01-01/07/01 > 01/08/01-01/14/01 > 01/15/01-01/21/01 > etc > etc > till the end of 2002 and further in the future eventually > > I'd like to make PHP generate this for me so I don't have to handcode it for > each year in the future. I've looked at the date/time functions and I'm a > bit confused. Any help would be appreciated. Thanks! > > Jon > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ********************************************************************** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed.
ahem $daysinmonth = date('t'); ----- Original Message ----- From: "Chris Fry" <[EMAIL PROTECTED]> To: "Jon Rosenberg" <[EMAIL PROTECTED]> Cc: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 3:06 AM Subject: Re: [PHP] date list > Jon, > > Just had to do almost exactly this - here's one solution. The tricky bit was > getting the number of days in the month - you have to look at next month! > > This generates a list for 12 months starting with the current month and outputs > display stuff as well. In our scenario this is passed to a script which grabs > records from a database and produces a report for the month selected and the > previous month so the range of values is always for 2 months. Ours goes > backwards - you'll need to adjust it to run forwards. > > <select name="strReportMonth" size="1"> > <? // Get This Month > $strThisMonth = date('m'); > $strThisYear = date('Y'); > // convert to integer > $strThisMonth++; > $strNextMonth = $strThisMonth; > $strPrevYear = $strThisYear; > for($i=0;$i<=12;$i++) { > $strThisMonth--; > if($strNextMonth == 0) { > $strNextMonth = 12; > } > if($strNextMonth == 13) { > $strNextMonth = 1; > } > // How many days in this month > $lastday = mktime (0,0,0,$strNextMonth,0,$strThisYear); > $last = strftime ("%d", $lastday); > $strThisMonthTS = mktime (0,0,0,$strNextMonth,0,$strThisYear); > $strThisMonthName = strftime ("%B", $strThisMonthTS); > $strNextMonth--; > if($strThisMonth == 0) { > $strThisMonth = 12; > $strThisYear--; > } > $strPrevMonth = $strThisMonth -1; > if($strPrevMonth == 0) { > $strPrevMonth = 12; > $strPrevYear--; > } > $strPrevMonthTS = mktime (0,0,0,$strThisMonth,0,$strPrevYear); > $strPrevMonthName = strftime ("%B", $strPrevMonthTS); > if($strPrevMonth < 10) { > $strPrevMonth = "0".$strPrevMonth; > } > if($strThisMonth < 10) { > $strThisMonth = "0".$strThisMonth; > } > ?> > <option value="<? print > $strPrevMonth."/01/".$strPrevYear."|".$strThisMonth."/".$last."/".$strThisYe ar."|".$strThisMonthName."|".$strThisYear."|".$strPrevMonth."|".$strThisMont h."|".$strPrevMonthName."|".$strPrevYear; > ?>"><? print $strThisMonthName." ".$strThisYear; ?> > <? > } > ?> > </select> > > > Jon Rosenberg wrote: > > > I need to make a select list for a web page in the following format: > > > > 01/01/01-01/07/01 > > 01/08/01-01/14/01 > > 01/15/01-01/21/01 > > etc > > etc > > till the end of 2002 and further in the future eventually > > > > I'd like to make PHP generate this for me so I don't have to handcode it for > > each year in the future. I've looked at the date/time functions and I'm a > > bit confused. Any help would be appreciated. Thanks! > > > > Jon > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- > Chris Fry > Quillsoft Pty Ltd > Specialists in Secure Internet Services and E-Commerce Solutions > 10 Gray Street > Kogarah > NSW 2217 > Australia > > Phone: +61 2 9553 1691 > Fax: +61 2 9553 1692 > Mobile: 0419 414 323 > eMail: [EMAIL PROTECTED] > http://www.quillsoft.com.au > > You can download our Public CA Certificate from:- > https://ca.secureanywhere.com/htdocs/cacert.crt > > ********************************************************************** > > This information contains confidential information intended only for > the use of the authorised recipient. If you are not an authorised > recipient of this e-mail, please contact Quillsoft Pty Ltd by return > e-mail. > In this case, you should not read, print, re-transmit, store or act > in reliance on this e-mail or any attachments, and should destroy all > copies of them. > This e-mail and any attachments may also contain copyright material > belonging to Quillsoft Pty Ltd. > The views expressed in this e-mail or attachments are the views of > the author and not the views of Quillsoft Pty Ltd. > You should only deal with the material contained in this e-mail if > you are authorised to do so. > > This notice should not be removed. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
OOOOOOOps! I got my stuff from the annotated manual - that'll teach me. Chris Tomasz Abramowicz wrote: > ahem > $daysinmonth = date('t'); > > ----- Original Message ----- > From: "Chris Fry" <[EMAIL PROTECTED]> > To: "Jon Rosenberg" <[EMAIL PROTECTED]> > Cc: "PHP List" <[EMAIL PROTECTED]> > Sent: Wednesday, May 02, 2001 3:06 AM > Subject: Re: [PHP] date list > > > Jon, > > > > Just had to do almost exactly this - here's one solution. The tricky bit > was > > getting the number of days in the month - you have to look at next month! > > > > This generates a list for 12 months starting with the current month and > outputs > > display stuff as well. In our scenario this is passed to a script which > grabs > > records from a database and produces a report for the month selected and > the > > previous month so the range of values is always for 2 months. Ours goes > > backwards - you'll need to adjust it to run forwards. > > > > <select name="strReportMonth" size="1"> > > <? // Get This Month > > $strThisMonth = date('m'); > > $strThisYear = date('Y'); > > // convert to integer > > $strThisMonth++; > > $strNextMonth = $strThisMonth; > > $strPrevYear = $strThisYear; > > for($i=0;$i<=12;$i++) { > > $strThisMonth--; > > if($strNextMonth == 0) { > > $strNextMonth = 12; > > } > > if($strNextMonth == 13) { > > $strNextMonth = 1; > > } > > // How many days in this month > > $lastday = mktime (0,0,0,$strNextMonth,0,$strThisYear); > > $last = strftime ("%d", $lastday); > > $strThisMonthTS = mktime (0,0,0,$strNextMonth,0,$strThisYear); > > $strThisMonthName = strftime ("%B", $strThisMonthTS); > > $strNextMonth--; > > if($strThisMonth == 0) { > > $strThisMonth = 12; > > $strThisYear--; > > } > > $strPrevMonth = $strThisMonth -1; > > if($strPrevMonth == 0) { > > $strPrevMonth = 12; > > $strPrevYear--; > > } > > $strPrevMonthTS = mktime (0,0,0,$strThisMonth,0,$strPrevYear); > > $strPrevMonthName = strftime ("%B", $strPrevMonthTS); > > if($strPrevMonth < 10) { > > $strPrevMonth = "0".$strPrevMonth; > > } > > if($strThisMonth < 10) { > > $strThisMonth = "0".$strThisMonth; > > } > > ?> > > <option value="<? print > > > $strPrevMonth."/01/".$strPrevYear."|".$strThisMonth."/".$last."/".$strThisYe > ar."|".$strThisMonthName."|".$strThisYear."|".$strPrevMonth."|".$strThisMont > h."|".$strPrevMonthName."|".$strPrevYear; > > ?>"><? print $strThisMonthName." ".$strThisYear; ?> > > <? > > } > > ?> > > </select> > > > > > > Jon Rosenberg wrote: > > > > > I need to make a select list for a web page in the following format: > > > > > > 01/01/01-01/07/01 > > > 01/08/01-01/14/01 > > > 01/15/01-01/21/01 > > > etc > > > etc > > > till the end of 2002 and further in the future eventually > > > > > > I'd like to make PHP generate this for me so I don't have to handcode it > for > > > each year in the future. I've looked at the date/time functions and I'm > a > > > bit confused. Any help would be appreciated. Thanks! > > > > > > Jon > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > > Chris Fry > > Quillsoft Pty Ltd > > Specialists in Secure Internet Services and E-Commerce Solutions > > 10 Gray Street > > Kogarah > > NSW 2217 > > Australia > > > > Phone: +61 2 9553 1691 > > Fax: +61 2 9553 1692 > > Mobile: 0419 414 323 > > eMail: [EMAIL PROTECTED] > > http://www.quillsoft.com.au > > > > You can download our Public CA Certificate from:- > > https://ca.secureanywhere.com/htdocs/cacert.crt > > > > ********************************************************************** > > > > This information contains confidential information intended only for > > the use of the authorised recipient. If you are not an authorised > > recipient of this e-mail, please contact Quillsoft Pty Ltd by return > > e-mail. > > In this case, you should not read, print, re-transmit, store or act > > in reliance on this e-mail or any attachments, and should destroy all > > copies of them. > > This e-mail and any attachments may also contain copyright material > > belonging to Quillsoft Pty Ltd. > > The views expressed in this e-mail or attachments are the views of > > the author and not the views of Quillsoft Pty Ltd. > > You should only deal with the material contained in this e-mail if > > you are authorised to do so. > > > > This notice should not be removed. > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ********************************************************************** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed.
Thanks everyone for the help!
My host is Windows 98, Xitami and unstable MySQL and Perl/CGI. I'm looking for a *free* host, with CGI, Perl 5+, MySQL access, SSI & PHP. Thanks, Owen
Good luck, let me know how your search goes. I would also like to find someone who would do that. -----Original Message----- From: David Bruce [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 7:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Hosts. My host is Windows 98, Xitami and unstable MySQL and Perl/CGI. I'm looking for a *free* host, with CGI, Perl 5+, MySQL access, SSI & PHP. Thanks, Owen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
I would like to edit a list from a PHP form. Can someone point me to a good tutorial?? I have walked-through a tutorial that showed me how to successfully pull the contents of text file and display the whole contents. I want to view the contents and then edit a specific line of in a list. So, if I have list of employees and their telephone numbers, I'd like to be able to search the contents and display the employees phone number then allow me to edit the phone number and save it back to the list. I know I can do this with MySQL but I need to keep the source data in a text file. Thanks for any suggestions. -Allen [EMAIL PROTECTED]
Hy guys.... how can i know the width and height of an image? --- [ r a f a e l f a r i a] _____________________ [EMAIL PROTECTED] WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665
It is a bit off the list here but is theer anybody know what is SAP? I mean, is that a script language or OS or a DB software? cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"
don't know if its what you're talking about, but try www.sap.com also, search google... -jack -----Original Message----- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: [PHP] a bit off the list but.... It is a bit off the list here but is theer anybody know what is SAP? I mean, is that a script language or OS or a DB software? cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"
There is these two SAP vendors talking to each other. The first one says: "I finnally convinced company xyz to buy our products". The second one says: "It took them a long time to see the light!!". The first one replies: "Ya, now here comes the darkness..." ha ha ha py At 11:04 PM 5/1/01 -0400, you wrote: >don't know if its what you're talking about, but try www.sap.com >also, search google... > >-jack > >-----Original Message----- >From: Jacky [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, May 02, 2001 10:28 AM >To: [EMAIL PROTECTED] >Subject: [PHP] a bit off the list but.... > > >It is a bit off the list here but is theer anybody know what is SAP? I mean, >is that a script language or OS or a DB software? >cheers >Jack >[EMAIL PROTECTED] >"There is nothing more rewarding than reaching the goal you set for >yourself" > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] + ====================== + Pierre-Yves Lem@ire + E-MedHosting.com + (514) 729-8100 + [EMAIL PROTECTED] + ======================
So what is SAP really? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" ----- Original Message ----- From: Pierre-Yves Lemaire <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 01, 2001 5:17 PM Subject: RE: [PHP] a bit off the list but.... > There is these two SAP vendors talking to each other. The first one says: > "I finnally convinced company xyz to buy our products". The second one says: > "It took them a long time to see the light!!". The first one replies: > "Ya, now here comes the darkness..." > > ha ha ha > py > > > At 11:04 PM 5/1/01 -0400, you wrote: > >don't know if its what you're talking about, but try www.sap.com > >also, search google... > > > >-jack > > > >-----Original Message----- > >From: Jacky [mailto:[EMAIL PROTECTED]] > >Sent: Wednesday, May 02, 2001 10:28 AM > >To: [EMAIL PROTECTED] > >Subject: [PHP] a bit off the list but.... > > > > > >It is a bit off the list here but is theer anybody know what is SAP? I mean, > >is that a script language or OS or a DB software? > >cheers > >Jack > >[EMAIL PROTECTED] > >"There is nothing more rewarding than reaching the goal you set for > >yourself" > > > > > >-- > >PHP General Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > >To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > + ====================== > + Pierre-Yves Lem@ire > + E-MedHosting.com > + (514) 729-8100 > + [EMAIL PROTECTED] > + ====================== > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
I try to use configure to config pdflib in FreeBSD when i make it, i got a error messages cd bind/php && make make: no target to make. *** Error code 2 (ignored) -- Thanks & Best Regards Ivan Chen ³¯Åb¤å IT Department ¸ê°TºÞ²z³¡ Direct Line 886 2 27747875 ±M½u 886 2 27747875 Jardine Consumer Marketing Services Taiwan Ltd. ©É©M©Ý®iªÑ¥÷¦³¤½¥q