php-general Digest 22 Feb 2001 01:08:34 -0000 Issue 526 Topics (messages 40941 through 41086): Re: Deleting mySql records based on dates 40941 by: Kevin Cawthorne 40943 by: Christian Reiniger 40945 by: Kevin Cawthorne 40949 by: php3.developersdesk.com Re: email a page as attachment 40942 by: Adrian Murphy Re: access violation 40944 by: Phil Driscoll 40983 by: Wade Halsey Re: Terrible Hosting Experience 40946 by: Brian V Bonini 40951 by: Thomas Deliduka 40959 by: Hrishi 40963 by: Brian V Bonini 40964 by: Jason Bouwmeester 40967 by: Jeff Oien 40974 by: Hrishi 40976 by: Hrishi 40979 by: Jeff Oien 40980 by: Toby Miller 40986 by: Thomas Deliduka 40987 by: Thomas Deliduka 40989 by: Thomas Deliduka 40990 by: Brian V Bonini 40995 by: Gary 41011 by: Boaz Yahav 41016 by: Richard McLean 41023 by: Brian V Bonini 41025 by: Brian V Bonini 41027 by: Brian V Bonini Editing a files hex? 40947 by: Matt 40968 by: Chris Lee Re: reference, foreach, array (FYI) 40948 by: Yasuo Ohgaki IBase Help 40950 by: Niel Zeeman MIME type detection on file 40952 by: Andris Jancevskis 40972 by: Chris Lee 40981 by: Andris Jancevskis 40985 by: Chris Lee Getting the file a PHP script is called from 40953 by: Dan Watt 40975 by: Chris Lee 41054 by: Dan Watt Re: PHP vs. FreeTDS 40954 by: Mark Roedel POST against GET 40955 by: Denis L. Menezes 40977 by: Chris Lee How to pipe a command output into another command 40956 by: Martin Kong 40962 by: Sebastian Stadtlich array headaches 40957 by: Matt Williams 40958 by: Pavel Kalian 40965 by: Matt Williams 40969 by: Jason Stechschulte 40971 by: Matt Williams 41080 by: David Robley Re: .ins file 40960 by: Chris Lee HTTP_REFERER doesn't work with redirects...? 40961 by: Dhaval Desai Re: Document Management System in PHP 40966 by: clayton collie I need some advice 40970 by: Ana Carolina Blanco Abascal Apache & php as a DSO module woes! 40973 by: Bob Horton fopen 40978 by: Boget, Chris Displaying an image, that is pulled from a DB, inline 40982 by: Boget, Chris 40984 by: Chris Lee Session files? (Very Techy Questions) 40988 by: Michael Zornek 40999 by: Sebastian Stadtlich 41008 by: Michael Zornek 41037 by: php3.developersdesk.com Variable Strangeness 40991 by: Jason Murray 40992 by: Boget, Chris 40997 by: php3.developersdesk.com 41002 by: Chris Lee AS400 Insert - The answer 40993 by: Karl J. Stubsjoen Accessing variables from a form 40994 by: Don 41000 by: Chris Lee 41001 by: Pavel Jartsev GD / FreeType2 40996 by: Dale Frohman Handling File Uploads : ASCII/Binary transfers 40998 by: Jeff Gannaway 41006 by: Chris Lee Making .phtml an extension 41003 by: Brandon Orther 41004 by: Jon Haworth 41007 by: Pavel Jartsev 41009 by: Angerer, Chad 41024 by: Michael Stearne Warning: page expired and cache-control header 41005 by: Janet Valade Re: Postgresql session handling 41010 by: Bolt Thrower a good hosting experience 41012 by: Julie Meloni 41035 by: Mark Maggelet 41038 by: Jeff Gannaway 41043 by: ..s.c.o.t.t.. 41045 by: Mark Maggelet 41050 by: Javier Muniz 41068 by: Brian V Bonini Re: HELP! IBase - PHP 41013 by: Brett Bandy Configuring PHP4 on pair.com 41014 by: Jeff Oien 41026 by: Michael Stearne 41029 by: Jeff Oien 41076 by: Jeff Oien How to get information from <input type=image ...> 41015 by: Zenith 41081 by: David Robley How can I log message, by syslogd? 41017 by: Zenith 41036 by: Chris Lee session var not carrying 41018 by: W.D. Re: I am looking for an image library that can do blurs 41019 by: Matt McClanahan I'm confused about Regular Expressions. 41020 by: Kenneth R Zink II 41032 by: php3.developersdesk.com 41056 by: Robin Vickery Form Variables!!!!! 41021 by: Bruno Freire 41022 by: Boget, Chris How to issue a new session without closing the browser? 41028 by: Evelio Martinez Tough one? 41030 by: Mike 41034 by: Jason Stechschulte 41055 by: Robin Vickery 41059 by: Shawn Esplin Print in html <? 41031 by: Brandon Orther 41039 by: Hrishi 41048 by: Sascha Andres Encryption 41033 by: Chris date format for MySQL 41040 by: Jerry Lake 41044 by: Mark Maggelet offshore Dedicated Hosting 41041 by: Randy Johnson Re: I'm still stuck... 41042 by: Ana Carolina Blanco Abascal fread over ftp 41046 by: Mark Heintz PHP Mailing Lists Saving changes to a file 41047 by: YoBro No GIF support in this PHP build??? 41049 by: Ana Carolina Blanco Abascal 41061 by: jason cox Session problems 41051 by: Jack Davis 41053 by: php3.developersdesk.com 41073 by: Martin A. Marques Problems with posix_getpwnam 41052 by: Liam Gibbs PDF Problems 41057 by: Sam Goin 41072 by: Michael Stearne 41077 by: Mike Tuller Trans sid and form posts 41058 by: Shawn Esplin Can someone tell me the command to enable ftp support on php4.03? 41060 by: Brandon Orther 41063 by: jason cox Why Arrays in Forms? ( Was "Accessing variables from a form" ) 41062 by: Brian White 41064 by: jason cox 41065 by: Brian White 41082 by: David Robley Re: CGI BIN PHP 41066 by: Chad Guilette fdf example needed 41067 by: patrick anderson Generating percentages of numbers 41069 by: Blake S. 41075 by: John Guynn 41078 by: Simon Garner MySQL execution order? 41070 by: Don Johnson resizing images 41071 by: Dale Frohman 41084 by: Ron Wills image orientation? 41074 by: Jaxon Re: image orientation/resizing images 41079 by: Brian White 41085 by: Jason Cox ZEND_DEBUG 41083 by: Ron pop textarea field w/ text incl. quotes 41086 by: Paul Warner 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] ----------------------------------------------------------------------
Try something like: $time = time(); // unix time now $day_limit = 28; // how many days to allow $day = 86400; // how many seconds in 24 hours(1 day) $difference = bcmul($day_limit,$day); // multiply the seconds($day) by the day limit($day_limit) $limit = bcsub($time,$difference); $sql = mysql_query("delete from table where date<='".$limit."'", $dbh); Kevin Cawthorne ----- Original Message ----- From: "Thomas Edison Jr." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 12:53 PM Subject: [PHP] Deleting mySql records based on dates > How do I delete records from my mySql database which > are three weeks old?? I will be declaring a date field > for the records but what coding should I do in order > to check if the records are three weeks old and then > erase them so that my data is up to date?? > > Regards, > T. Edison jr. > > ===== > Rahul S. Johari (Director) > ****************************************** > Abraxas Technologies Inc. > Homepage : http://www.abraxastech.com > Email : [EMAIL PROTECTED] > Tel : 91-4546512/4522124 > ******************************************* > > __________________________________________________ > 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] >
On Wednesday 21 February 2001 14:00, Kevin Cawthorne wrote: > Try something like: > > $time = time(); // unix time now > $day_limit = 28; // how many days to allow > > $day = 86400; // how many seconds in 24 hours(1 day) > $difference = bcmul($day_limit,$day); // multiply the seconds($day) by > the day limit($day_limit) > $limit = bcsub($time,$difference); > > $sql = mysql_query("delete from table where date<='".$limit."'", $dbh); Eeeek. Have a look at the Mysql manual sometime soon! $sql = mysql_query("delete from table where datefield <= DATE_SUB(NOW(), INTERVAL $days DAY)", $dbh); -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "These are the people who proudly call themselves "hackers" -- not as the term is now abused by journalists to mean a computer criminal, but in its true and original sense of an enthusiast, an artist, a tinkerer, a problem solver, an expert." - ESR
The reason I used that route was to show the logic. Yes its long- some people may not want a mysql reliant way of doing it. Kevin ----- Original Message ----- From: "Christian Reiniger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 1:11 PM Subject: Re: [PHP] Deleting mySql records based on dates > On Wednesday 21 February 2001 14:00, Kevin Cawthorne wrote: > > > Try something like: > > > > $time = time(); // unix time now > > $day_limit = 28; // how many days to allow > > > > $day = 86400; // how many seconds in 24 hours(1 day) > > $difference = bcmul($day_limit,$day); // multiply the seconds($day) by > > the day limit($day_limit) > > $limit = bcsub($time,$difference); > > > > $sql = mysql_query("delete from table where date<='".$limit."'", $dbh); > > Eeeek. Have a look at the Mysql manual sometime soon! > > $sql = mysql_query("delete from table where datefield <= DATE_SUB(NOW(), > INTERVAL $days DAY)", $dbh); > > -- > Christian Reiniger > LGDC Webmaster (http://sunsite.dk/lgdc/) > > "These are the people who proudly call themselves "hackers" -- > not as the term is now abused by journalists to mean a computer > criminal, but in its true and original sense of an enthusiast, > an artist, a tinkerer, a problem solver, an expert." > > - ESR > > -- > 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] >
Addressed to: "Kevin Cawthorne" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> ** Reply to note from "Kevin Cawthorne" <[EMAIL PROTECTED]> Wed, 21 Feb 2001 13:19:54 -0000 > > The reason I used that route was to show the logic. > > Yes its long- some people may not want a mysql reliant way of doing it. Oh come on! If you are going to use a database why not USE IT fully? If you are going to treat it like a flat file, why bother installing it in the first place? Rick Widmer Internet Marketing Specialists http://www.developersdesk.com
In relation to this class: if i want to let users send an attachment,do i have to first upload the file to the server? ----- Original Message ----- From: Ankur Verma <[EMAIL PROTECTED]> To: kaab kaoutar <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 11:43 AM Subject: Re: [PHP] email a page as attachment > try the HTML mail and attachement class to send the data as an attachment to > the email > > http://phpclasses.upperdesign.com/ > > hope that helps > > best regards > > Ankur Verma > HCL Technologies > A1CD, Sec -16 > Noida, UP > India > > > ----- Original Message ----- > From: "kaab kaoutar" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, February 21, 2001 4:34 PM > Subject: Re: [PHP] email a page as attachment > > > > > > Hi! > > Thanks but i want to send the current page! > > it's like i've generated a page with some results and i want to send that > > page as email body or attachment! > > if i use whet u told me about i will only send the source code wich will > > give me nothing cause therer are no variables sent with it ! > > Thanks > > > > >From: <[EMAIL PROTECTED]> > > >To: kaab kaoutar <[EMAIL PROTECTED]> > > >CC: [EMAIL PROTECTED] > > >Subject: Re: [PHP] email a page as attachment > > >Date: Tue, 20 Feb 2001 19:40:13 +0100 (CET) > > > > > > > how can i email from a page, that page as attachment ? > > >http://www.phpwizard.net/resources/phpMisc/scripts/pretty/mail.php3 > > > > > >Bye, > > > > > >Atom > > > > > > > _________________________________________________________________________ > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
If you are using the ISAPI module, try changing to the cgi version and see if the problem goes away. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -----Original Message----- From: Wade Halsey <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Wednesday, February 21, 2001 10:59 AM Subject: [PHP] access violation hi im running iis5 and php 4.04 i get the following error : PHP has encountered an Access Violation at 78003ABF im pretty sure its a server problem, can anyone confirm this or help out? if it is a server error how can it be fixed? this is quite urgent thanks Wade
hi im running iis5 with php 4.04 as isapi accessing an interbase6 database i get the following error : PHP has encountered an Access Violation at 78003ABF this error occurs once an sql statement is run, the sql statement takes a paramater from a select box and then runs.It runs fine for a number of entries except for one entry that bombs it out with the above error. The query should return about 9900 records. The exact query has run once but since then bombs out with the error. I have made no changes and the same query executes perfectly if i run it through IBConsole im pretty sure its a server problem, can anyone confirm this or help out? if it is a server error how can it be fixed? this is quite urgent thanks Wade Wade Halsey [EMAIL PROTECTED] [EMAIL PROTECTED] Cell: 0835560990 Work: (043) 701 4226
Hmmmm, I have to tell you, and perhaps your not aware, but I've gone to your site many times and had it not come up. Then have the traceroutes reveal that the site was unreachable at it's final destination. -Brian *********** > -----Original Message----- > From: Boaz Yahav [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 2:16 AM > To: '[EMAIL PROTECTED]'; Krznaric Michael; 'Thomas Deliduka'; PHP > List > Subject: RE: [PHP] Terrible Hosting Experience > > > Guys, > > When you decide you want to pay for hosting and get the best > service possible check out : > > http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm > > This is your one stop shop for hosting. WeberDev.com is hosted there > and I can tell you that their service is amazing. They are fast, reliable > and more than anything, very professional (specially in PHP / MySQL). > > Sincerely > > berber > > Visit http://www.weberdev.com Today!!! > To see where PHP might take you tomorrow. > > > -----Original Message----- > From: Brian V Bonini [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 1:20 AM > To: Krznaric Michael; 'Thomas Deliduka'; PHP List > Subject: RE: [PHP] Terrible Hosting Experience > > > Hmmm, last I heard they were using an OC-3 circuit, > that's not too impressive..... lots of those floating > around..... We've been running on an OC-48 for some > time now.... > > > -----Original Message----- > > From: Krznaric Michael [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, February 20, 2001 5:56 PM > > To: 'Thomas Deliduka'; PHP List > > Subject: RE: [PHP] Terrible Hosting Experience > > > > > > I was about to buy a server from Alabanza. Am I ever glad I > didn't. The > > only thing impressive about them is their connection. And for > all I know > > they could be lying about that, as well. > > > > Mike > > > > -----Original Message----- > > From: Thomas Deliduka [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, February 20, 2001 3:18 PM > > To: PHP List > > Subject: Re: [PHP] Terrible Hosting Experience > > > > > > On 2/20/01 3:17 PM this was written: > > > > > We host and provide servers to a good number > > > of clients that have come over from Alabanza. > > > All of them complaining of similar experiences.... > > > I think that company has been plagued for a > > > long time.... > > > > I agree. I have dealt with them on one level or another since 1997. They > > used to have great customer service and skillful people. Well, > > those people > > left out of frustration and better opportunities and they were > > replaced with > > idiots. These idiots that man their help desks and other > > services now have > > very little to know about how to even work a computer. > > > > I know that they have their help their help-desk in a college town and > > employ people from the university. Some of the CS reps are > philosophy and > > other liberal arts students. > > > > I called one day to give my updated credit card information to a > > billing rep > > but they weren't in so I got a CS rep. They said, "You can update it > > online", I said, "Your control panel isn't behind a secure > server. I will > > not update my Credit card information online." I asked her > write it down, > > put it in an envelope and deliver it to the billing rep by hand. > > The CS rep > > said, "No problem." > > > > About a week later I received an e-mail. I was forwarded from the > > CS rep the > > conversation that took place 0VER E-MAIL with my CC information > > included in > > the e-mail from the very first sending. I was so mad. I told > her that she > > just compromised my CC number! She said, "But I sent it right to > > her in the > > office." I said, "You office is in a whole-nother state from where the > > server is. It traveled unsecurely from your location to the > > server and back > > again several times in the last few days." she was clueless. > > > > Okay, I'm shutting up now. > > -- > > > > Thomas Deliduka > > IT Manager > > ------------------------- > > New Eve Media > > The Solution To Your Internet Angst > > http://www.neweve.com/ > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > 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 2/20/01 5:55 PM this was written: > I was about to buy a server from Alabanza. Am I ever glad I didn't. The > only thing impressive about them is their connection. And for all I know > they could be lying about that, as well. Usdatacenters.com has a great connection. We've had great help with them. They may be a tad high but their support is impeccable. -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/
while we're on this topic, i'd suggest people take a look at pair networks: http://www.pair.net i've had some good experience with them, almost complete control of the server (even on virtual hosts). they have the best support i have seen till date, and some of the best connections i've seen in the industry. cheers, Hrishi
Check out http://www.hostpro.com/hosting/shared/unix_products.html It's a semi-dedicated virtual environment with complete root access. -Brian > -----Original Message----- > From: Hrishi [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 10:10 AM > To: PHP List > Subject: Re: [PHP] Terrible Hosting Experience > > > > while we're on this topic, i'd suggest people take a look at pair > networks: > > http://www.pair.net > > i've had some good experience with them, almost complete control of the > server (even on virtual hosts). > they have the best support i have seen till date, and some of the best > connections i've seen in the industry. > > cheers, > Hrishi > > -- > 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] > >
Speaking of hosting companies, has anyone had experience with a company called www.nomonthlyfees.com? TIA, jb -----Original Message----- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 8:24 AM To: Hrishi; PHP List Subject: RE: [PHP] Terrible Hosting Experience Check out http://www.hostpro.com/hosting/shared/unix_products.html It's a semi-dedicated virtual environment with complete root access. -Brian > -----Original Message----- > From: Hrishi [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 10:10 AM > To: PHP List > Subject: Re: [PHP] Terrible Hosting Experience > > > > while we're on this topic, i'd suggest people take a look at pair > networks: > > http://www.pair.net > > i've had some good experience with them, almost complete control of the > server (even on virtual hosts). > they have the best support i have seen till date, and some of the best > connections i've seen in the industry. > > cheers, > Hrishi > > -- > 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 would agree. I've had clients hosted on pair for quite a while. They are still using PHP 3 however. Jeff Oien > while we're on this topic, i'd suggest people take a look at pair networks: > > http://www.pair.net > > i've had some good experience with them, almost complete control of the > server (even on virtual hosts). > they have the best support i have seen till date, and some of the best > connections i've seen in the industry. > > cheers, > Hrishi
On Wednesday 21 February 2001 20:54, Jeff Oien wrote: > I would agree. I've had clients hosted on pair for quite a while. > They are still using PHP 3 however. 'almost complete control of the server' includes the ability to compile your own PHP and use it to run the place :) of course, this doesnt mean you get to hack at the modules. > Jeff Oien > > > while we're on this topic, i'd suggest people take a look at pair > > networks: > > > > http://www.pair.net > > > > i've had some good experience with them, almost complete control of the > > server (even on virtual hosts). > > they have the best support i have seen till date, and some of the best > > connections i've seen in the industry. > > > > cheers, > > Hrishi
On Wednesday 21 February 2001 20:54, Jeff Oien wrote: > I would agree. I've had clients hosted on pair for quite a while. > They are still using PHP 3 however. 'almost complete control of the server' includes the ability to compile your own PHP and use it to run the place :) of course, this doesnt mean you get to hack at the modules. > Jeff Oien > > > while we're on this topic, i'd suggest people take a look at pair > > networks: > > > > http://www.pair.net > > > > i've had some good experience with them, almost complete control of the > > server (even on virtual hosts). > > they have the best support i have seen till date, and some of the best > > connections i've seen in the industry. > > > > cheers, > > Hrishi
> On Wednesday 21 February 2001 20:54, Jeff Oien wrote: > > I would agree. I've had clients hosted on pair for quite a while. > > They are still using PHP 3 however. > 'almost complete control of the server' includes the ability to compile your > own PHP and use it to run the place :) of course, this doesnt mean you get to > hack at the modules. Is there documentation anywhere about how I can do that? I've only installed PHP on my Windows machine. Thanks. Jeff Oien
Here's another story to use as an "I told you so" if you choose to try them anyway. CI Host. We have been hosting with them for almost two years now. The only reason we never left was because we couldn't find anyone else offering the same redundant connections that we could actually verify. A lot of people claim to have these awesome networks, but have you ever actually tried to find out detailed information about their network? You know, like location, security, who their providers are, etc. Most likely they are not a real hosting provider, but just someone else with a dedicated hosting package on someone else's network. You'd be amazed. Here are just some of the situations we've had to endure with CI Host. We were hosting a NT client who we wrote a CGI application for. When one of our admins put the CGI application in the cgi-bin and attempted to execute it they got a permission error saying they couldn't execute the application. So they went to the support chat to try to get one of the technical support staff to see why the permissions were failing. After 30 minutes of waiting on others currently being helped they started evaluating the situation. After our admin explained what was going on the technician said, you shouldn't be allowed to execute EXE's on our servers. Then for the shocker. The technician revoked our execute permissions and muted our admin in chat. This of course, not only prevented our application from working, but every other stock cgi which is provided by CI Host in the cgi-bin with all new hosting accounts. Needless to say this took several days to sort out and there was no apology. We signed up some dial-up accounts for a few of our employees to use from home. We did the request online and the accounts were activated the next day. These employees used these accounts for at least four months. We never received invoices for these accounts, though we asked every month why they were not on the invoices and they would say they'd look into it, which they never did. At the end of that four months we cancelled the dial-up accounts as those employees finally got cable connections at home so they didn't need us to provide them with dial-up access any longer. Anyhow, it was 2 months after that when we finally got an invoice. It was for all "6" months (they never cancelled the accounts) and they billed us for a dial-up package that we never activated. We simply activated a normal dial-up, but they billed us for some deluxe dial-up that included hosting and a slew of other features that we never used. So instead of $25.00 a month for each account for four months which should have been around $200.00 we were billed around $720.00 for 6 months of $60.00 a month dial-ups. It took 7 additional months to get that straightened out which caused our hosting account to be de-activated several times in the process because of our refusal to pay it. Even though the account was placed under review and promised it would not be shut down. On at least 4 different occasions we have been hung up on by tech support. Once they even deleted all of the user accounts to MySQL on one of the servers we had a site on. This took several days to get straightened out. Their billing is anything but acceptable. Their technical support is sporadic at best. They seem to have outgrown their abilities and it shows in their day to day processes. While there are so many other things that I could post about it's really just ranting as we have finally found an alternative that we've been testing out for the past few months and we've been very happy with the results. Check out MyBizHosting at http://www.mybizhosting.com/ They're fairly new, but their connection is just awesome and the technical support is great. While they don't give away the same amount of storage that CI Host does with all of their accounts you can upgrade the accounts whenever you need to. Besides, how many sites actually use 600MB of space? We only have one client that even exceeds 150MB. They have online billing and invoice history (which is actually accurate and current, unlike CI Host's online billing system). Their control panel (which is provided with every account puts CI Host's Monster Controls to shame) is also excellent. It allows you make changes to just about any aspect of your hosting account. So check them out if you haven't already. They've managed to impress us so far. Toby ----- Original Message ----- From: "Thomas Deliduka" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 9:21 AM Subject: Re: [PHP] Terrible Hosting Experience > On 2/20/01 5:55 PM this was written: > > > I was about to buy a server from Alabanza. Am I ever glad I didn't. The > > only thing impressive about them is their connection. And for all I know > > they could be lying about that, as well. > > Usdatacenters.com has a great connection. We've had great help with them. > They may be a tad high but their support is impeccable. > -- > > Thomas Deliduka > IT Manager > ------------------------- > New Eve Media > The Solution To Your Internet Angst > http://www.neweve.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]
On 2/21/01 10:14 AM this was written: > Speaking of hosting companies, has anyone had experience with a company > called www.nomonthlyfees.com? You can see by the "Data Center" Information: -- The NoMonthlyFees.com NOC located in Baltimore, Maryland is OnNet with GlobalCenter (GC), Qwest Communications and GTE through three separate bandwidth-on-demand connections which enter Baltimore in our building. --- They are a reseller of Alabanza Servers. I wouldn't go with them. -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/
On 2/21/01 10:23 AM this was written: > Check out http://www.hostpro.com/hosting/shared/unix_products.html > > It's a semi-dedicated virtual environment with complete root access. I've heard good things about Host Pro. -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/
On 2/21/01 10:53 AM this was written: > Check out MyBizHosting at > http://www.mybizhosting.com/ Hope it holds up.... They are also an Alabanza Dedicated server client: From: http://www.mybizhosting.com/network/network.shtml The MyBizHosting NOC located in Baltimore, Maryland is OnNet with GlobalCenter (GC), Qwest Communications and GTE through three separate bandwidth-on-demand connections which enter Baltimore in our building. -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/
This is actually a Vservers product. Vservers merged with HostPro back about 8 months ago. They continue to develop their own product line under the HostPro moniker with HostPro providing the font-line tech support and billing and of course taking all the credit.... ;-) It's a very flexible package, in fact the most flexible I've seen in a shared environment, hosted in a Seattle based data center connected via OC-48's (2.5 Gbps I believe?) -Brian ************ > -----Original Message----- > From: Thomas Deliduka [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 11:13 AM > To: PHP List > Subject: Re: [PHP] Terrible Hosting Experience > > > On 2/21/01 10:23 AM this was written: > > > Check out http://www.hostpro.com/hosting/shared/unix_products.html > > > > It's a semi-dedicated virtual environment with complete root access. > > I've heard good things about Host Pro. > -- > > Thomas Deliduka > IT Manager > ------------------------- > New Eve Media > The Solution To Your Internet Angst > http://www.neweve.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] > >
Thomas Deliduka wrote: > On 2/21/01 10:23 AM this was written: > > >> Check out http://www.hostpro.com/hosting/shared/unix_products.html >> >> It's a semi-dedicated virtual environment with complete root access. > > > I've heard good things about Host Pro. I disagree! We have had to pull clients off of them. Their site would go down for days at a time and their email would go down the same way. If you emailed support you might hear back from them in a day or two. If you called support, you would be lucky if you were not left on hold for 30 minutes or more. The straw that broke the camels back, they change their email system and didn't notify our clients. In the end it took our clients lawyer to completely break off with them. they kept bill and writing threating letters for months. Gary
I'm at my site all day and I'm coming from Israel. I never had a downtime problem. As for service, I forwarded your mail to them and it took them about 5 minutes to reply that they would be more than happy to get your IP and go over any problem you might have reaching WeberDev.com. Now, how is that for service? Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -----Original Message----- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 3:45 PM To: Boaz Yahav; [EMAIL PROTECTED]; Krznaric Michael; 'Thomas Deliduka'; PHP List Subject: RE: [PHP] Terrible Hosting Experience Hmmmm, I have to tell you, and perhaps your not aware, but I've gone to your site many times and had it not come up. Then have the traceroutes reveal that the site was unreachable at it's final destination. -Brian *********** > -----Original Message----- > From: Boaz Yahav [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 2:16 AM > To: '[EMAIL PROTECTED]'; Krznaric Michael; 'Thomas Deliduka'; PHP > List > Subject: RE: [PHP] Terrible Hosting Experience > > > Guys, > > When you decide you want to pay for hosting and get the best > service possible check out : > > http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm > > This is your one stop shop for hosting. WeberDev.com is hosted there > and I can tell you that their service is amazing. They are fast, reliable > and more than anything, very professional (specially in PHP / MySQL). > > Sincerely > > berber > > Visit http://www.weberdev.com Today!!! > To see where PHP might take you tomorrow. > > > -----Original Message----- > From: Brian V Bonini [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 1:20 AM > To: Krznaric Michael; 'Thomas Deliduka'; PHP List > Subject: RE: [PHP] Terrible Hosting Experience > > > Hmmm, last I heard they were using an OC-3 circuit, > that's not too impressive..... lots of those floating > around..... We've been running on an OC-48 for some > time now.... > > > -----Original Message----- > > From: Krznaric Michael [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, February 20, 2001 5:56 PM > > To: 'Thomas Deliduka'; PHP List > > Subject: RE: [PHP] Terrible Hosting Experience > > > > > > I was about to buy a server from Alabanza. Am I ever glad I > didn't. The > > only thing impressive about them is their connection. And for > all I know > > they could be lying about that, as well. > > > > Mike > > > > -----Original Message----- > > From: Thomas Deliduka [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, February 20, 2001 3:18 PM > > To: PHP List > > Subject: Re: [PHP] Terrible Hosting Experience > > > > > > On 2/20/01 3:17 PM this was written: > > > > > We host and provide servers to a good number > > > of clients that have come over from Alabanza. > > > All of them complaining of similar experiences.... > > > I think that company has been plagued for a > > > long time.... > > > > I agree. I have dealt with them on one level or another since 1997. They > > used to have great customer service and skillful people. Well, > > those people > > left out of frustration and better opportunities and they were > > replaced with > > idiots. These idiots that man their help desks and other > > services now have > > very little to know about how to even work a computer. > > > > I know that they have their help their help-desk in a college town and > > employ people from the university. Some of the CS reps are > philosophy and > > other liberal arts students. > > > > I called one day to give my updated credit card information to a > > billing rep > > but they weren't in so I got a CS rep. They said, "You can update it > > online", I said, "Your control panel isn't behind a secure > server. I will > > not update my Credit card information online." I asked her > write it down, > > put it in an envelope and deliver it to the billing rep by hand. > > The CS rep > > said, "No problem." > > > > About a week later I received an e-mail. I was forwarded from the > > CS rep the > > conversation that took place 0VER E-MAIL with my CC information > > included in > > the e-mail from the very first sending. I was so mad. I told > her that she > > just compromised my CC number! She said, "But I sent it right to > > her in the > > office." I said, "You office is in a whole-nother state from where the > > server is. It traveled unsecurely from your location to the > > server and back > > again several times in the last few days." she was clueless. > > > > Okay, I'm shutting up now. > > -- > > > > Thomas Deliduka > > IT Manager > > ------------------------- > > New Eve Media > > The Solution To Your Internet Angst > > http://www.neweve.com/ > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > 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] >
At 11:32 AM -0500 21/2/01, Brian V Bonini wrote: >This is actually a Vservers product. Vservers merged with >HostPro back about 8 months ago. They continue to develop >their own product line under the HostPro moniker with HostPro >providing the font-line tech support and billing and of course >taking all the credit.... ;-) >It's a very flexible package, in fact the most flexible I've >seen in a shared environment, hosted in a Seattle based data >center connected via OC-48's (2.5 Gbps I believe?) The new accounts are the Freedom accounts. Great setup, speed, functionality. Pricing is competitive-ish too. VServers have been bought by HostPro and I have to say that the level of service has gone down considerably since the move. VServers had 24/7 support and I think the longest it ever actually took to get something done (not just hear back from them) in the 9 months or so that I've been with them was about an hour. HostPro is currently running at around the 24-72 hour mark. Definite culture shock. The premium that I was happily paying for VServers is starting to lose it's value to me - especially seeing the Freedom accounts (which AFAIK will replace the VServer line of products) are lacking some of the flexibility in the lower end accounts that was present in the previous setups at the same price point. cheers, Richard
Hmmm, well I guess everyone has different experiences. We've been with them (Vservers) for 5 years now and never had a single problem with downtime... > -----Original Message----- > From: Gary [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 11:49 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Terrible Hosting Experience > > > Thomas Deliduka wrote: > > > On 2/21/01 10:23 AM this was written: > > > > > >> Check out http://www.hostpro.com/hosting/shared/unix_products.html > >> > >> It's a semi-dedicated virtual environment with complete root access. > > > > > > I've heard good things about Host Pro. > > I disagree! We have had to pull clients off of them. Their site would go > down for days at a time and their email would go down the same way. If > you emailed support you might hear back from them in a day or two. If > you called support, you would be lucky if you were not left on hold for > 30 minutes or more. The straw that broke the camels back, they change > their email system and didn't notify our clients. > > In the end it took our clients lawyer to completely break off with them. > they kept bill and writing threating letters for months. > > Gary > > > -- > 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] > >
Yes, the tech support has been slow lately. I'm told they are receiving an unforeseen amount of inquiries with the release of the Freedom line due to the large number of non-Unix savvy users trying to use the new line. I'm also told that they are in the process of beefing up there tech support dept. to handle the additional load. After complaining to my service rep about this he now takes my support inquires and moves them directly into an accelerated queue so we can get quicker responses. I was told the freedom line will not replace the old Vserver lite, pro, merchant line. But your right about the flexibility in the lower end product..... -Brian > -----Original Message----- > From: Richard McLean [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 12:48 PM > To: [EMAIL PROTECTED] > Cc: PHP List > Subject: RE: [PHP] Terrible Hosting Experience > > > At 11:32 AM -0500 21/2/01, Brian V Bonini wrote: > >This is actually a Vservers product. Vservers merged with > >HostPro back about 8 months ago. They continue to develop > >their own product line under the HostPro moniker with HostPro > >providing the font-line tech support and billing and of course > >taking all the credit.... ;-) > >It's a very flexible package, in fact the most flexible I've > >seen in a shared environment, hosted in a Seattle based data > >center connected via OC-48's (2.5 Gbps I believe?) > > > The new accounts are the Freedom accounts. Great setup, > speed, functionality. Pricing is competitive-ish too. > > VServers have been bought by HostPro and I have to say that > the level of service has gone down considerably since the move. > VServers had 24/7 support and I think the longest it ever actually > took to get something done (not just hear back from them) in the > 9 months or so that I've been with them was about an hour. > > HostPro is currently running at around the 24-72 hour mark. > Definite culture shock. The premium that I was happily paying > for VServers is starting to lose it's value to me - especially seeing > the Freedom accounts (which AFAIK will replace the VServer > line of products) are lacking some of the flexibility in the lower end > accounts that was present in the previous setups at the same > price point. > > > cheers, > Richard >
That was just an FYI....... If it happens again I'll let you know and you can pursue it with them. > -----Original Message----- > From: Boaz Yahav [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 12:22 PM > To: '[EMAIL PROTECTED]'; Boaz Yahav; Krznaric Michael; 'Thomas > Deliduka'; PHP List > Subject: RE: [PHP] Terrible Hosting Experience > > > I'm at my site all day and I'm coming from Israel. > I never had a downtime problem. > > As for service, I forwarded your mail to them and it took them > about 5 minutes to reply that they would be more than happy > to get your IP and go over any problem you might have reaching > WeberDev.com. > > Now, how is that for service? > > Sincerely > > berber > > Visit http://www.weberdev.com Today!!! > To see where PHP might take you tomorrow. > > > -----Original Message----- > From: Brian V Bonini [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 3:45 PM > To: Boaz Yahav; [EMAIL PROTECTED]; Krznaric Michael; 'Thomas Deliduka'; > PHP List > Subject: RE: [PHP] Terrible Hosting Experience > > > Hmmmm, I have to tell you, and perhaps your not aware, > but I've gone to your site many times and had it not > come up. Then have the traceroutes reveal that the site > was unreachable at it's final destination. > > -Brian > *********** > > > -----Original Message----- > > From: Boaz Yahav [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, February 21, 2001 2:16 AM > > To: '[EMAIL PROTECTED]'; Krznaric Michael; 'Thomas Deliduka'; PHP > > List > > Subject: RE: [PHP] Terrible Hosting Experience > > > > > > Guys, > > > > When you decide you want to pay for hosting and get the best > > service possible check out : > > > > http://www.weberdev.com/index.php3?GoTo=phenominet/prices.htm > > > > This is your one stop shop for hosting. WeberDev.com is hosted there > > and I can tell you that their service is amazing. They are > fast, reliable > > and more than anything, very professional (specially in PHP / MySQL). > > > > Sincerely > > > > berber > > > > Visit http://www.weberdev.com Today!!! > > To see where PHP might take you tomorrow. > > > > > > -----Original Message----- > > From: Brian V Bonini [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, February 21, 2001 1:20 AM > > To: Krznaric Michael; 'Thomas Deliduka'; PHP List > > Subject: RE: [PHP] Terrible Hosting Experience > > > > > > Hmmm, last I heard they were using an OC-3 circuit, > > that's not too impressive..... lots of those floating > > around..... We've been running on an OC-48 for some > > time now.... > > > > > -----Original Message----- > > > From: Krznaric Michael [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, February 20, 2001 5:56 PM > > > To: 'Thomas Deliduka'; PHP List > > > Subject: RE: [PHP] Terrible Hosting Experience > > > > > > > > > I was about to buy a server from Alabanza. Am I ever glad I > > didn't. The > > > only thing impressive about them is their connection. And for > > all I know > > > they could be lying about that, as well. > > > > > > Mike > > > > > > -----Original Message----- > > > From: Thomas Deliduka [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, February 20, 2001 3:18 PM > > > To: PHP List > > > Subject: Re: [PHP] Terrible Hosting Experience > > > > > > > > > On 2/20/01 3:17 PM this was written: > > > > > > > We host and provide servers to a good number > > > > of clients that have come over from Alabanza. > > > > All of them complaining of similar experiences.... > > > > I think that company has been plagued for a > > > > long time.... > > > > > > I agree. I have dealt with them on one level or another since > 1997. They > > > used to have great customer service and skillful people. Well, > > > those people > > > left out of frustration and better opportunities and they were > > > replaced with > > > idiots. These idiots that man their help desks and other > > > services now have > > > very little to know about how to even work a computer. > > > > > > I know that they have their help their help-desk in a college town and > > > employ people from the university. Some of the CS reps are > > philosophy and > > > other liberal arts students. > > > > > > I called one day to give my updated credit card information to a > > > billing rep > > > but they weren't in so I got a CS rep. They said, "You can update it > > > online", I said, "Your control panel isn't behind a secure > > server. I will > > > not update my Credit card information online." I asked her > > write it down, > > > put it in an envelope and deliver it to the billing rep by hand. > > > The CS rep > > > said, "No problem." > > > > > > About a week later I received an e-mail. I was forwarded from the > > > CS rep the > > > conversation that took place 0VER E-MAIL with my CC information > > > included in > > > the e-mail from the very first sending. I was so mad. I told > > her that she > > > just compromised my CC number! She said, "But I sent it right to > > > her in the > > > office." I said, "You office is in a whole-nother state from where the > > > server is. It traveled unsecurely from your location to the > > > server and back > > > again several times in the last few days." she was clueless. > > > > > > Okay, I'm shutting up now. > > > -- > > > > > > Thomas Deliduka > > > IT Manager > > > ------------------------- > > > New Eve Media > > > The Solution To Your Internet Angst > > > http://www.neweve.com/ > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > -- > > 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] > > >
Does anyone know how I can do this? I've got the file but before I write it to the server I was to change a hex value in the file, does anyone know how this could be done? Thanks, matt
edit the file with php or an editor like ultraedit? in ultraedit hit Ctrl-H in php its no different then it would be opening an ascii file. no different, just make sure to use fwrite() http://www.php.net/manual/en/function.fwrite.php <?php function compress_output($output) { $crc = pack('V',crc32($output)); $size = pack('V',strlen($output)); $output = gzcompress($output, 9); $data = "\x1f\x8b\x08\x00\x00\x00\x00\x00"; $data .= substr($output, 0, strlen($output) - 4); $data .= $crc; $data .= $size; return $data; } $file_name = '/tmp/somefile.txt'; $file_p = fopen($filename, 'w+'); $file_data = fread($file_p, filesize($filename)); $file_data = compress_output($file_data); fwrite($fp, $file_data, strlen($file_data)); ?> -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Matt"" <[EMAIL PROTECTED]> wrote in message 008401c09c0c$14348220$64019998@mattt">news:008401c09c0c$14348220$64019998@mattt... Does anyone know how I can do this? I've got the file but before I write it to the server I was to change a hex value in the file, does anyone know how this could be done? Thanks, matt
I've found out what's wrong with PHP4 partially. It might help people who are getting errors - document contains no data or like. You may get various strange PHP4 behavior with (possibly without) combination of reference, foreach and array if you don't pass expected values to functions. I've posted Bug Report to www.php.net BugID#9369 Take a look at comments in test2.php -- Yasuo Ohgaki Previous Post was Re: [PHP] Strange behavior: Cannot exit as expected AND Script starts from the beginning, executed TWICE. Anyone? > >[If you have comments on this please send e-mail to me] > >I think PHP4.0.4pl1 has unsafe code for 8bit char codes. I suspect PHP4 >does >this: > >PHP4 behavior: Script is executed TWICE and included file is not processed >1) PHP parse script and start executing. > - The script check username data in db, if there is the same username, >return error. If not, insert new username into db. >2) PHP encounters 8bit char unclean code some where near include() and >restart script execution from the beginning for some reason. > - The script written to include() file for successful user >registration. > >PHP inserts new username into db at 1st execution, then it finds the same >username in db and return error for 2nd execution. If I put die('died >here') >BEFORE include(), PHP stops execution and outputs 'died here'. but not >AFTER >include(). I was using 'ob_gzhandler', disabling it does not make >difference. > >This happened when user registration check/insert was done in function >defined in included file. PHP also does not log any errors. > >PHP4 behavior: Script does not process included file and outputs default >HTML. >1) PHP parse script and start executing. >2) PHP encounters 8bit char unclean code some where near include(), and >outputs default HTML for null output and stops execution for some reason. > >Therefore, I can see output from die('died here') if I put BEFORE >include(), >but not AFTER include(). > >This happened when user registration check/insert was done in the script >itself. The script logic is identical. PHP does not log any errors. > >I use EUC (Extended Unix Code), EUC-JP to be specific, for char code, >which >is supposed to work well with 8bit char code clean programs. > >[Environment] >OS: RadHat Linux7.0.1/ja(i386) FTP version (no glibc update) >Apache: Apache 1.3.17 w/ mod_ssl-2.8.0, mod_gzip-1.13.17a. build from >source >PHP: PHP4.0.4pl1 w/ pgsql-7.0.3, gd-1.8.3, mhash, mcript and others. build >from source. > - ECU-JP for all html, php scripts >PHP Configure: >'./configure' '--with-apxs' '--disable-short-tags' '--enable-bcmath' >'--with-zlib-dir' '--enable-ftp' '--with-imap' '--with-mhash' >'--with-mcrypt' '--with-pgsql' '--with-swf' '--enable-sysvsem' >'--enable-sysvshm' '--with-zlib' '--enable-iconv' '--with-kakasi' >'--enable-jstring' '--enable-mbregex' '--with-namazu' >'--with-gd=../gd-1.8.3/' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr/X11R6' > >I cannot think of any reasonable explanation for this strange PHP4 behavior >other than possibility that glibc has bugs. (8bit char unsafe code, etc. I >haven't research about my exact glibc version nor bugs yet.) > >Any comments appreciated. > >-- >Yasuo Ohgaki > > >-- >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] > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Hi Does anyone know where I can get hold of someone ( or someone here maybe) that has a high volume production site running PHP and interbase6? I would appreciate some assistance thank you Niel Zeeman Tel(W): (043)7014247 Cell: 082 651 4083 eMail: [EMAIL PROTECTED]
Hi, is there suggestions how to determine what mime type is file? for example: .word -> application/wnd-word .pdf -> application/pdf Files are on local disk. Not accessible from web server. I'm interesting to determine it on linux (Apache) and win32(IIS 4.0) platforms. TIA, -- Andris mailto:[EMAIL PROTECTED]
when your uploading a file <input type=file name=db_file> php will create three variables, $db_file $db_file_name $db_file_type $db_file_type should have the mime/type. now should does NOT mean will. some browsers (I dont have a list) will not send the correct type at all. you can use linux's file command [lee@server streaming]$ file usermanual.pdf usermanual.pdf: PDF document, version 1.3 [lee@server streaming]$ this will not give you the mime-type though. you can also use grep this will only give you what the server thinks is the mime-type, not what the client feels the mime-type is [lee@server streaming]$ grep "pdf" /etc/mime.types application/pdf pdf [lee@server streaming]$ If your just curious of what a mime/type is without uploading it (I dont think you are) then youve answered your own question. "Files are on local disk. Not accessible from web server. " if php can not access the files then how could it possibly ever find this files mime-type ? -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Andris Jancevskis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > is there suggestions how to determine what mime type is file? > for example: > .word -> application/wnd-word > .pdf -> application/pdf > > Files are on local disk. Not accessible from web server. > > I'm interesting to determine it on linux (Apache) and win32(IIS 4.0) > platforms. > > TIA, > -- > Andris > mailto:[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] >
My files are outside web server. These files can not be accessible from http://...., but anly user running web pages (nobody or IUSR_) have access. This limitation is to secure user files. My primary target is to deliver files to user using web browser. If I use require() or insert it is not possible in win32, but if file contains valid php code it is *very big* security hole. How to do this. Mime type tells to browser, wht to do. I can only display binary stream like text ... Could You know, how to send file like .dll, .exe, .php to client without executing on server-side? Andris mailto:[EMAIL PROTECTED] +--------------------------- Wednesday, February 21, 2001, 5:43:51 PM, you wrote: > when your uploading a file No, some of these are uploaded, some not ... > [lee@server streaming]$ grep "pdf" /etc/mime.types > application/pdf pdf > [lee@server streaming]$ > If your just curious of what a mime/type is without uploading it (I dont > think you are) then youve answered your own question. > "Files are on local disk. Not accessible from web server. " > if php can not access the files then how could it possibly ever find this > files mime-type ? see above ... Andris
<?php Header("Content-Type: application/pdf "); Header("Content-Disposition: filename=miningsuplus-search-results.pdf "); readfile('/tmp/somefile.pdf'); ?> I use this to allow a user to download a pdf, most browser want to view it in the browser, I wanted them to be able to save the file, not view / run it. Is this what your looking for ? -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Andris Jancevskis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > My files are outside web server. These files can not be accessible > from http://...., but anly user running web pages (nobody or IUSR_) > have access. This limitation is to secure user files. > > My primary target is to deliver files to user using web browser. If I > use require() or insert it is not possible in win32, but if file > contains valid php code it is *very big* security hole. > > How to do this. Mime type tells to browser, wht to do. > I can only display binary stream like text ... > > Could You know, how to send file like .dll, .exe, .php to client > without executing on server-side? > > Andris > mailto:[EMAIL PROTECTED] > > +--------------------------- > Wednesday, February 21, 2001, 5:43:51 PM, you wrote: > > > when your uploading a file > > No, some of these are uploaded, some not ... > > > [lee@server streaming]$ grep "pdf" /etc/mime.types > > application/pdf pdf > > [lee@server streaming]$ > > > If your just curious of what a mime/type is without uploading it (I dont > > think you are) then youve answered your own question. > > > "Files are on local disk. Not accessible from web server. " > > > if php can not access the files then how could it possibly ever find this > > files mime-type ? > > see above ... > > Andris > > > > -- > 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] >
As a beginner to PHP4, I wrote a simple logging program (since my server does not have the best logging functionality) to track where users go on my website. The way I am implementing it is by including it as a <! --#include virtual="myphpscript.php" --> inside another include file, the footer to all of my pages so, it works out like this: HTML Page -> Included footer -> Included PHP script Now, the HTTP_ENV_VARS work fine even in this setup, and return HTTP_REFERRER correctly as the page I visited before coming to the current page. But that is not what I want. I would like a way, without putting the php script inside my HTML files, to be able to determine what page called the script. Any help would be appreciated! Thanks
$PHP_SELF echo $PHP_SELF; -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Dan Watt"" <[EMAIL PROTECTED]> wrote in message 970j62$6j0$[EMAIL PROTECTED]">news:970j62$6j0$[EMAIL PROTECTED]... > As a beginner to PHP4, I wrote a simple logging program (since my server > does not have the best logging functionality) to track where users go on my > website. The way I am implementing it is by including it as a <! --#include > virtual="myphpscript.php" --> inside another include file, the footer to all > of my pages > so, it works out like this: > HTML Page > -> Included footer > -> Included PHP script > > Now, the HTTP_ENV_VARS work fine even in this setup, and return > HTTP_REFERRER correctly as the page I visited before coming to the current > page. But that is not what I want. I would like a way, without putting the > php script inside my HTML files, to be able to determine what page called > the script. Any help would be appreciated! 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] >
That returns the PHP file. I am including the PHP file via Server Side Includes. I want a way to detect what file it was included from. ""Chris Lee"" <[EMAIL PROTECTED]> wrote in message 970nbs$1ah$[EMAIL PROTECTED]">news:970nbs$1ah$[EMAIL PROTECTED]... > $PHP_SELF > > echo $PHP_SELF; > > > -- > > > Chris Lee > Mediawaveonline.com > > em. [EMAIL PROTECTED] > > ph. 250.377.1095 > ph. 250.376.2690 > fx. 250.554.1120 > > > ""Dan Watt"" <[EMAIL PROTECTED]> wrote in message > 970j62$6j0$[EMAIL PROTECTED]">news:970j62$6j0$[EMAIL PROTECTED]... > > As a beginner to PHP4, I wrote a simple logging program (since my server > > does not have the best logging functionality) to track where users go on > my > > website. The way I am implementing it is by including it as a > <! --#include > > virtual="myphpscript.php" --> inside another include file, the footer to > all > > of my pages > > so, it works out like this: > > HTML Page > > -> Included footer > > -> Included PHP script > > > > Now, the HTTP_ENV_VARS work fine even in this setup, and return > > HTTP_REFERRER correctly as the page I visited before coming to the current > > page. But that is not what I want. I would like a way, without putting the > > php script inside my HTML files, to be able to determine what page called > > the script. Any help would be appreciated! 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] > > > > > > -- > 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] >
> -----Original Message----- > From: Scott Fletcher [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 20, 2001 5:03 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] PHP vs. FreeTDS > > > I can't user mssql_connect, I'm using odbc_connect! Most of > the websites for my company use odbc_connect. Because we sometime > move the website from unix to windows and back. So, it is more > reliable that way. If you're using the odbc functions, then what's the purpose of FreeTDS? --- Mark Roedel | "A wise man once told me that everything in Systems Programmer | life is either a lesson or a joke. Our task LeTourneau University | is to figure out which is which..." Longview, Texas, USA | -- Chris Savage
Hello friends. I am running PHP4 on an Intel Win NT server 4 sp6 machine. When I use POST the feedback form does not work but itw works when I use GET. Can anyone advise why this is so? The data that I am using are only 2 string variables of one word each. thank you denis
can you post a small code snippit ? -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Denis L. Menezes"" <[EMAIL PROTECTED]> wrote in message 970kab$e9j$[EMAIL PROTECTED]">news:970kab$e9j$[EMAIL PROTECTED]... > Hello friends. > > I am running PHP4 on an Intel Win NT server 4 sp6 machine. > > When I use POST the feedback form does not work but itw works when I use > GET. Can anyone advise why this is so? The data that I am using are only 2 > string variables of one word each. > > thank you > denis > > > > > > -- > 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] >
>From within PHP, I'm trying to execute an external command and pipe (|) the result into another command, then capture the output. I've tried everything, exec, system, passthru, popen and backtick, and still could get it to work. Has anyone done it before? Is it possible with PHP? Running PHP 4.0.1pl2 as a Apache module. Thanks.
this one uses pipe.... $command=`find $verzeichnis. -iname $DateiPattern |sort -f`; $verzeichnisliste = explode ("\n",$command); sebastian -----Ursprungliche Nachricht----- Von: Martin Kong [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 21. Februar 2001 15:45 An: [EMAIL PROTECTED] Betreff: [PHP] How to pipe a command output into another command >From within PHP, I'm trying to execute an external command and pipe (|) the result into another command, then capture the output. I've tried everything, exec, system, passthru, popen and backtick, and still could get it to work. Has anyone done it before? Is it possible with PHP? Running PHP 4.0.1pl2 as a Apache module. 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]
Hi could anybody please help me get my head around the following. I get some url information from the database (title, url) I am trying to then put this into an array so I can pass it to the page to display a menu. so a) how do I get the data into the array. would this be the way to do it?? $menu = array(); while($db->next_record()) { $menu[]["name"] = $db->f("name"); $menu[]["url"] = $db->f("topic_id"); } which leads me onto b) how do I get the data back out. I can't test to see if the above works as I can't get at the data TIA M@
a) $menu[] = array("name" => $db->f("name"), "url" => $db->f("topic_id")); b) echo $menu[0]["name"]; //for example - depends on what you want to do BTW have a look into the manual, the array stuff is described pretty well Pavel ----- Original Message ----- From: "Matt Williams" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "PHP_UK@egroups. com" <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 3:56 PM Subject: [PHP] array headaches > Hi > > could anybody please help me get my head around the following. > > I get some url information from the database (title, url) > I am trying to then put this into an array so I can pass it to the page to > display a menu. > so > a) how do I get the data into the array. would this be the way to do it?? > > $menu = array(); > while($db->next_record()) > { > $menu[]["name"] = $db->f("name"); > $menu[]["url"] = $db->f("topic_id"); > } > which leads me onto > b) how do I get the data back out. I can't test to see if the above works as > I can't get at the data > > TIA > > M@ > > > -- > 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] >
> a) $menu[] = array("name" => $db->f("name"), "url" => $db->f("topic_id")); > > b) echo $menu[0]["name"]; //for example - depends on what you want to do Thanks, maybe I should have made myself a little clearer though I am expecting more than one row to be returned from the db. So how would I get the all the rows returned into an associative array?? The manual tells you how how it should, but I need to do it from mysql_fetch_array M@ > > BTW have a look into the manual, the array stuff is described pretty well > > Pavel > > ----- Original Message ----- > From: "Matt Williams" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; "PHP_UK@egroups. com" > <[EMAIL PROTECTED]> > Sent: Wednesday, February 21, 2001 3:56 PM > Subject: [PHP] array headaches > > > > Hi > > > > could anybody please help me get my head around the following. > > > > I get some url information from the database (title, url) > > I am trying to then put this into an array so I can pass it to > the page to > > display a menu. > > so > > a) how do I get the data into the array. would this be the way > to do it?? > > > > $menu = array(); > > while($db->next_record()) > > { > > $menu[]["name"] = $db->f("name"); > > $menu[]["url"] = $db->f("topic_id"); > > } > > which leads me onto > > b) how do I get the data back out. I can't test to see if the > above works > as > > I can't get at the data > > > > TIA > > > > M@ > > > > > > -- > > 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] > > >
> while($db->next_record()) > { > $menu[]["name"] = $db->f("name"); > $menu[]["url"] = $db->f("topic_id"); > } Why not use a for loop instead? for($i = 0; $db->next_record(); $i++) { $menu[$i]["name"] = $db->f("name"); $menu[$i]["url"] = $db->f("topic_id"); } Then you can access them through another loop. -- Jason Stechschulte [EMAIL PROTECTED] -- Reserve your abuse for your true friends. -- Larry Wall in <[EMAIL PROTECTED]>
I have done it this way... $menu = array(); $count = $db->num_rows(); for($i = 0; $db->next_record(); $i++) { $menu[$i]["name"] = $db->f("name"); $menu[$i]["url"] = $db->f("topic_id"); } OK, so is there a better way of acheiving the same end result? and this is what I've got to print the results while ( list($name, $subarray) = each($menu) ) echo "<a href=\"".$subarray["url"]."\">".$subarray["name"]."<a><br>\n"; } is there any better way of doing this?? thanks M@ > -----Original Message----- > From: Pavel Kalian [mailto:[EMAIL PROTECTED]] > Sent: 21 February 2001 15:00 > To: Matt Williams; [EMAIL PROTECTED]; PHP_UK@egroups. com > Subject: Re: [PHP] array headaches > > > a) $menu[] = array("name" => $db->f("name"), "url" => $db->f("topic_id")); > > b) echo $menu[0]["name"]; //for example - depends on what you want to do > > BTW have a look into the manual, the array stuff is described pretty well > > Pavel > > ----- Original Message ----- > From: "Matt Williams" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>; "PHP_UK@egroups. com" > <[EMAIL PROTECTED]> > Sent: Wednesday, February 21, 2001 3:56 PM > Subject: [PHP] array headaches > > > > Hi > > > > could anybody please help me get my head around the following. > > > > I get some url information from the database (title, url) > > I am trying to then put this into an array so I can pass it to > the page to > > display a menu. > > so > > a) how do I get the data into the array. would this be the way > to do it?? > > > > $menu = array(); > > while($db->next_record()) > > { > > $menu[]["name"] = $db->f("name"); > > $menu[]["url"] = $db->f("topic_id"); > > } > > which leads me onto > > b) how do I get the data back out. I can't test to see if the > above works > as > > I can't get at the data > > > > TIA > > > > M@ > > > > > > -- > > 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] >
On Thu, 22 Feb 2001 02:11, Matt Williams wrote: > I have done it this way... > > $menu = array(); > $count = $db->num_rows(); > for($i = 0; $db->next_record(); $i++) > { > $menu[$i]["name"] = $db->f("name"); > $menu[$i]["url"] = $db->f("topic_id"); > } > > OK, so is there a better way of acheiving the same end result? > and this is what I've got to print the results > > while ( list($name, $subarray) = each($menu) ) > > > echo "<a > href=\"".$subarray["url"]."\">".$subarray["name"]."<a><br>\n"; > > } > > is there any better way of doing this?? > > thanks > > M@ Why do you need to put the values in an array, then read through the array to print the values? Why not just print each record as you get it from the DB? -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
"when you first run it wants to save the file as makeins.phtml " what wants to save the file? IE ? your editor ? sounds like a browser issue, the browser has assoiated .ins as something else in the mime-types. Msg back so I could possibly help more. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Martin"" <[EMAIL PROTECTED]> wrote in message 9704d0$mje$[EMAIL PROTECTED]">news:9704d0$mje$[EMAIL PROTECTED]... > Has anyone got any experience with creating windows .ins file from PHP. The > following coding appears to be working sort of, but when you first run it > wants to save the file as makeins.phtml (the same name as the file). If you > cancel, it then will save it as .ins file. It's very annoying and kinda > confusing. Any advice? > > <?php > > // Required VARS include > > // $firstname $lastname $username $password > > if (strlen($username)>1) > > { > > header("Content-type: application/x-internet-signup"); > > header("Content-disposition: attachment; filename=vispa.ins"); > > echo "[Internet_Mail]\n"; > > echo "Default_Client=Yes\n"; > > echo "Domain=vispa.com\n"; > > echo "Email_Address=" . $firstname . "@" . $username . ".vispa.com\n"; > > echo "Email_Name=" . $firstname . " " . $lastname . "\n"; > > echo "Install_Mail=1\n"; > > echo "Install_Mail_16=0\n"; > > echo "Logon_Using_SPA=No\n"; > > echo "POP_Logon_Name=vis-" . $username . "\n"; > > echo "POP_Logon_Password=" . $password . "\n"; > > echo "POP_Server=pop.vispa.com\n"; > > echo "SMTP_Server=smtp.vispa.com\n"; > > echo "Logon_Using_SPA=No\n"; > > echo "Use_MS_Exchange=No\n"; > > echo "Use_IMAP=No\n"; > > echo "Window_Title=Outlook Express provided by Vispa Internet\n"; > > echo "Junk_Mail_Filtering=1\n"; > > echo "\n"; > > echo "[Branding]\n"; > > echo "CompanyName=Vispa Internet Limited\n"; > > echo "Wizard_Version=3.0.0.561\n"; > > echo "Custom_Key=E135056\n"; > > echo "Window_Title=Vispa Internet Explorer\n"; > > echo "\n"; > > echo "[Favorites]\n"; > > echo "Tucows.url=http://tucows.enta.net\n"; > > echo "\n"; > > echo "[Internet_News]\n"; > > echo "NNTP_Server=news.vispa.com\n"; > > echo "Logon_Required=0\n"; > > echo "Default_Client=Yes\n"; > > echo "\n"; > > echo "[URL]\n"; > > echo "Home_Page=http://www.vispa.net\n"; > > echo "Search_Page=http://home.microsoft.com/access/allinone.asp\n"; > > echo "NoWelcome=1\n"; > > echo "[Entry]\n"; > > echo "Entry_Name=Vispa Dialup\n"; > > echo "\n"; > > echo "[Phone]\n"; > > echo "Phone_Number=0500028\n"; > > echo "Area_Code=0845\n"; > > echo "Country_Code=44\n"; > > echo "Country_ID=44\n"; > > echo "Dial_As_Is=No\n"; > > echo "\n"; > > echo "[User]\n"; > > echo "Requires_Logon=Yes\n"; > > echo "Name=vis-$username\n"; > > echo "Password=$password\n"; > > echo "Display_Password=Yes\n"; > > echo "\n"; > > echo "[Device]\n"; > > echo "Type=modem\n"; > > echo "\n"; > > echo "[Server]\n"; > > echo "SW_Compress=Yes\n"; > > echo "PW_Encrypt=No\n"; > > echo "Network_Logon=no\n"; > > echo "SW_Encrypt=no\n"; > > echo "Type=PPP\n"; > > echo "Negotiate_TCP/IP=Yes\n"; > > echo "Negotiate_IPX/SPX=No\n"; > > echo "Negotiate_NetBEUI=No\n"; > > echo "\n"; > > echo "[TCP/IP]\n"; > > echo "Specify_Server_Address=No\n"; > > echo "DNS_Address=\n"; > > echo "DNS_Alt_Address=\n"; > > echo "IP_Header_Compress=Yes\n"; > > echo "Gateway_On_Remote=Yes\n"; > > echo "\n"; > > echo "[Outlook_Express_Global]\n"; > > echo "Read_Only=1\n"; > > echo "Hide_MSN=1\n"; > > } else { > > ?> > > <HTML><HEAD><TITLE>Generate Automatic Configuration File</TITLE></HEAD> > > <FONT FACE=Arial size=2 color=black> > > <form action="<?php echo $PHP_SELF; ?>" method="POST"> > > <table border=0> > > <tr><td><font face=arial size=2 color=black><b>Username:</b></font></td> > > <td><input type=text name=username size=12></td></tr> > > <tr><td><font face=arial size=2 color=black><b>Password:</b></font></td> > > <td><input type=password name=password size=16></td></tr> > > <tr><td><font face=arial size=2 color=black><b>Firstname:</b></font></td> > > <td><input type=text name=firstname size=32></td></tr> > > <tr><td><font face=arial size=2 color=black><b>Surname:</b></font></td> > > <td><input type=text name=lastname size=32></td></tr> > > <tr><td colspan=2 align=center><input type=submit > value="Generate!"></td></tr> > > </table> > > </form> > > </font> > > </html> > > <?php // continue... > > } > > ?> > > > > > -- > 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 just want to get the URL of the page that is redirecting to the other page. For example.. I have two files login.php something.php Something.php has a line saying: <?php header ("Location: ./login.php"); ?> So When I open Something.php it automatically takes me to login.php. On the login.php page I have the following lines.... <?php echo $HTTP_REFERER; ?> It doesn't seem to work. I think the problem is because I don't click and go to something.php. I am getting redirected to the file./ SO is there nay other way I can get the URL of the file Which is redirecting. Thanx a lot Cheers!~ Dhaval Desai __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
im sure ive seen one or two at FreshMeat ... "Kraa de Simon" <[EMAIL PROTECTED]> wrote in message C1EBEEBBB842D411B4120000949A1F587584B1@wwmessd135">news:C1EBEEBBB842D411B4120000949A1F587584B1@wwmessd135... > Hi, > > Can anyone advise me in a "document management system", written in PHP and > Open Source? > > Thanks! > > Met vriendelijke groet / With kind regards, > > Simon de Kraa > ICL Logistic Systems > mailto:[EMAIL PROTECTED] > > --- > > Microsoft Windows 2000 Professional SP 1, Progress 9.1b, Roundtable 9.1a > SCO UnixWare 7.1.1, Progress 9.1a11 > > -- > 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, Am I missing something.... How is it that I can read php code en htmls files but I can't read php3 files????? I check that mod_php3.c is load with /usr/local/apache/bin/httpd -l I add the following lines: AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3 .html AddType application/x-httpd-php3 -source .phps Thanks
*** Please reply directly or I'll likely miss the reply in the digest *** Hello, I am attempting to compile php 4.0.4pl1 as a dynamic shared module for Apache 1.3.12 on a Redhat 6.2 box. I followed the detailed directions, and upon attempting make install it went along fine, until... *snip* Making install in regex make[1]: Entering directory `/usr/src/php-4.0.4pl1/regex' make[2]: Entering directory `/usr/src/php-4.0.4pl1/regex' make[2]: Nothing to be done for `install-p'. make[2]: Leaving directory `/usr/src/php-4.0.4pl1/regex' make[1]: Leaving directory `/usr/src/php-4.0.4pl1/regex' Making install in . make[1]: Entering directory `/usr/src/php-4.0.4pl1' /usr/httpsd/bin/apxs -i -a -n php4 libs/libphp4.so cp libs/libphp4.so /usr/httpsd/libexec/libphp4.so cp: libs/libphp4.so: No such file or directory apxs:Break: Command failed with rc=65536 make[1]: *** [install-sapi] Error 1 make[1]: Leaving directory `/usr/src/php-4.0.4pl1' make: *** [install-recursive] Error 1 [root@server php-4.0.4pl1]# ----- I checked the output from make, and aside from a few warnings, there was no indication that anything had failed. So I checked the directory, and surely enough, the shared library had not been compiled. So I read the manpage for apxs and came up with.... [root@server php-4.0.4pl1]# /usr/httpsd/bin/apxs -i -a -c -n php4 libs/libphp4.a gcc -shared -o libs/libphp4.so libs/libphp4.a cp libs/libphp4.so /usr/httpsd/libexec/libphp4.so chmod 755 /usr/httpsd/libexec/libphp4.so [activating module `php4' in /usr/httpsd/conf/httpsd.conf] [root@server php-4.0.4pl1]# ----- So now I had the compiled shared library, and reran "make install", so that all the steps after where it had failed earlier would be carried out, everything seemed to go well, until.... [root@server conf]# /usr/httpsd/bin/httpsdctl configtest Syntax error on line 215 of /usr/httpsd/conf/httpd.conf: Can't locate API module structure `php4_module' in file /usr/httpsd/libexec/libphp4.so: /usr/httpsd/libexec/libphp4.so: undefined symbol: php4_module [root@server conf]# ----- The line in question, reads as... LoadModule php4_module libexec/libphp4.so ----- The above line was automagically inserted for me by the make install script. So here I am stuck, out of ideas, and sending a poorly formatted email to the LOSURS list. Please accept my apologies for any long lines, I think my email client should wrap them automatically though. Any ideas or suggestions? *** Please reply directly or I'll likely miss the reply in the digest *** * - * - * - * - * - * - * - * - * - * - * - * Bob Horton - PneumaSoft Inc * Custom Software Development Services * * Phone: (306) 545-SOFT (545-7638) * Fax: (306) 924-5326 * [EMAIL PROTECTED] ICQ: 32058710 * - * - * - * - * - * - * - * - * - * - * -
I'm trying to fopen a URL that I have no problems getting to if I just past it into the address field of my browser. However, when I use it in my fopen() function call, I'm getting an "Error 0" (zero) message. I've looked all over the documentation and I could not find what 'Error 0' means. Anyone? Chris
Is it possible to pull an image, stored as binary data in a mySQL table, and display it on a page inline? So it acts as if the image was pulled from the file system normally? If it is possible, could you point me to some online resources that would give information on how this is done? I've tried a few things on my end to no avail. I've also searched a few PHP sites (PHPBuilder, etc) but couldn't find anything there (I could be doing the wrong searches). In any case, any information would be most helpful!! thnx, Chris
dspimage.inc <?php include_once('database.egn'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); if ( $prod_r = fetch_db_value('product_image', "WHERE product_id = $product_id ") ) { if ($prod_r['product_image']) { Header("Content-Type: {$prod_r['product_image_type']}"); echo $prod_r['product_image']; exit(); } } Header('Content-Type: image/gif'); readfile("$DOCUMENT_ROOT/image/nopic.gif"); ?> index.php <?php echo " <img src='include/dspimage.inc?product_id=123456'> "; ?> -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is it possible to pull an image, stored as binary data in a > mySQL table, and display it on a page inline? So it acts > as if the image was pulled from the file system normally? > > If it is possible, could you point me to some online resources > that would give information on how this is done? I've tried > a few things on my end to no avail. I've also searched a > few PHP sites (PHPBuilder, etc) but couldn't find anything > there (I could be doing the wrong searches). > > In any case, any information would be most helpful!! > > thnx, > Chris >
Ok, I'm new to sessions and have a few questions... Here is my plan. I'm running a news type web site where subscribers have different privileges on what they can view and download. The privileges are stored in a mySQL DB. My plan is to make users login (thereby starting a session with all their permission data). We will also allow the users to save their login and password as a cookie, thereby starting a new session every time they visit the web site. Using sessions to serve as a logged on status I'm pretty sure I can do authentication for PHP pages. However my worry is when someone types in a URL to get a PDF file. So what I was thinking of doing was writing an apache module that did the following: When a file with .pdf is asked for it looks to see if the user is currently in a session (aka 'logged on'). I'm guessing the module can know this by using the HTTP headers. Figuring we can look to see if its giving a cookie with the sid or its part of the URL. Ok, question 1: If I compile with -enable-trans-sid is the sid included as part of the HTTP header? Also my understanding is if i complied with this I don't have put the SID in each URL, if so and cookies are available on the client side which will PHP use? Once the module has the sid it can read the cookie like file related to that SID in the /tmp dir and figure out what the user's privileges are. Question 2: I was looking at the values in the php.ini file [Session] session.save_handler = files ; handler used to store/retrieve data session.save_path = /tmp ; argument passed to save_handler ; in the case of files, this is the ; path where data files are stored session.use_cookies = 1 ; whether to use cookies session.name = PHPSESSID ; name of the session ; is used as cookie name session.auto_start = 0 ; initialize session on request startup session.cookie_lifetime = 0 ; lifetime in seconds of cookie ; or if 0, until browser is restarted session.cookie_path = / ; the path the cookie is valid for session.cookie_domain = ; the domain the cookie is valid for session.serialize_handler = php ; handler used to serialize data ; php is the standard serializer of PHP session.gc_probability = 1 ; percentual probability that the ; 'garbage collection' process is started ; on every session initialization session.gc_maxlifetime = 1440 ; after this number of seconds, stored ; data will be seen as 'garbage' and ; cleaned up by the gc process session.referer_check = ; check HTTP Referer to invalidate ; externally stored URLs containing ids session.entropy_length = 0 ; how many bytes to read from the file session.entropy_file = ; specified here to create the session id ; session.entropy_length = 16 ; session.entropy_file = /dev/urandom session.cache_limiter = nocache ; set to {nocache,private,public} to ; determine HTTP caching aspects session.cache_expire = 180 ; document expires after n minutes session.use_trans_sid = 1 ; use transient sid support if enabled ; by compiling with --enable-trans-sid Now according to this the cookie like files should be deleted after 1440 seconds, but on my machine their not. Any reason why? Thanks for you help ahead of time the few of you out there who might dare to tacle these questions. If anyone out there can point me to some good copy on PHP sessions and how they work under the hood please do so. thanks Mike
> writing an apache module that did the following: > > When a file with .pdf is asked for it looks to see if the user is > currently in a session (aka 'logged on'). I'm guessing the module can > know this by using the HTTP headers. Figuring we can look to see if > its giving a cookie with the sid or its part of the URL. you can handle that with php also, if you don't allow direct download. instead you write a download skript that first checks for login, then sends the proper header to handle the download and then passes the data to the user. you can find information about that in the manual at www.php.net/header > Now according to this the cookie like files should be deleted after > 1440 seconds, but on my machine their not. Any reason why? the 1440 is just when the data is identified as garbage. after that also the garbage collector must be invoked. you have a gc_probability of 1% set, so it's not very likely they will be deleted soon.... sebastian
At 5:54 PM +0100 2/21/01, Sebastian Stadtlich wrote: > > writing an apache module that did the following: >> >> When a file with .pdf is asked for it looks to see if the user is >> currently in a session (aka 'logged on'). I'm guessing the module can >> know this by using the HTTP headers. Figuring we can look to see if >> its giving a cookie with the sid or its part of the URL. > >you can handle that with php also, if you don't allow direct download. >instead you write a download skript that first checks for login, then >sends the proper header to handle the download and then passes the data >to the user. you can find information about that in the manual at >www.php.net/header When we post a new issue online we include a url right to the PDF. Not to say we can't change that link to be somthing like: http://www.mysite.com/download.php?file=/TSR/0104/fullissue.pdf However all the old emails that are out there would still point right to the PDF. So I guess we could make apache FWD and PDF GET requests to the following script. Hmmm. Well I'll think about it. Thanks for all the help Sebastian. Mike
Addressed to: Michael Zornek <[EMAIL PROTECTED]> Michael Zornek <[EMAIL PROTECTED]> "'Php-General (E-Mail)" <[EMAIL PROTECTED]> ** Reply to note from Michael Zornek <[EMAIL PROTECTED]> Wed, 21 Feb 2001 12:15:32 -0500 > > At 5:54 PM +0100 2/21/01, Sebastian Stadtlich wrote: > When we post a new issue online we include a url right to the PDF. > Not to say we can't change that link to be somthing like: > > http://www.mysite.com/download.php?file=/TSR/0104/fullissue.pdf > > However all the old emails that are out there would still point right > to the PDF. So I guess we could make apache FWD and PDF GET requests > to the following script. Hmmm. Well I'll think about it. Hang on, this is going to be a wild ride... Lets say that you currently keep your pdf's in TSR/issue/fullissue.pdf, and that TSR is constant, issue changes each issue and fullissue.pdf may or may not be the only file in the issue directory. You hit the issue mentioned above at http://www.mysite.com/TSR/0104/fullissue.pdf. OK, here is what you do. Add the following to .htaccess or httpd.conf, in the virtual host block for www.mysite.com. If it is not a virtual host, it can be added anywhere near the bottom of the config file. <Location /TSR> ForceType application/x-httpd-php </Location> If you are using php3, it is application/x-httpd-php3 This makes apache execute the file TSR as if it was TSR.php, without having to have the .php extension. Now move your entire TSR directory outside of document root. Create a PHP program that checks to see if they are logged in and name it TSR. Place it in DocumentRoot or where ever you just removed the real TSR directory from. If they are logged in when the program is hit, then look in $PATH_INFO, which in this example will return '/0104/fullissue.php'. (Check me on the leading /, it might not be there.) Now you use $PATH_INFO and the path to where you moved the TSR directory to create the name of the file to send to them. Send your headers, then use readfile() to send the pdf. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com
Hi, I came across this: $confidential = 0; echo "$confidential " . ($confidential == "yes"); In which "0 1" was printed. Is there something I'm missing? Thanks, Jason -- Jason Murray Developer http://www.jwebmedia.com/ 1 877 525 jWEB
> I came across this: > $confidential = 0; > echo "$confidential " . ($confidential == "yes"); > In which "0 1" was printed. > Is there something I'm missing? Yes. When comparing types, PHP generally typcasts one side of the operand to the type of what is on the other side. So in the above operation, it is typecasting "yes" to an integer and so becomes a '0' (zero). Because of that, 0 == 0 and so resolves true. What you want to do is echo "$confidential " . ("$confidential" == "yes"); and you'll get your expected results. Chris
Addressed to: Jason Murray <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from Jason Murray <[EMAIL PROTECTED]> Wed, 21 Feb 2001 11:37:40 -0600 > > Hi, > > I came across this: > > $confidential = 0; > echo "$confidential " . ($confidential == "yes"); > > In which "0 1" was printed. > $confidential = 0; # Numeric 0 That explains the 0. $confidential == "yes" This is a little tricky. The numeric value of 'yes' is 0, so it evaluates to the same thing as 0 == 0, which is true. True has a numeric value of 1, although all values besides 0 are considered true. You might want to look at the === operator which checks that both the value and the type of the operands is identical. http://www.php.net/manual/en/html/language.operators.comparison.html Rick Widmer Internet Marketing Specialists http://www.developersdesk.com
or... <?php $confidential = 0; echo "$confidential " . ((string)$confidential == 'yes'); ?> that forces the comparison to be compared as a string. this only has to be done sometimes, usually php is quite good at determining what you want. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Jason Murray" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I came across this: > > $confidential = 0; > echo "$confidential " . ($confidential == "yes"); > > In which "0 1" was printed. > > Is there something I'm missing? > > Thanks, > Jason > > -- > Jason Murray > Developer > http://www.jwebmedia.com/ > 1 877 525 jWEB > > -- > 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] >
Okay, To insert data into an AS400 system (proven on Ver 4.4) you must first: Begin Journaling for the the file to insert into This is done by issuing the following command at the command prompt: STRJRNPF FILE(lib/file) JRN(jrnllib/jrnlfile) (where test is your libs and files) Let me know how it goes! Karl
Hi, I'm in a quandary here. I have a form which contains sever tables each containing similar fields. The number of tables are dynamic based on vales I retrieve from a database. Each table has the following fields: $name $phone $fax In order to differentiate the filed names in my form, I created a loop and extended each field name with the loop iteration as such ($rownum is my loop counter): <snip> <input type="text" name="name" . $rownum . ">" <input type="text" name="phone" . $rownum . ">" <input type="text" name="fax" . $rownum . ">" So I would have field variables of: $name1, $name2, $name3, ... $phone1, $phone2, $phone3, ... $fax1, $fax2, $fax3, ... So far so good as I have verified that these fields exist. Now, when the user clicks on the submit button, the form data gets posted to a PHP script. I wish to access the variables but here I am at a loss. I attempted the following code without success ($rownum is the number of tables I created): for ($i = 1; $i <= $rownum; $i++) { $field = "phone" . $i; $name =& $field; echo $field . ":" . $name . "\n"; } The docs state that references are NOT pointers. So....., how can I access my variables? I could not find any information on Macros or Pointers. Thanks, Don
ok here we are, your code is *almost* correct, but even syntaxialy correct doesnt mean it should be used :) use arrays, its a tone easier. to fix your code change $name =& $field; to $name = $$field; now to make the code, a ton easier to use, use arrays. <?php ... echo " <input type=text name=name[$people_id] value='somedata'> "; ... ?> <?php ... foreach($name as $pos => $val) { echo $val; } ... ?> arrays are great things, use them lost :) haha -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Don" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I'm in a quandary here. I have a form which contains sever tables each > containing similar fields. The number of tables are dynamic based on > vales I retrieve from a database. Each table has the following fields: > > $name > $phone > $fax > > In order to differentiate the filed names in my form, I created a loop > and extended each field name with the loop iteration as such ($rownum is > my loop counter): > > <snip> > <input type="text" name="name" . $rownum . ">" > <input type="text" name="phone" . $rownum . ">" > <input type="text" name="fax" . $rownum . ">" > > So I would have field variables of: > $name1, $name2, $name3, ... > $phone1, $phone2, $phone3, ... > $fax1, $fax2, $fax3, ... > > So far so good as I have verified that these fields exist. > > Now, when the user clicks on the submit button, the form data gets > posted to a PHP script. I wish to access the variables but here I am at > a loss. I attempted the following code without success ($rownum is the > number of tables I created): > > for ($i = 1; $i <= $rownum; $i++) { > $field = "phone" . $i; > $name =& $field; > echo $field . ":" . $name . "\n"; > } > > The docs state that references are NOT pointers. So....., how can I > access my variables? I could not find any information on Macros or > Pointers. > > Thanks, > Don > > > > > -- > 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] >
Don wrote: > > Hi, > > I'm in a quandary here. I have a form which contains sever tables each > containing similar fields. The number of tables are dynamic based on > vales I retrieve from a database. Each table has the following fields: > > ... > Maybe this approach is simpler. If you create your fields like this: <? ... echo '<input type="text" name="name['.$rownum.']">'; echo '<input type="text" name="phone['.$rownum.']">'; echo '<input type="text" name="fax['.$rownum.']">'; ... ?> then after submitting you will have arrays: $name, $phone, $fax. Now, for values from first table use: $name[0], $phone[0], $fax[0]. For second: $name[1], $phone[1], $fax[1]. etc... And there's no need for huge amount of variables. Hope this helps. :) -- Pavel a.k.a. Papi
I am trying to get GD and FreeType 2 to work with php so i can do dynamic images from ttf fonts. I am running the following: FreeBSD 4.1 Php version 4.0.4pl1 FreeType Version 2 from http://freetype.sourceforge.net gd 1.8.4 from http://www.boutell.com/gd/ i installed libpng per gd's requirements. i compiled freetype2 first and got no errors. I had to edit the Makefile in the gd directory to include the following path: -I/usr/local/include/freetype2/freetype then i get the following errors: gdttf.c:66: syntax error before `TT_Engine' gdttf.c:72: syntax error before `TT_Matrix' gdttf.c:81: syntax error before `TT_Engine' gdttf.c:87: syntax error before `TT_Glyph' gdttf.c: In function `fontFetch': gdttf.c:326: syntax error before `err' gdttf.c:339: structure has no member named `engine' the list goes on........ So i edited the Makefile again and removed: -DHAVE_LIBTTF and -lttf and it compiles fine. I recompiled php with: './configure' '--with-mysql=/usr/local/mysql' '--with-xml' '--with-apache=../apache_1.3.17' '--enable-track-vars' '--with-gd=/usr/local/include/gd' '--with-zlib=/usr/local/lib' '--with-ttf=/usr/local/include/freetype2/freetype' and it compiled fine so did apache, but when i try to execute a php script with imagettfbbox() i get: Call to unsupported or undefined function imagettfbbox() Any help at all will be greatly appreciated. Thanks Dale
I'm no whiz with header types, so my attempts with the PHP.net docs wasn't too successful... Here's the deal. My customer needs to upload an ASCII export file of database info generated by MS Access on their PC. I've written a script that allows them to upload their Access files then does a LOAD DATA INFILE command to integrate it into the MySQL database on the web server. The problem is that whatever transfer method is used is causing some data corruption. I ran into this problem before when I was manually FTPing export files then using LOAD DATA INFILE. I fixed it by switcheing from Binary FTP to ASCII FTP. How can this be done with a PHP script??? Thanks! -Jeff Gannaway _______________________________________________________ 2001 Wall Calendars.... * Art, Jazz, Blues, Women's, African-American. * Everyday Discounts. * Excellent paper and reproductions. And as always, a great selection of abstract, contemporary and African-American art prints. PopStreet.com is your avenue to art. http://www.popstreet.com _______________________________________________________
your using an html for to upload the files ? this is strange, I use an html form to upload binary images, all is well so its strange its mangeling your ascii db file. how does the file look when it gets to the server? try saving it somewhere, compare it to the origonal. -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 "Jeff Gannaway" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm no whiz with header types, so my attempts with the PHP.net docs wasn't > too successful... > > Here's the deal. My customer needs to upload an ASCII export file of > database info generated by MS Access on their PC. I've written a script > that allows them to upload their Access files then does a LOAD DATA INFILE > command to integrate it into the MySQL database on the web server. > > The problem is that whatever transfer method is used is causing some data > corruption. > > I ran into this problem before when I was manually FTPing export files then > using LOAD DATA INFILE. I fixed it by switcheing from Binary FTP to ASCII > FTP. How can this be done with a PHP script??? > > Thanks! > -Jeff Gannaway > _______________________________________________________ > > 2001 Wall Calendars.... > * Art, Jazz, Blues, Women's, African-American. > * Everyday Discounts. > * Excellent paper and reproductions. > > And as always, a great selection of abstract, > contemporary and African-American art prints. > > PopStreet.com is your avenue to art. > http://www.popstreet.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] >
Hello, I am trying to get .phtml to work for php files. How would I do this? Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
You would add "phtml" to the line in your server config file that determines which extensions are handled by PHP.... To give more info we'd really need details of which server software you're running, and whether it's hosted by an external company or if it's in your bedroom. Cheers Jon -----Original Message----- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: 21 February 2001 17:14 To: PHP User Group Subject: [PHP] Making .phtml an extension Hello, I am trying to get .phtml to work for php files. How would I do this? Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.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]
Brandon Orther wrote: > > Hello, > > I am trying to get .phtml to work for php files. How would I do this? If you have Apache, then following line in httpd.conf should help: AddType application/x-httpd-php .php .php3 .phtml -- Pavel a.k.a. Papi
assuming you are using Apache... add AddType application/x-httpd-php .phtml to your httpd.conf file -----Original Message----- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:14 AM To: PHP User Group Subject: [PHP] Making .phtml an extension Hello, I am trying to get .phtml to work for php files. How would I do this? Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.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]
Or the .htaccess file of your top directory if you are virtual hosting and cannot change the httpd.conf file. Michael Pavel Jartsev wrote: > Brandon Orther wrote: > > > > Hello, > > > > I am trying to get .phtml to work for php files. How would I do this? > > If you have Apache, then following line in httpd.conf should help: > > AddType application/x-httpd-php .php .php3 .phtml > > -- > Pavel a.k.a. Papi > > -- > 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]
Previously on this list, there have been questions about the Warning: page has expired problem. When you submit a form, then press the back button, you get this message and have to press refresh before the page will redisplay. I have discovered that if you use the following header command, the problem does not occur. header("Cache-Control: public"); The back button takes you back to the form, without a warning message, and the form redisplays with the info you entered. Does anyone know a reason that the above header should not be used? Does it cause some sort of problem that I should be aware of? Janet
I <[EMAIL PROTECTED]> wrote: > It seems the pgsql_session_write() function is not even being invoked. > Here it is: As a followup, it seems that turning register_globals "on" allows the pgsql_session_write() function to be called, and my test script works if I replace $HTTP_SESSION_VARS["count"] with $count. However, my environment is such that I have register_globals "off", which seems to conflict with sessions. In fact, I even get a Undefined variable: HTTP_SESSION_VARS error for the line $HTTP_SESSION_VARS["count"]++; Can someone give me a simple example script that uses postgres session handling, that works with register_globals "off"? Thanks, -- Steve <[EMAIL PROTECTED]> "And when you walk in golden halls, you get to keep the gold that falls" -- Black Sabbath, "Heaven and Hell"
As a follow-up to the "Terrible Hosting Experience" posts, here's a "Good Hosting Experience" post. I completely and unabashedly recommend Hurricane Electric (www.he.net), for virtual or dedicated hosting. AND...they're not paying me a thing to say that. :) They have virtual host packages starting at ten bucks. thickbook.com runs on a thirty bucks a month virtual hosting package, and it's just fine (as far as I can tell). PHP 4, MySQL at all levels of pricing, and you can control local PHP values with .htaccess, just fine. I also have a 1U dedicated server there for $200/mo (www.mytrainingcamp.com) and am ecstatic about it. So, go Hurricane! - Julie +----------------------------------------+ | Julie Meloni ([EMAIL PROTECTED]) | | | | "PHP Essentials" and "PHP Fast & Easy" | | http://www.thickbook.com | +----------------------------------------+
The last time I used these guys I didn't like them because the software they were running was way out of date. I can deal with an old version of php, but mysql needs to be current because there's too many things that old versions can't do. Right now I'm looking for a cheap virtual host that runs mysql 3.23.30 or higher, does anybody know one? thanks, - Mark On Wed, 21 Feb 2001 09:35:22 -0800, Julie Meloni ([EMAIL PROTECTED]) wrote: >As a follow-up to the "Terrible Hosting Experience" posts, here's a >"Good Hosting Experience" post. > >I completely and unabashedly recommend Hurricane Electric >(www.he.net), >for virtual or dedicated hosting. AND...they're not paying me a >thing to >say that. :) > >They have virtual host packages starting at ten bucks. >thickbook.com >runs on a thirty bucks a month virtual hosting package, and it's >just >fine (as far as I can tell). PHP 4, MySQL at all levels of pricing, >and >you can control local PHP values with .htaccess, just fine. > >I also have a 1U dedicated server there for $200/mo >(www.mytrainingcamp.com) and am ecstatic about it. > >So, go Hurricane! > >- Julie > >+----------------------------------------+ >| Julie Meloni ([EMAIL PROTECTED]) | >| | >| "PHP Essentials" and "PHP Fast & Easy" | >| http://www.thickbook.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: php-list- >[EMAIL PROTECTED]
Don't know your definition of CHEAP but check out OLM.net or webAXXS.net (they're the same company, just different marketing plans). I've recent;y signed up for their new RSE servers which are a real bargain in my opinion... but then again I've got a site with 650 meg of graphics plus 6 or 7 smaller sites.... -Jeff At 10:49 AM 2/21/01 -0800, Mark Maggelet wrote: >Right now I'm looking for a cheap virtual host that runs mysql >3.23.30 or higher, does anybody know one? _______________________________________________________ 2001 Wall Calendars.... * Art, Jazz, Blues, Women's, African-American. * Everyday Discounts. * Excellent paper and reproductions. And as always, a great selection of abstract, contemporary and African-American art prints. PopStreet.com is your avenue to art. http://www.popstreet.com _______________________________________________________
liquidweb.com has some nice looking deals. last time i checked, they supported MySQL/PHP/Perl/lots of other stuff > -----Original Message----- > From: Jeff Gannaway [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 05:59 > To: Mark Maggelet; [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] a good hosting experience > > > Don't know your definition of CHEAP but check out OLM.net or webAXXS.net > (they're the same company, just different marketing plans). I've recent;y > signed up for their new RSE servers which are a real bargain in my > opinion... but then again I've got a site with 650 meg of graphics plus 6 > or 7 smaller sites.... > > -Jeff > > At 10:49 AM 2/21/01 -0800, Mark Maggelet wrote: > >Right now I'm looking for a cheap virtual host that runs mysql > >3.23.30 or higher, does anybody know one? > > _______________________________________________________ > > 2001 Wall Calendars.... > * Art, Jazz, Blues, Women's, African-American. > * Everyday Discounts. > * Excellent paper and reproductions. > > And as always, a great selection of abstract, > contemporary and African-American art prints. > > PopStreet.com is your avenue to art. > http://www.popstreet.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] >
On Wed, 21 Feb 2001 14:55:25 -0800, ..s.c.o.t.t.. ([EMAIL PROTECTED]) wrote: >liquidweb.com has some nice looking deals. > >last time i checked, they supported >MySQL/PHP/Perl/lots of other stuff well, most hosts do, but not many are using 3.23.30 or higher. I'm looking for a host that somebody knows for sure is running a current version of mysql. thanks, - Mark
We're running 3.23.32, soon upgrading to .33 due to some security problems with .32 (either tonight or tomorrow), and running the latest release of PHP 4. Naturally, since I work for Granicus, I'm biased... but I think we're one of the better PHP hosts out there as far as services go. Our primary focus is colocation, but our hosting offering is PHP/MySQL centric (No postgres, very light perl support, etc), and the configuration of our machines shows it (we've actually in the process of writing a system that will allow you to analyze the performance if your scripts while they're running on your website). In any case, I'm trying to stay on this list as a contributer rather than a spammer so please excuse the shameless plug for my employer, but if you're interested and/or can't find anyone else, drop us a line at [EMAIL PROTECTED] and we'll give you all the gory details :) -jm -----Original Message----- From: Mark Maggelet [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:52 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] a good hosting experience On Wed, 21 Feb 2001 14:55:25 -0800, ..s.c.o.t.t.. ([EMAIL PROTECTED]) wrote: >liquidweb.com has some nice looking deals. > >last time i checked, they supported >MySQL/PHP/Perl/lots of other stuff well, most hosts do, but not many are using 3.23.30 or higher. I'm looking for a host that somebody knows for sure is running a current version of mysql. thanks, - Mark -- 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]
Wasn't 3.23 just declared stable like a couple weeks ago? > -----Original Message----- > From: Mark Maggelet [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 21, 2001 1:50 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] a good hosting experience > > > The last time I used these guys I didn't like them because the > software they were running was way out of date. I can deal with an > old version of php, but mysql needs to be current because there's too > many things that old versions can't do. > > Right now I'm looking for a cheap virtual host that runs mysql > 3.23.30 or higher, does anybody know one? > > thanks, > - Mark > > On Wed, 21 Feb 2001 09:35:22 -0800, Julie Meloni > ([EMAIL PROTECTED]) wrote: > >As a follow-up to the "Terrible Hosting Experience" posts, here's a > >"Good Hosting Experience" post. > > > >I completely and unabashedly recommend Hurricane Electric > >(www.he.net), > >for virtual or dedicated hosting. AND...they're not paying me a > >thing to > >say that. :) > > > >They have virtual host packages starting at ten bucks. > >thickbook.com > >runs on a thirty bucks a month virtual hosting package, and it's > >just > >fine (as far as I can tell). PHP 4, MySQL at all levels of pricing, > >and > >you can control local PHP values with .htaccess, just fine. > > > >I also have a 1U dedicated server there for $200/mo > >(www.mytrainingcamp.com) and am ecstatic about it. > > > >So, go Hurricane! > > > >- Julie > > > >+----------------------------------------+ > >| Julie Meloni ([EMAIL PROTECTED]) | > >| | > >| "PHP Essentials" and "PHP Fast & Easy" | > >| http://www.thickbook.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: php-list- > >[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] > >
What do you mean flatlines? Does the solaris machine's CPU move to ~100% utilization? You might be hitting the automatic garbage collection. Use gstat -h to watch your transactions states. Particularly the oldest transaction and the oldest interesting transaction. By default an auto garbage collection kicks off when the difference between these two numbers is 20000. If this is happening it might indicate that you aren't using your transactions as effective as possible. For example leaving them open for extended periods of time. hope this helps, Brett Bandy ""Niel Zeeman"" <[EMAIL PROTECTED]> wrote in message 001c01c09bf9$4cd89c00$756410ac@NielZ">news:001c01c09bf9$4cd89c00$756410ac@NielZ... Hi there I have a big problem and would greatly appreciate help.. I have a production site runnig the php4.0.4 isapi on IIS5 with a ibase backend db running on solaris Now I have the problem that when ever a couple of people( 2-6) login from the web the database flatlines... This is with about 10-30 local users logged into the db aswell. the site is basically a data capturing site please any help is welcome thanks.... Niel Zeeman Tel(W): (043)7014247 Cell: 082 651 4083 eMail: [EMAIL PROTECTED]
I went through this installation process to install PHP4 on a pair server. When I try to run a PHP script I get an internal server error with this: Premature end of script headers: /usr/www/users/xxxx/cgi-bin/php4.cgi What should I do from here? Thanks. Jeff Oien
Don't reference the absolute path to php4.cgi in your .htaccess it has to be relative to the domain. Instead, try: Action application/x-httpd-php-xphp /cgi-bin/PHP2/php.cgi AddHandler application/x-httpd-php-xphp .phtml This is how I got PHP2 back. BUT, if you server is one of the ones that have been upgraded to FreeBSD 4, PHP4 is already installed. Try to run "uname -v" when you log in. You may not have to compile PHP4 like this. Or see if your server has been upgraded at http://support.pair.com/notices/stable-upgrade.html Michael Jeff Oien wrote: > I went through this installation process to install PHP4 on a pair > server. When I try to run a PHP script I get an internal server error > with this: Premature end of script headers: /usr/www/users/xxxx/cgi-bin/php4.cgi > What should I do from here? Thanks. > Jeff Oien > > -- > 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]
Wow, my server is being upgraded today. I did all that for nothing. How do I undo what I just did? I checked this morning and PHP3 was still in use on my server. That's why I tried to install PHP4. Jeff Oien > Don't reference the absolute path to php4.cgi in your .htaccess it has to be > relative to the domain. Instead, try: > > Action application/x-httpd-php-xphp /cgi-bin/PHP2/php.cgi > AddHandler application/x-httpd-php-xphp .phtml > > This is how I got PHP2 back. BUT, if you server is one of the ones that have been > upgraded to FreeBSD 4, PHP4 is already installed. > > Try to run "uname -v" when you log in. You may not have to compile PHP4 like this. > > Or see if your server has been upgraded at > http://support.pair.com/notices/stable-upgrade.html > > Michael > > > Jeff Oien wrote: > > > I went through this installation process to install PHP4 on a pair > > server. When I try to run a PHP script I get an internal server error > > with this: Premature end of script headers: /usr/www/users/xxxx/cgi-bin/php4.cgi > > What should I do from here? Thanks. > > Jeff Oien > > > > -- > > 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] >
Just wanted to say pair.com upgraded my server today and it went so smoothly I didn't even notice it. They now have PHP4 on my server. pair.com is a great hosting service as long as you don't need hand holding or super quick tech support. Jeff Oien > > I went through this installation process to install PHP4 on a pair > > server. When I try to run a PHP script I get an internal server error > > with this: Premature end of script headers: /usr/www/users/xxxx/cgi-bin/php4.cgi > > What should I do from here? Thanks. > > Jeff Oien
Hello everbody, if a have HTML document lik this: <form action = "submit_to.php"> <input type="image" src="xxx" name="action1"> <input type="image" src="xxx" name="action2"> </form> How can know whether the user is pressed on the "action1" or "action2" image button??
On Thu, 22 Feb 2001 04:20, Zenith wrote: > Hello everbody, if a have HTML document lik this: > <form action = "submit_to.php"> > <input type="image" src="xxx" name="action1"> > <input type="image" src="xxx" name="action2"> > </form> > > How can know whether the user is pressed on the "action1" or "action2" > image button?? http://au.php.net:81/FAQ.php#7.13 covers the topic nicely. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
As I want to make my application more similar to those linux application, I am going to see that, is it possible for logging information via syslog or similar stuff?? I will happy, if you can also give me advice or comment on the efficiency aspect!! Thnks
look at http://www.php.net/manual/en/function.error-log.php you can tell php to send an error msg to the systems default logger (ie. syslog) -- Chris Lee Mediawaveonline.com em. [EMAIL PROTECTED] ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 ""Zenith"" <[EMAIL PROTECTED]> wrote in message 970us5$fgt$[EMAIL PROTECTED]">news:970us5$fgt$[EMAIL PROTECTED]... > As I want to make my application more similar to those linux application, I > am going to see that, is it possible for logging information via syslog or > similar stuff?? > > I will happy, if you can also give me advice or comment on the efficiency > aspect!! > > Thnks > > > > -- > 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] >
unable to get these session variable to be used on thanks.php page.... Contact.php <?php session_start(); ?><html><head></head><body> <form method="POST" action="/thanks.php"> First Name: <input type=TEXT name="FirstName" size=15><p> Last Name: <input type=TEXT name="LastName" size=25><p> E-mail Address: <input type=TEXT name="Email" size=25><p> <textarea name="Info" rows="5" cols="40" wrap=SOFT>Ask a Question</textarea><p> <input type=SUBMIT> <input type=RESET> </font> </form> <?php $FirstName = "FirstName"; $LastName = "LastName"; $Email = "Email"; $Info = "Info"; session_register("FirstName"); session_register("LastName"); session_register("Email"); session_register("Info"); ?> .............Thanks.php..... $session_start();] $from = $FirstName . $Lastname; <?php mail("[EMAIL PROTECTED]", $Email, $Info, $from); ?> _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
On Tue, Feb 20, 2001 at 04:10:08PM -0800, Brandon Orther wrote: > I am looking for an Image Library that can blur text. Does anyone know of > an image library that can work with php to make blured text? It's not a very versatile (Can't define the extent to which a blur is done), but php_imlib does it. You could, of course, re-blur the text if it wasn't enough the first time. <shrug>. :) http://mmcc.cx/php_imlib/ Matt
I was just reading at DevShed on how to use Regular Expressions, but now I'm even more confused. Can someone please explain how I would use a REGEX to determine in and uploaded file is a .gif or .jpg file? Thanks. Kenneth R Zink II [EMAIL PROTECTED] ICQ# 5095094 '87 2.8L TBI GMC S-15 Ext. Cab (Hurricane) ...524 in the works !!! http://www.s-series.org/htm/windstorm/project-windstorm.htm '85 3.4L Carbed Chevy S-10 Blazer (FireStorm) ...Soon to be 3.4L SFI DIS !!! http://www.s-series.org/htm/firestorm/firestorm.htm Racing by the Grace of God!!
Addressed to: "Kenneth R Zink II" <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from "Kenneth R Zink II" <[EMAIL PROTECTED]> Wed, 21 Feb 2001 11:42:28 -0600 > > ------=_NextPart_000_00AC_01C09BFB.5E254010 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > I was just reading at DevShed on how to use Regular Expressions, but now = > I'm even more confused. > > Can someone please explain how I would use a REGEX to determine in and = > uploaded file is a .gif or .jpg file? if( ereg( 'gif|jpg', $filename )) Better yet, try doing a getImageSize() on the uploaded file, before you move it and look at the [2] element of what is returned. This will give you the actual type of file from inspecting its contents rather than just trusting the extension that was typed. http://www.php.net/manual/en/function.getimagesize.php Rick Widmer Internet Marketing Specialists http://www.developersdesk.com
>>>>> "p" == php3 <[EMAIL PROTECTED]> writes: > Addressed to: "Kenneth R Zink II" <[EMAIL PROTECTED]> > [EMAIL PROTECTED] > ** Reply to note from "Kenneth R Zink II" <[EMAIL PROTECTED]> Wed, > 21 Feb 20= 01 11:42:28 -0600 >> ------=3D_NextPart_000_00AC_01C09BFB.5E254010 Content-Type: >> text/plain; charset=3D"iso-8859-1" Content-Transfer-Encoding: >> quoted-printable >> Can someone please explain how I would use a REGEX to determine in >> and = > =3D >> uploaded file is a .gif or .jpg file? > if( ereg( 'gif|jpg', $filename )) > Better yet, try doing a getImageSize() on the uploaded file, before > you move it and look at the [2] element of what is returned. This > will give you the actual type of file from inspecting its contents > rather than just trusting the extension that was typed. Or look at the mime type held in $HTTP_POST_FILES['uploadname']['type'] -- Robin Vickery................................................. BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE
Hi! It's me again.... Bruno From Brazil!! My problem is: I wanna know the names of the variables that my actual page recives from the last page (using the POST method). Thanks!! Bruno.
> My problem is: > I wanna know the names of the variables that my actual page > recives from the last page (using the POST method). while( list( $formVarName, $formVarValue = each( $HTTP_POST_VARS )) { echo "$formVarName = $formVarValue<br>\n"; } Chris
Hi! I have used your postgresql session functions in http://www.php.net/manual/en/ref.session.php with few changes. I have a login.php page that register 3 things - the pg_connect string, - a login flag to indicate that we already have done the login - actual time In a second php page I test - if login variable is set, if not I redirect to the login page. - if time has expired, if affirmative redirect to login page I have added a "pg_session_destroy" in your "user functions" to delete the actual session but when I reenter in the login page the session_start() re-creates the data I have just deleted with the same session_id. I would like to know how to issue a new session without closing the browser? What did I missed? - Working with php 4.0.4 - php.ini contains session.auto_start Off session.cache_expire 180 session.cache_limiter nocache session.cookie_domain no value session.cookie_lifetime 0 session.cookie_path / session.cookie_secure Off session.entropy_file no value session.entropy_length 0 session.gc_maxlifetime 60 session.gc_probability 1 session.name PHPSESSID session.referer_check no value session.save_handler user session.save_path /tmp session.serialize_handler php session.use_cookies On - track_vars and gpc_globals are not enabled TIA -- Evelio Martínez
I am building an update string on the fly from form fields.I am trying to add a comma between fields but I cant have one after the last field.This is the code that doesnt work.Also I cant have a comma at all in a table with only one updated field. $keys = array_keys($HTTP_POST_VARS); for($x = 2; $x < count($keys); $x++) { $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',"; Thanks Mike [EMAIL PROTECTED]
On Wed, Feb 21, 2001 at 01:34:10PM -0500, Mike wrote: > $keys = array_keys($HTTP_POST_VARS); > for($x = 2; $x < count($keys); $x++) > { > $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',"; } $updateString = ereg_replace(",$", "", $updateString); That should take care of the trailing comma. -- Jason Stechschulte [EMAIL PROTECTED] -- One of the reasons Perl is faster than certain other unnamed interpreted languages is that it binds variable names to a particular package (or scope) at compile time rather than at run time. -- Larry Wall in <[EMAIL PROTECTED]>
>>>>> "M" == "Mike" <[EMAIL PROTECTED]> writes: > I am building an update string on the fly from form fields.I am > trying to add a comma between fields but I cant have one after the > last field.This is the code that doesnt work.Also I cant have a > comma at all in a table with only one updated field. > $keys = array_keys($HTTP_POST_VARS); > for($x = 2; $x < count($keys); $x++) > { > $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',"; > } OK, making assumptions about the order of the fields in the form is dangerous. Making assumptions about the order of an associative array is doubly so, although PHP seems remarkably forgiving about it. But assuming that's really what you want: <? $pairs = array(); foreach ( array_slice($HTTP_POST_VARS, 2) as $key => $value) $pairs[] = $key . "='" . $value . "'"; $updateString .= join(', ', $pairs); ?> -- Robin Vickery................................................. BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE
I'm not sure this is the best way to do it, but you could try: $keys = array_keys($HTTP_POST_VARS); for($x = 2; $x < (count($keys) - 1); $x++) { $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',"; } $x++; $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."'"; or: $keys = array_keys($HTTP_POST_VARS); for($x = 2; $x < count($keys); $x++) { if($x != (count($keys) - 1)) { $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',"; } else { $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."'"; } } -----Original Message----- From: Mike [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:34 AM To: [EMAIL PROTECTED] Subject: [PHP] Tough one? I am building an update string on the fly from form fields.I am trying to add a comma between fields but I cant have one after the last field.This is the code that doesnt work.Also I cant have a comma at all in a table with only one updated field. $keys = array_keys($HTTP_POST_VARS); for($x = 2; $x < count($keys); $x++) { $updateString=$updateString.$keys[$x]."='".$HTTP_POST_VARS[$keys[$x]]."',"; Thanks Mike [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]
Hello, I am trying to finish up a script with instructions on how to add my banner add script to someone's .phtml file. I need to print <? readfile(""); ?> in the html page that has instructions for the user. Anyway when I try to do that it just runs as a script... does anyone know how I can get over this? Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
On Thursday 22 February 2001 00:12, Brandon Orther wrote: > Hello, > > I am trying to finish up a script with instructions on how to add my banner > add script to someone's .phtml file. I need to print <? readfile(""); ?> use : echo '<? yaddayadda ?>'; the single quotes ensure that php does not evaluate the contents of the string constant cheers, hrishi
hi, with ?> <? readfile(""); ?> <? it should run. u could use echo ("< readfile(\"\")>") as well. sascha
Hi, I am trying to do a simple encryption on a credit card number to store in a mysql text field. I also have to de-crypt the number after exporting to an access db. I tried to use xor encryption, but it seems to only work half the time, the other half, I can't seem to de-crypt the # properly, some of the numbers end up screwed. Is this because of the way mysql is storing the field? Mabye it can't recognize some of the characters that are generated from the xor encryption? Ex: 123456789123 may end up 1 YdR and then de-crypts to 1234(*$8912# Is it the that are the problem? Or is the the access database that isn't properly storing the ? Is there a better way to do this? Thanks, Chris
I have a field in my MySQL DB that is "DATE" on the form that populates this field, various people will by typing in dates in various formats how to I convert say 2/21/01 or 02-21-2001 etc... to 2001-02-21(MySQL Format) Jerry Lake - [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com
On Wed, 21 Feb 2001 11:36:02 -0800, Jerry Lake ([EMAIL PROTECTED]) wrote: >I have a field in my MySQL DB that is "DATE" > >on the form that populates this field, various >people will by typing in dates in various formats > >how to I convert say 2/21/01 or 02-21-2001 etc... >to 2001-02-21(MySQL Format) probably the safest thing is instead of giving them a text field, give them 3 drop downs for day month and year.
Anybody know of an offshore dedicated web server hosting companies? randy
I'm working on a test envyroment, so I can't give you my URL because I can't pass through the firewall, the real site is http://www.bb.com.mx. With both files I see the same, it's kind of long.... Thanks a lot Extensions Extensions Additional Information PHP core CFLAGS= HSREGEX= Basic Functions No additional information. PHP_DL Dynamic Library support enabled. PHP_dir No additional information. PHP_filestat No additional information. PHP_file No additional information. PHP_head No additional information. Sendmail Path to sendmail: /usr/sbin/sendmail -t Syslog No additional information. PostgreSQL Allow persistent links: Yes Persistent links: 1/Unlimited Total links: 1/Unlimited Compilation definitions: PGSQL_INCLUDE= PGSQL_LFLAGS= PGSQL_LIBS= Socket functions No additional information. Regular Expressions Bundled regex library enabled gd Version 1.6 (PNG) or later, FreeType support Apache APACHE_INCLUDE= APACHE_TARGET= Apache Version: Apache/1.3.11 Apache Release: 10311100 Apache API Version: 19990320 Hostname/port: www.bb.com.mx:80 User/Group: nobody(99)/99 Max Requests: per child: 0 keep alive: on max per connection: 100 Timeouts: connection: 300 keep-alive: 15 Server Root: /usr/local/apache Loaded modules: mod_ssl, mod_php3, mod_setenvif, mod_so, mod_auth, mod_access, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, mod_vhost_alias, http_core Crypt No additional information. DBM This is GDBM version 1.8.0, as of May 19, 1999. bcmath No additional information. browscap No additional information. PHP_pack No additional information. PCRE Perl Compatible Regular Expressions PCRE library version: 2.05 21-Apr-1999 Posix $Revision: 1.19 $ LCG No additional information. Configuration Configure command: ./configure '--with-pgsql=/usr/local/pgsql' '--with-config-file-path=/usr/local/apache/conf' '--with-apache=/usr/src/apache_1.3.11' '--enable-track-vars' '--with-gd=/usr/local' '--with-ttf=/usr/local' php3.ini file path is set to: /usr/local/apache/conf Directive Master Value Local Value arg_separator & & asp_tags 0 0 auto_prepend_file /data/bajio/lib/prepend.php3 auto_append_file browscap none none cgi_ext none none debugger.host none none debugger.port 0 0 define_syslog_variables 0 0 display_errors 1 1 doc_root enable_dl 1 1 engine 1 1 error_log none none error_append_string none none error_prepend_string none none error_reporting 7 7 extension_dir ./ ./ gpc_order GPC GPC ignore_user_abort 0 0 include_path .:/data/bajio/include:/data/bajio/lib:include:lib isapi_ext none none last_modified 0 0 log_errors 0 0 max execution time 30 30 magic_quotes_gpc 1 1 magic_quotes_runtime 0 0 magic_quotes_sybase 0 0 memory limit 8388608 8388608 nsapi_ext none none open_basedir none none precision 14 14 safe_mode 0 0 safe_mode_exec_dir sendmail_from [EMAIL PROTECTED] [EMAIL PROTECTED] sendmail_path /usr/sbin/sendmail -t /usr/sbin/sendmail -t short_open_tag 1 1 smtp localhost localhost sql_safe_mode 0 0 track_errors 0 0 track_vars 1 1 upload_max_filesize 2097152 2097152 upload_tmp_dir none none user_dir warn_plus_overloading 0 0 xbithack 0 0 browscap none none y2k_compliance 0 0 highlight_comment #FF8000 #FF8000 highlight_default #0000BB #0000BB highlight_html #000000 #000000 highlight_string #DD0000 #DD0000 highlight_bg #FFFFFF #FFFFFF highlight_keyword #007700 #007700 Environment Variable LESSOPEN |/usr/bin/lesspipe.sh %s USERNAME root ENV /root/.bashrc COLORTERM gnome-terminal HISTSIZE 1000 HOSTNAME www LOGNAME root MAIL /var/spool/mail/root TERM xterm HOSTTYPE i386 PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/local/pgsql/bin HOME /root INPUTRC /etc/inputrc SHELL /bin/bash PGLIB /usr/local/pgsql/lib USER root MANPATH :/usr/local/pgsql/man DISPLAY :0 SESSION_MANAGER local/www:/tmp/.ICE-unix/759,tcp/www:1036 LANG en_US OSTYPE Linux WINDOWID 54526062 SHLVL 5 LS_COLORS no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35: _ /usr/local/apache/bin/httpd PHP Variables Variable Value PHP_SELF /phpinfo.php3 HTTP_COOKIE_VARS["RMID"] cff8e42e38a03ea0 HTTP_COOKIE_VARS["SITESERVER"] ID=4684739dcb07c5d0dcffb4137d1c00a8 HTTP_COOKIE_VARS["Session_Bajio"] 26cf4e2f973d1d2bfdc0611eb4c087a4 Apache Environment Variable Value DOCUMENT_ROOT /data/bajio HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* HTTP_ACCEPT_CHARSET iso-8859-1,*,utf-8 HTTP_ACCEPT_ENCODING gzip HTTP_ACCEPT_LANGUAGE en HTTP_CONNECTION Keep-Alive HTTP_COOKIE RMID=cff8e42e38a03ea0; SITESERVER=ID=4684739dcb07c5d0dcffb4137d1c00a8; Session_Bajio=26cf4e2f973d1d2bfdc0611eb4c087a4 HTTP_HOST www.bb.com.mx HTTP_USER_AGENT Mozilla/4.5 [en] (WinNT; U) PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin:/usr/local/pgsql/bin REMOTE_ADDR 192.1.1.184 REMOTE_HOST clribnk REMOTE_PORT 3770 SCRIPT_FILENAME /data/bajio/phpinfo.php3 SERVER_ADDR 192.1.1.173 SERVER_ADMIN [EMAIL PROTECTED] SERVER_NAME www.bb.com.mx SERVER_PORT 80 SERVER_SIGNATURE Apache/1.3.11 Server at www.bb.com.mx Port 80 SERVER_SOFTWARE Apache/1.3.11 (Unix) mod_ssl/2.5.1 OpenSSL/0.9.4 PHP/3.0.18 GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.0 REQUEST_METHOD GET QUERY_STRING REQUEST_URI /phpinfo.php3 SCRIPT_NAME /phpinfo.php3 HTTP Headers Information HTTP Request Headers HTTP Request GET /phpinfo.php3 HTTP/1.0 Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */* Accept-Charset iso-8859-1,*,utf-8 Accept-Encoding gzip Accept-Language en Connection Keep-Alive Cookie RMID=cff8e42e38a03ea0; SITESERVER=ID=4684739dcb07c5d0dcffb4137d1c00a8; Session_Bajio=26cf4e2f973d1d2bfdc0611eb4c087a4 Host www.bb.com.mx User-Agent Mozilla/4.5 [en] (WinNT; U) HTTP Response Headers X-Powered-By PHP/3.0.18 Connection close Content-Type text/html Hrishi wrote: > > > > I made a test with a info.php3 with the next code > > <? php phpinfo(); ?> > > and I get the following message: > > Parse error: parse error in /data/bajio/test.php3 on line 1 > > > ok i think i know whats wrong. > do this: > > make two files, both containing the same code : (copy and paste the following > until ?> . keep the newlines and spaces intact.) > > <? > > phpinfo(); > > ?> > > name one file phpinfo.php3 > the other one phpinfo.html > > see the output, tell me the URL if possible > i'm online for another 1/2 hr., if i cant help till then, mail the list again. > > cheers, > hrishi
I'm having some trouble reading a text file from a remote server into a string. The code is as follows: if( !($fd = @fopen($ftp_url, "r")) ){ $error = true; $error_msg = "Unable to connect to server."; } else { $file_contents = fread($fd, 100000); fclose($fd); } if( empty($file_contents) ){ $error = true; $error_msg = "Did not read file."; } The problem is that the fread doesn't always succeed; about about half the time the $file_contents string tests as empty. There is never a problem with the fopen, and there doesn't seem to be any consistancy in the failure... The same file may be loaded into the string on run one, and missing the next. The remote server is NT-based. Does anybody know what is going wrong here? I don't have to add any logic to "wait" for the fread to complete, do I? Thanks, mth.
Hello, I am trying to make am admin page for a few other pages in PHP but I dont know how to save the changes made. ie. The page has a few checkboxes & select boxes that when changed, change some variables that are then used in other pages. However I want the changes in the admin page to be permanent, until they are changed again. Not just for that session or user, but if the change is made it stays changed until the administrator decideds to go back in and change it again. How do you save the changes in that file on the server, by just using a browser? -- Regards, YoBro ------------------------------------------------------------- DO NOT REPLY TO THIS VIA EMAIL PLEASE USE THE NEWSGROUP All emails sent to this address are automatically deleted. This is to avoid SPAM! -------------------------------------------------------------
I have several images all over my site but when I call an image by a php3 file I get this error: ImageCreateFromGif: No GIF support in this PHP build in Any ideas... Thanks
Are you trying to create images or just display images? If you're trying to create images using GD, you'll need to check the version of GD you have installed. If you have a newer version or don't have it installed at all, you won't be able to use that functionality. If you're trying to display and image, you should even be calling a function. If you'd like, post you code and let me have a look. Jason --- Ana Carolina Blanco Abascal <[EMAIL PROTECTED]> wrote: > I have several images all over my site but when I > call an image by a > php3 file I get this error: > ImageCreateFromGif: No GIF support in this PHP > build in > > Any ideas... > 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] __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
We have designed a web based email program that we have recently found a problem with...If you open up two email accounts in two different browser windows, the first window opened takes on the session that the second window is in. It appears that you can open up as many sessions as you like, but all open windows take on the session properties of the most recently opened session...This happens in Windows and Linux with either IE or Netscape...Has anyone else had this problem and if so how can I work around it... Thanks, -- Jack Davis Network Administrator Bootheel Internet Services [EMAIL PROTECTED] (573)888-0075 fax (573)888-0098
Addressed to: Jack Davis <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from Jack Davis <[EMAIL PROTECTED]> Wed, 21 Feb 2001 14:58:13 -0600 > > We have designed a web based email program that we have > recently found a problem with...If you open up two email > accounts in two different browser windows, the first window > opened takes on the session that the second window is in. > It appears that you can open up as many sessions as you > like, but all open windows take on the session properties > of the most recently opened session...This happens in Windows > and Linux with either IE or Netscape...Has anyone else > had this problem and if so how can I work around it... I bet you are using cookies to keep track of them. If so, all open windows in a browser share the same set of cookies. The fix is to move the information that identifies which account they are working in to the URL. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com
Mensaje citado por: Jack Davis <[EMAIL PROTECTED]>: > We have designed a web based email program that we have > recently found a problem with...If you open up two email > accounts in two different browser windows, the first window > opened takes on the session that the second window is in. > It appears that you can open up as many sessions as you > like, but all open windows take on the session properties > of the most recently opened session...This happens in Windows > and Linux with either IE or Netscape...Has anyone else > had this problem and if so how can I work around it... That is because you're usuing cookies, and the cookie is part of the bowsers information. Opening another netscape session isn't really a new netscape, but a new browser using the same session. And, by default, the cookie will die when the browser is close. Saludos... :-) System Administration: It's a dirty job, but someone told I had to do it. ----------------------------------------------------------------- Martín Marqués email: [EMAIL PROTECTED] Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------
What does it mean when I get the line 'posix_getpwnam(username) failed with "Error number not set" in /xx.php3 on line ##' printed? It doesn't return anything anymore.
Hi, I am running PHP4.04pl1, pdflib3.03, jpeg6b, tiff3.5.5, apache1.3.17. Some of the pdf functions work, but others don't, such as pdf_new(). Does anybody know what the problem is? I have been all over the documentation, email archives, and support discussions at phpbuilder.com thanks, Sam
What OS and glibc version? There are problems with the set-up in RH7. Michael Sam Goin wrote: > Hi, > > I am running PHP4.04pl1, pdflib3.03, jpeg6b, tiff3.5.5, apache1.3.17. > > Some of the pdf functions work, but others don't, such as pdf_new(). > > Does anybody know what the problem is? I have been all over the > documentation, email archives, and support discussions at phpbuilder.com > > thanks, > > Sam
After spending a lot of time on this I think I almost have it figured out. I don't think it is a problem with the install. A found on php.net where when using pdflib 3.03, pdf_new() doesn't work. The fix is at the bottom of http://www.php.net/manual/en/ref.pdf.php It says to change pdf_new() to the following: <? header( "Content-type: application/pdf" ); <? Doesn't work for me, so I put <? in. This hasn't totally fixed my problem as of yet though. I get it to create the pdf, but when I go to open it, I get "File does not begin with PDF" If anyone knows how to fix this please let me know. Mike > From: Michael Stearne <[EMAIL PROTECTED]> > Date: Wed, 21 Feb 2001 17:31:45 -0500 > To: Sam Goin <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] PDF Problems > > What OS and glibc version? There are problems with the set-up in RH7. > > Michael > > > Sam Goin wrote: > >> Hi, >> >> I am running PHP4.04pl1, pdflib3.03, jpeg6b, tiff3.5.5, apache1.3.17. >> >> Some of the pdf functions work, but others don't, such as pdf_new(). >> >> Does anybody know what the problem is? I have been all over the >> documentation, email archives, and support discussions at phpbuilder.com >> >> 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]
Can anyone tell me if trans sid is supposed to work through form posts, and if so how to make it work right? It is working fine through normal links, but we have quite a few posts, and they lose the session. :( Thanks, Shawn
Hello, I am trying to enable ftp can someone please remind me what the command is? Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
I believe it's still --enable-ftp. Jason --- Brandon Orther <[EMAIL PROTECTED]> wrote: > Hello, > > I am trying to enable ftp can someone please remind > me what the command is? > > Thank you, > > -------------------------------------------- > Brandon Orther > WebIntellects Design/Development Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.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] > __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
Why do you have to specify multi-value fields in HTML forms specifically as PHP arrays? It seems incompatible with other CGI languages, and could make it difficlt to chop and change CGI engines in the background. At 19:08 21/02/2001 +0200, Pavel Jartsev wrote: >If you create your fields like this: ><? >... >echo '<input type="text" name="name['.$rownum.']">'; >echo '<input type="text" name="phone['.$rownum.']">'; >echo '<input type="text" name="fax['.$rownum.']">'; >... >?> Regs Brian White ------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: [EMAIL PROTECTED]
You don't have to specify them as "PHP arrays". You can do something like: <input type=text name="myArray[]"> <input type=text name="myArray[]"> <input type=text name="myArray[]"> <input type=text name="myArray[]"> PHP will create the array for you. Jason --- Brian White <[EMAIL PROTECTED]> wrote: > Why do you have to specify multi-value fields in > HTML > forms specifically as PHP arrays? > > It seems incompatible with other CGI languages, and > could make it difficlt to chop and change CGI > engines in > the background. > > At 19:08 21/02/2001 +0200, Pavel Jartsev wrote: > >If you create your fields like this: > ><? > >... > >echo '<input type="text" > name="name['.$rownum.']">'; > >echo '<input type="text" > name="phone['.$rownum.']">'; > >echo '<input type="text" name="fax['.$rownum.']">'; > >... > >?> > > Regs > > Brian White > ------------------------- > Brian White > Step Two Designs Pty Ltd - SGML, XML & HTML > Consultancy > Phone: +612-93197901 > Web: http://www.steptwo.com.au/ > Email: [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] > __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
That's the point - why do I have to have 'name="myArray[]"'. Why do I have to specify the '[]'s at all? Brian At 13:44 21/02/2001 -0800, jason cox wrote: >You don't have to specify them as "PHP arrays". You >can do something like: > ><input type=text name="myArray[]"> ><input type=text name="myArray[]"> ><input type=text name="myArray[]"> ><input type=text name="myArray[]"> > >PHP will create the array for you. > >Jason ------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: [EMAIL PROTECTED]
On Thu, 22 Feb 2001 08:24, Brian White wrote: > That's the point - why do I have to have 'name="myArray[]"'. Why > do I have to specify the '[]'s at all? > > Brian > > At 13:44 21/02/2001 -0800, jason cox wrote: > >You don't have to specify them as "PHP arrays". You > >can do something like: > > > ><input type=text name="myArray[]"> > ><input type=text name="myArray[]"> > ><input type=text name="myArray[]"> > ><input type=text name="myArray[]"> > > > >PHP will create the array for you. > > > >Jason > > ------------------------- > Brian White > Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy > Phone: +612-93197901 > Web: http://www.steptwo.com.au/ > Email: [EMAIL PROTECTED] Because otherwise you have one variable name, and it will contain the last value which was assigned to it. I don't know any languages where you can do: $value = 'A' $value = 'B' $value = 'C' print $value and get a result other than C -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
hehehehe...exact same host....ill try that out tonight...as a side note have you been experiencing some problems lately with responsiveness from the server...i dont know if u r on the same one as me (ZEUS) but I was just curious...ive noticed some "issues" as of later.. When You Compensate For A Lack Of Skill By Doubling Your Efforts, There's No End To What You Can't Do. ----- Original Message ----- From: "Hrishi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, February 21, 2001 4:01 AM Subject: Re: [PHP] CGI BIN PHP > hey, > > don't go bald yet :) > > my web host (communitech.net) has the same setup... is that where you're > hosted ? > > i have a script called 'php4.cgi' in my /cgi-bin which contains: > > #!/bin/sh > #echo -e "Content-type: text/plain\n\n"; > #set > SCRIPT_NAME=$REDIRECT_URL;export SCRIPT_NAME; > SCRIPT_FILENAME=$PATH_TRANSLATED;export SCRIPT_FILENAME; > /bin/php4; > #set > the #ed out commands are for debugging you may not need them. > my .htaccess in the documentroot contains : > > Action application/x-php4-script "/cgi-bin/php4.cgi" > AddHandler application/x-php4-script php > > > > i hope you can use this. > if you have any other problems, reply to the list because i'm sure more > people can use this 'technique'. its still under testing, (i made it 2 days > ago) so if there are any changes i need to make, i'll post it here. > > cheers, > hrishi > > > -- > 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 am having some problems creating FDF/PDF's on the fly. I have created a PDF with Abobe Acrobat 4 including forms. I would like to send PDF's via mail filling the fields in the PDF using my mysql database, so that everyone gets their own prefilled PDF. Does any of you have an example script I may use?? Thanks, Patrick. PS I checked phpbuilder.com, but the examples assume that the pdf is opened via the browser.
I have a database of numbers: TOTAL HITS: 1000 PAGE 1: 500 PAGE 2: 250 PAGE 3: 250 How can I query these numbers and display back a percentage number? For instance with the numbers above: PAGE 1: 50% PAGE 2: 25% PAGE 3: 25% Or is their a process by which to store numbers for easily getting this to work?
My idea is so easy it can't be right but here goes. Couldn't you read the total and page count into an array, the divide array values 1-3 by array value 0 and multiply that by 100? In other words: $row[0] = 1000; $row[1] = 500; $row[2] = 250; $row[3] = 250; array[1]/array[0] = 0.5 * 100 = 50 array[2]/array[0] = 0.25 * 100 = 25 array[3]/array[0] = .25 * 100 = 25 Like I said it's too simple but I haven't tested it so I'm probably missing something. John Guynn This email brought to you by RFCs 821 and 1225. -----Original Message----- From: Blake S. [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 4:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Generating percentages of numbers I have a database of numbers: TOTAL HITS: 1000 PAGE 1: 500 PAGE 2: 250 PAGE 3: 250 How can I query these numbers and display back a percentage number? For instance with the numbers above: PAGE 1: 50% PAGE 2: 25% PAGE 3: 25% Or is their a process by which to store numbers for easily getting this to work?
From: "Blake S." <[EMAIL PROTECTED]> > I have a database of numbers: > > TOTAL HITS: 1000 > PAGE 1: 500 > PAGE 2: 250 > PAGE 3: 250 > > How can I query these numbers and display back a percentage number? For > instance with the numbers above: > > PAGE 1: 50% > PAGE 2: 25% > PAGE 3: 25% > > Or is their a process by which to store numbers for easily getting this to > work? > > SELECT (hitcount / 1000) * 100 AS percentage FROM sometable Assuming you have a row in your table for each page.
Since I've always found my answers in the archive, this is my first post, so please excuse any blunders... I'm trying to download info from a table as a tab-delimted text file. This part works fine. (By disabling the UPDATE statement in the code sample below, I can get the same data file sent time after time.) I need to keep the data in the table for future reference, and only want to download each new record once, so I added a DateTime field that gets updated after downloading. Then searching on that field gives me just the records that haven't been downloaded yet. The weird part is that it seems like the LAST MySQL command (UPDATE) gets executed before the FIRST one (SELECT), because the SELECT statement comes up with 0 rows. Here's some selected (modified) parts of the PHP code: ------------------------ First, I perform the SQL: SELECT * from db_table WHERE (DownloadedDateTime = '0000-00-00 00:00:00') Then, it parses and sends the info: while ($row = mysql_fetch_row($result)) { while (list($key, $val) = each($row)) { $val = ereg_replace("[\n\r\t]"," ",$val); $val = ereg_replace(" {2,}"," ",$val); echo $val . "\t"; } //end of line echo "\r"; } Then I perform the SQL: UPDATE LOW_PRIORITY db_table SET DownloadedDateTime=CURRENT_TIMESTAMP WHERE (DownloadedDateTime = '0000-00-00 00:00:00') -------------------------- Any ideas why the rows are getting the DownloadedDateTime field updated before they get SELECTed? Thanks, Don Johnson [EMAIL PROTECTED]
Does anyone know of a way to resize images as they are being uploaded? Would you write these images to a mysql database or straight to a file on the server? The pictures will be small < 100k Thanks
I have been using the tools from ImageMagick (convert) to create thumb nails of pictures upload to our site. Once you have the uploaded file just: if (exec('convert -w 100x100 ... src_file dest_file')) { error } I hope this helps. Dale Frohman wrote: > Does anyone know of a way to resize images as they are being uploaded? > Would you write these images to a mysql database or straight to a file on > the server? The pictures will be small < 100k > > 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]
Hi, Is there any way to take an image from the filesystem, say a .jpg or .png, and display it in a different orientation? e.g. 20 degrees to the right? best regards, jaxon
Three quite related posts all in rapid sucesssion At 17:48 21/02/2001 -0500, Jaxon wrote: >Is there any way to take an image from the filesystem, say a .jpg or .png, >and display it in a different orientation? e.g. 20 degrees to the right? At 17:18 21/02/2001 -0500, Dale Frohman wrote: >Does anyone know of a way to resize images as they are being uploaded? >Would you write these images to a mysql database or straight to a file on >the server? The pictures will be small < 100k In both cases, the answer will have to be some kind of server side utility that can dynamically feed up translated images. Chris' very nice "image from database" snippet gives a guidline on how this might work - whether or not what you want can be done in PHP, I don't know. At 08:09 21/02/2001 -0800, Chris Lee wrote: >dspimage.inc ><?php > > include_once('database.egn'); > > header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); > header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); > header('Cache-Control: no-cache, must-revalidate'); > header('Pragma: no-cache'); > > if ( $prod_r = fetch_db_value('product_image', "WHERE product_id = >$product_id ") ) > { > if ($prod_r['product_image']) > { > Header("Content-Type: {$prod_r['product_image_type']}"); > echo $prod_r['product_image']; > exit(); > } > } > Header('Content-Type: image/gif'); > readfile("$DOCUMENT_ROOT/image/nopic.gif"); >?> > >index.php ><?php > echo " > <img src='include/dspimage.inc?product_id=123456'> > "; >?> ------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy Phone: +612-93197901 Web: http://www.steptwo.com.au/ Email: [EMAIL PROTECTED]
> At 17:48 21/02/2001 -0500, Jaxon wrote: > >Is there any way to take an image from the filesystem, say a .jpg or .png, > >and display it in a different orientation? e.g. 20 degrees to the right? > > At 17:18 21/02/2001 -0500, Dale Frohman wrote: > >Does anyone know of a way to resize images as they are being uploaded? > >Would you write these images to a mysql database or straight to a file on > >the server? The pictures will be small < 100k > > > In both cases, the answer will have to be some kind of server side utility > that can dynamically feed up translated images. Chris' very nice "image from > database" snippet gives a guidline on how this might work - whether or not what > you want can be done in PHP, I don't know. Actually, Brian's suggestion won't really solve your problems nor really apply. (No offense intended) In both cases you want to physically manipulate the images. This will require, as Brian mentioned, a utility. You'll want to look into using either ImageMagik or GD. I've never used ImageMagik but I have used GD quite a bit. To enable the PHP GD functions, you'll need to compile PHP with GD support. The more recent versions of GD support mainly JPEG and PNG image formats. GIF is not supported because it is copyrighted. If you need GIF support, you might be able to find an older version. You'll need one that's about a year old. (I believe that's when they stop supporting it.) In regards to the second question, you wouldn't even have to store the image in a database if you just want to manipulate it. You can just manipulate in on the filesystem. Hope that answers your questions, Jason
Hello All, Is there a way to turn ZEND_DEBUG on or off without recompiling? Thanks.
I seem to be stuck on a very simple (to me) issue. I am trying to build a database of links for a site. A user inputs an HTML link into a text box which is stored in a SQL db. This works fine. I need to display this data on pages, and retrieving it into the page displays fine as well. The problem arises when I need to provide a means to edit this link. Here's what I've got: Link as stored in db: <a href="http://winners-circle.com">Winners Circle Design Group</a> variants I've tried to store: <a href=\"http://winners-circle.com\">Winners Circle Design Group</a> <a href=\\\"http://winners-circle.com\\\">Winners Circle Design Group</a> <a href='http://winners-circle.com'>Winners Circle Design Group</a> All result in the textarea box in the form being populated with (basicly all the output to the end of the page): Winners Circle Design Group</a>"></form></td>\n </tr> <tr> <th width = "40%" align = "right">Created:</th> <td width = "60%">20010221195310</td> </tr> <tr> <th width = "40%" align = "right">Last Modified:</th> <td width = "60%">20010219104604</td> </tr> </table> </div> </body> </html> I'm sure that the answer is right in front of me, but my heads bleeding to badly from hitting the wall so many times, I can't see it! -- Paul