[PHP] sessions IE 6.0 problem
Sessions aren't getting set. my parent frame is on xyz.com A frame on xyz.com loads a frame that contains a page on foo.com the page on foo.com start a session and sets a variable. but the IE does not accept this session. I've loaded this page on foo.com directly and it sets the session fine, but if I go to this page from the frame it never gets set. Any ideas on how to fix this? I tested this with Opera and Mozillo and had no problems. -mm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] I get a "File Download" dialogue box
I am trying to configure run PHP4 on Apache on Windows XP. When I type http://localhost/ all I get is a "File Download" dialogue box, instead of the normal Apache server page. Does anyone know whats is going on here? Please tell me if you need any more information. -Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Preserving field values between pages/tags
Hi, I'm building a form page that has 3 tags for different types of fields (i.e. Personal details, location details, other). I want to preserve the values of the filled in fields as the user moves from section/tag to section/tag. I've tried making each tag a separate page and use the URL to pass values, as well as put it all on one page and hide fields (which became more trouble than it was worth!). Does anyone have a more practical/useful way of preserving field values from page-to-page... or hiding fields as a user clicks on each tag? Thanks, -Nelson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP/SQL - inserting into database null results
I am a new person to PHP. I have purchased and read PHP fast & easy by Julie Meloni and have also read the 24 hours PHP book. I am able to connect to the SQL database and insert into the database via my html form. However, the values are null. When I look at the data in my database, it reads " ", " ", " ", etc. I have tried a couple different code: $query = "INSERT INTO MemberReviews VALUES (' ','$memb_name', '$bookname','$author', '$grade', '$review') "; mysql_query($query); mysql_close(); or in the form itself, I have tried: New Record Added\n"); } ?> Thanks in advance for your help Jennifer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Genuine Opportunity
Please see bottom of message for remove instructions. What you are about to read is tried, true, poven and effective. Have you ever tried or consideredmaking money using the medium of the internet? Are you marketing or promoting a business opportunity or product online? There is a LOT of money to be made on the internet and in reality, almost anyone can do it! Why not get your share? Read on if you would like to know exactly how to begin making money online almost right away! FREEDOM - Working on the internet allows you the freedom to work at home or wherever else you keep a computer with an internet connection. FLEXIBILITY - Work when you want, choose your own hours! No time clocks here! Spend more time with your family, supplement your current income or maybe even quit your job to work full time on the internet! Two years ago I began searching the internet for online business opportunities, my aim was to to supplement my fairly average working wage. With no previous experience or knowledge, I didn't know if it was actually possible to make money on line at all. I had heard all kinds of stories of untold riches and instant moneymakers, no doubt you have yourself. It's not hard to find all kinds of business opportunities, a simple engine search on "business opportunity" will bring up thousands. After joining various business opps, bieng scammed and reading LOTS of information I came to a conclusion : There definately IS money to be made on the internet, in fact there are HUGE amounts but lets not get carried away. The secret is to have the right system, you must use the right method for marketing and promoting your business. Stay well away from deals which sound too good to be true, more often than not they are scams. It's not hard to get suckered in by flashy ads promising the earth in return for very little effort. METHOD - You must promote your business to as many people as you can, the more exposure the more money you will generate. Classified sites, FFA sites and search engine submissions are all great to mess around with but are not worth the time you put in. Replies, hits and sales from these advertising methods are dismal to say the least. Opt in lists are much the same, so many people use these methods that the chances of your sales ad bieng noticed are slim. The moment I discovered BULK EMAILING my profits soared literally overnight. Bulk mailing reaches your your target customers and reaches them quickly and efficiently. Within a few weeks I had recieved my first paycheck and I was hooked! To save you the gruelling and lengthy task of learning to make money online, I have outlined the full and detailed system for you. I would gaurantee this information, but I am not charging for it anyway! Its yours FREE! - First you need the right business opportunity or product to sell. You can search around for one yourself, BE AWARE of scams. I will refer you to a great business opp later in this message. - You need to write a killer ad to grab peoples attention, try different ads and gauge the responses. . - To send bulk mail you need a reliable bulk mailing programme, I will refer you to a great one later in this message. Once again, there are many different programmes around and some are better than others. They can range in cost from FREE to $3000. The free programmes tend to be slow and unreliable, they also blatantly expose your dialup ISP causing more problems than they are worth. The best solution is a low cost mailer which masks your dialup ISP and sends about 5000 emails per hour. I will refer you to the best bulk mail programme for your purposes later in this message. - You need loads and loads of fresh (preferrably targeted) email adresses to send your ad to. No doubt you will find offers all over the place selling email lists. DO NOT buy these lists whatever you do. A great one I have seen is 1 000 000 email adresses for $30, most of these adresses are old and full of undeliverables. I will tell you how to get your adresses later in this message. - You need a free webbased email account, there are hundreds just do an engine search or go to: http://www.fepg.net/search.html Try to get a POP3 accessable one, this means that you can access your webmail from your computers mail programme eg, outlook, eudora. The reason for the webbased email is to recieve removal requests and enquiries. You must always supply a valid email adress with any bulk mail you send out.You must always honour removal requests and give people an option to be removed from any possible future mailing. -POP 3 Adress Extractor - The process of collecting adresses from removal requests is very lengthy and tedious work nevertheless must be done after EVERY mailing. Personally, I laboured through this task every day to compile my remove lists. After stumbling across a POP 3 extractor, things instantly became MUCH easier
[PHP-I18N] Genuine Opportunity
Please see bottom of message for remove instructions. What you are about to read is tried, true, poven and effective. Have you ever tried or consideredmaking money using the medium of the internet? Are you marketing or promoting a business opportunity or product online? There is a LOT of money to be made on the internet and in reality, almost anyone can do it! Why not get your share? Read on if you would like to know exactly how to begin making money online almost right away! FREEDOM - Working on the internet allows you the freedom to work at home or wherever else you keep a computer with an internet connection. FLEXIBILITY - Work when you want, choose your own hours! No time clocks here! Spend more time with your family, supplement your current income or maybe even quit your job to work full time on the internet! Two years ago I began searching the internet for online business opportunities, my aim was to to supplement my fairly average working wage. With no previous experience or knowledge, I didn't know if it was actually possible to make money on line at all. I had heard all kinds of stories of untold riches and instant moneymakers, no doubt you have yourself. It's not hard to find all kinds of business opportunities, a simple engine search on "business opportunity" will bring up thousands. After joining various business opps, bieng scammed and reading LOTS of information I came to a conclusion : There definately IS money to be made on the internet, in fact there are HUGE amounts but lets not get carried away. The secret is to have the right system, you must use the right method for marketing and promoting your business. Stay well away from deals which sound too good to be true, more often than not they are scams. It's not hard to get suckered in by flashy ads promising the earth in return for very little effort. METHOD - You must promote your business to as many people as you can, the more exposure the more money you will generate. Classified sites, FFA sites and search engine submissions are all great to mess around with but are not worth the time you put in. Replies, hits and sales from these advertising methods are dismal to say the least. Opt in lists are much the same, so many people use these methods that the chances of your sales ad bieng noticed are slim. The moment I discovered BULK EMAILING my profits soared literally overnight. Bulk mailing reaches your your target customers and reaches them quickly and efficiently. Within a few weeks I had recieved my first paycheck and I was hooked! To save you the gruelling and lengthy task of learning to make money online, I have outlined the full and detailed system for you. I would gaurantee this information, but I am not charging for it anyway! Its yours FREE! - First you need the right business opportunity or product to sell. You can search around for one yourself, BE AWARE of scams. I will refer you to a great business opp later in this message. - You need to write a killer ad to grab peoples attention, try different ads and gauge the responses. . - To send bulk mail you need a reliable bulk mailing programme, I will refer you to a great one later in this message. Once again, there are many different programmes around and some are better than others. They can range in cost from FREE to $3000. The free programmes tend to be slow and unreliable, they also blatantly expose your dialup ISP causing more problems than they are worth. The best solution is a low cost mailer which masks your dialup ISP and sends about 5000 emails per hour. I will refer you to the best bulk mail programme for your purposes later in this message. - You need loads and loads of fresh (preferrably targeted) email adresses to send your ad to. No doubt you will find offers all over the place selling email lists. DO NOT buy these lists whatever you do. A great one I have seen is 1 000 000 email adresses for $30, most of these adresses are old and full of undeliverables. I will tell you how to get your adresses later in this message. - You need a free webbased email account, there are hundreds just do an engine search or go to: http://www.fepg.net/search.html Try to get a POP3 accessable one, this means that you can access your webmail from your computers mail programme eg, outlook, eudora. The reason for the webbased email is to recieve removal requests and enquiries. You must always supply a valid email adress with any bulk mail you send out.You must always honour removal requests and give people an option to be removed from any possible future mailing. -POP 3 Adress Extractor - The process of collecting adresses from removal requests is very lengthy and tedious work nevertheless must be done after EVERY mailing. Personally, I laboured through this task every day to compile my remove lists. After stumbling across a POP 3 extractor, things instantly became MUCH easier
[PHP] Monthly Drawing Winner!
Dear PHP Group [EMAIL PROTECTED], Congratulations! You just won US$10.00!! We just gave away US$25,000.00!! And you PHP Group [EMAIL PROTECTED] are among the lucky 2500 people randomly selected to receive a FREE US$10.00 Trial Account at TheCasino.com - the Internet's Premier Online Casino! Account Status for PHP Group [EMAIL PROTECTED]: Live Account Balance: US$5.00 (your cash account) Live Buffer Balance: US$5.00 (for extended play!) To access your "Winning Account", please go to: http://special.TheCasino.com/drawing.cs?winner=PHP&[EMAIL PROTECTED]&[EMAIL PROTECTED] Again, congratulations to you PHP Group [EMAIL PROTECTED], and to the rest of our most recent instant money winners!! Enjoy your VIP visit to TheCasino.com! Sincerely, Ms. Kaara Moore Director of Relations [EMAIL PROTECTED] http://www.TheCasino.com TheCasino.com - Better Than Life!! (TM) Serving Winners since 1999 - Now with 100% Bonus on Every Deposit! == If you no longer wish to be considered for future Prize Give-Aways, please click on the following link to remove yourself from our drawings: http://www.TheCasino.com/remove.me?[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] Monthly Drawing Winner!
Dear PhpList wives (E-mail), Congratulations! You just won US$10.00!! We just gave away US$25,000.00!! And you PhpList wives (E-mail) are among the lucky 2500 people randomly selected to receive a FREE US$10.00 Trial Account at TheCasino.com - the Internet's Premier Online Casino! Account Status for PhpList wives (E-mail): Live Account Balance: US$5.00 (your cash account) Live Buffer Balance: US$5.00 (for extended play!) To access your "Winning Account", please go to: http://special.TheCasino.com/drawing.cs?winner=PhpList&lastname=(E-mail)&[EMAIL PROTECTED] Again, congratulations to you PhpList wives (E-mail), and to the rest of our most recent instant money winners!! Enjoy your VIP visit to TheCasino.com! Sincerely, Ms. Kaara Moore Director of Relations [EMAIL PROTECTED] http://www.TheCasino.com TheCasino.com - Better Than Life!! (TM) Serving Winners since 1999 - Now with 100% Bonus on Every Deposit! == If you no longer wish to be considered for future Prize Give-Aways, please click on the following link to remove yourself from our drawings: http://www.TheCasino.com/remove.me?[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]
Re: [PHP] still problem with getting HIGHest and LOWest VALUES
I'm not much into PHP, but looking at it from SQL I guess you have defined the price column as a string? Make it an integer...? Marc - Original Message - From: "Teqila MAN" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 30 September 2001 16:22 Subject: [PHP] still problem with getting HIGHest and LOWest VALUES > The table has values : > > id - price > 1 - 15 > 2 - 24000 > 3 - 65000 > 4 - 20 > > > When i want to sort it > > $x = mysql_query("SELECT * FROM $dealer_tabela ORDER BY cena"); >while ($row = mysql_fetch_array($x)) >{ >$id=$row["id"]; >$price=$row["price"]; >print("$price\n"); >} > > It returns me values : > 15 > 20 > 24000 > 65000 > > What is false! It sorts this by getting first values ? How to fix it ? > > Thanks for your help > tm. > > > -- > 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] executed script URL
I'm firt time here so hello everybody I have some skill in php coding so don't worry, I will no boring with stupid question. Due to I'm unable to test my app on all http servers with all configs I need to know is it possible to get from PHP engine information about executed script URL (not file system path). Now what I'm investigated It's began since I cannot use relative path for Location header on IIS servers. It must contains URI. I cannot build the URL with $_SERVER['PHP_SELF'] because it not always returns relative to server path (due to server configuration it sometimes returns full URL) building URL using method described in documentation comments: $_SERVER['SERVER_NAME'] + $_SERVER['SCRIPT_NAME'] is good until the system is started with embeded php. If php runs as cgi, $_SERVER['SCRIPT_NAME'] returns path co cgi.exe $_SERVER['SCRIPT_FILENAME'] and $_SERVER['PATH_TRANSLATED'] are filesystem based variables, and are useless because we still have no information about URL path related to server base URL. So, is it possible to get this URL automaticly, or I will have add variable with fixed URL into config file of system I'm working on. best regards -- ***Media-IT Michał Kożusznik *** *** IT networks - databases - multimedia *** ***[EMAIL PROTECTED] *** *** http://www.media-it.net *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] newbie database question
Hi, Thanks in advance if your able to answer this... I run a .txt perl/cgi database/shopping cart which uses the command line http://localhost/_uns/cgi-bin/store.cgi?command=listitems&pos=0&type=all to produce a list of all items in the database. I also have a front page index.htm which has a header and I would like to be able to generate the above output to this page as soon as people visit the site. Is there any way I can do this with PHP. Or at least an someone point me in the right direction. William L Kolln -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Hiding email address from Robots ??
Looking for opinions before I start using this to hide the email address on a page $nx = "username"; $sx = "domain"; $mx = "[EMAIL PROTECTED]"; Then mailto: Hopefully a Robot would read the address as the result of $mx, which is totally useless - but it seems too easy. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cancel <41FE83F4.2020207@ridersite.org>
This message was cancelled from within Mozilla. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Make good money online! It's easy ....
Please see the bottom of the message for the remove instuctions. What you are about to read is tried, true, proven and effective. Above all, this offer is utterly and ridicously excellent!! Have you ever tried or considered making money using the internet? Are you marketing or promoting a business online? There is a lot of money to be made on the internet and in reality, anyone can do it! Why not get your share? Read on and weep with joy, if you would like to know exactly how to begin making money online right away! FREEDOM - Working on the internet allows you the freedom to work at home, or wherever you keep a computer with an internet connection. FLEXIBILITY - Work when you want, choose your own hours! No time clocks here! Spend more time with your family, and supplement your current income. Maybe even give up your day job. There's definately more money to be made on the internet. In fact there are huge amounts, but lets not get carried away. The secret is to have the right system, as you must have the right method for marketing and promoting your business. Of course you will firstly need a money generating business, if you don't already have one. If you need an online business, you will be referred to a reputable one if you read on. Prepare to be amazed! The following info and programmes would cost you in excess of $1000.00, if you bought them singularly over your internet travels. Not to mention the time, and painstakingly gruelling effort you are saved. It took me years to perfect, collect, and put together this system. Nowhere else will you find such a complete package. Experienced marketers keep these secrets closely guarded from possible competition. METHOD - You must promote your business to as many people as you can. The more exposure, the more money you will generate. Classified sites, FFA sites and search engine submissions are all great to mess around with, but are not worth the time that you put in. Replies, hits and sales from these advertising methods are dismal to say the least. Opt in lists are much the same. So many people use these methods, that the chance of your sales ad being noticed are slim. The moment I discovered bulk emailing my profits soared literally overnight. Bulk mailing reaches you your target customers and reaches them quickly and efficiently. Bulk mailing is the simplest way to get your advertisement seen by your target audience. You could think of it as dropping thousands of flyers advertising your business from an aeroplane over a city, some will be read and some will not. The law of averages applies to bulk mailing, sales can be increased by a catchy sales ad or decreased by a boring, uninspiring ad. Bulk mailing is wrongly frowned apon by a section of the internet community. Bulk emailing is an amazing new way of advertising and if gone about correctly you can avoid the hassles and achieve your aim - to generate sales. There are the cowboy bulk emailers who send out huge amounts of mail everyday, they do not give recipients the option to be removed from thier lists and basically don't give a damn. These 'cowboys' are the cause of the bad press on bulk mailing, they may make a lot of money in the short time they are mailing, but they never last long. Internet service providers will not stand for that kind of behavior. The methods I am about to outline to you here will have you profiting continuosly for years to come, not just for a couple of days. You will not be sending out mail blindly, but in a sensible and controlled manner. If you are going to send out bulk email, then why not do it the right way to start with and save yourself and others a lot of headaches. There are thousands upon thousands of people out there who are ready and willing to respond to your ads and purchase your products. Get out there and be seen, stand out from the crowd and reap the rewards. It is not as hard as you may think! You must have a system to be successful and to work out the correct system for you could take years of trial and error. There are not many successful marketers out there who are willing to give away their secrets such as I have here! To save you gruelling and lengthy task of learning to make money online, I have outlined and supplied you with the complete, ready to go system. I fully guarantee the system and the associated programmes. They will work for you! First you will need the right business opportunity or product to sell. You can search around for one yourself, but beware of scams. I will refer you to a great business opp later in this message. You will need to write a killer ad that grabs peoples attention, try different ads and gauge the responses. To send bulk mail you need a reliable bulk mailing programme, I will refer you to a great one later in this message. Once again, there are many different programmes around and some are better than others. The
[PHP-I18N] Make good money online! It's easy ....
Please see the bottom of the message for the remove instuctions. What you are about to read is tried, true, proven and effective. Above all, this offer is utterly and ridicously excellent!! Have you ever tried or considered making money using the internet? Are you marketing or promoting a business online? There is a lot of money to be made on the internet and in reality, anyone can do it! Why not get your share? Read on and weep with joy, if you would like to know exactly how to begin making money online right away! FREEDOM - Working on the internet allows you the freedom to work at home, or wherever you keep a computer with an internet connection. FLEXIBILITY - Work when you want, choose your own hours! No time clocks here! Spend more time with your family, and supplement your current income. Maybe even give up your day job. There's definately more money to be made on the internet. In fact there are huge amounts, but lets not get carried away. The secret is to have the right system, as you must have the right method for marketing and promoting your business. Of course you will firstly need a money generating business, if you don't already have one. If you need an online business, you will be referred to a reputable one if you read on. Prepare to be amazed! The following info and programmes would cost you in excess of $1000.00, if you bought them singularly over your internet travels. Not to mention the time, and painstakingly gruelling effort you are saved. It took me years to perfect, collect, and put together this system. Nowhere else will you find such a complete package. Experienced marketers keep these secrets closely guarded from possible competition. METHOD - You must promote your business to as many people as you can. The more exposure, the more money you will generate. Classified sites, FFA sites and search engine submissions are all great to mess around with, but are not worth the time that you put in. Replies, hits and sales from these advertising methods are dismal to say the least. Opt in lists are much the same. So many people use these methods, that the chance of your sales ad being noticed are slim. The moment I discovered bulk emailing my profits soared literally overnight. Bulk mailing reaches you your target customers and reaches them quickly and efficiently. Bulk mailing is the simplest way to get your advertisement seen by your target audience. You could think of it as dropping thousands of flyers advertising your business from an aeroplane over a city, some will be read and some will not. The law of averages applies to bulk mailing, sales can be increased by a catchy sales ad or decreased by a boring, uninspiring ad. Bulk mailing is wrongly frowned apon by a section of the internet community. Bulk emailing is an amazing new way of advertising and if gone about correctly you can avoid the hassles and achieve your aim - to generate sales. There are the cowboy bulk emailers who send out huge amounts of mail everyday, they do not give recipients the option to be removed from thier lists and basically don't give a damn. These 'cowboys' are the cause of the bad press on bulk mailing, they may make a lot of money in the short time they are mailing, but they never last long. Internet service providers will not stand for that kind of behavior. The methods I am about to outline to you here will have you profiting continuosly for years to come, not just for a couple of days. You will not be sending out mail blindly, but in a sensible and controlled manner. If you are going to send out bulk email, then why not do it the right way to start with and save yourself and others a lot of headaches. There are thousands upon thousands of people out there who are ready and willing to respond to your ads and purchase your products. Get out there and be seen, stand out from the crowd and reap the rewards. It is not as hard as you may think! You must have a system to be successful and to work out the correct system for you could take years of trial and error. There are not many successful marketers out there who are willing to give away their secrets such as I have here! To save you gruelling and lengthy task of learning to make money online, I have outlined and supplied you with the complete, ready to go system. I fully guarantee the system and the associated programmes. They will work for you! First you will need the right business opportunity or product to sell. You can search around for one yourself, but beware of scams. I will refer you to a great business opp later in this message. You will need to write a killer ad that grabs peoples attention, try different ads and gauge the responses. To send bulk mail you need a reliable bulk mailing programme, I will refer you to a great one later in this message. Once again, there are many different programmes around and some are better than others. The
[PHP] help with include
Hi, I need some help with the include function. I have a phpBB script and want to put the config.inc.php file in a password protected directory, Easy peasy you might say, and I know it is, but the problem comes because the password protected directory isn't on the site the script is on, mainly because the host says I've got to upgrade my account to use password protected dir's. I've got one site with a password protected dir available and would like to put it on there. Any idea's how to do it would be appreciated. Many thanks Brian -- 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] Passing PHP Variables
I need to pass a variable e.g. $var1 from one PHP page to another. The only conditions are that the variable cannot be shown in the source code on the end users machine nor can it be passed visibly within the url. Does anyone have any suggestions on how I can accomplish this? Hippie. -- 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] Include() and URLs
I'm trying to include a URL using the following line include('http://www.cci.net.au/default.htm'); I get the following response. Warning: Failed opening 'http://www.cci.net.au/default.htm' for inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php on line 61 I have made sure the url_fopen_wrappers is enabled in the php.ini file but apart from this I'm kind of lost as to what is causing the problem. Any suggestions? Note: I'm using PHP for Windows v4.0.6. This command runs fine on my Linux box using the same build so I assume it's a configuration problem. Hippie.
RE: [PHP] include() and URL's
The file is running on an NT box and can be accessed fine through IIS. It is only when using the include() statement to this file that problems occur. If I do a local path map to it, it will include fine but when using an URL it gives that error. Hippie. At 05:02 PM 1/17/02 -0700, you wrote: >Does the file have persmissions such that it is include()-able by nobody? > >Kirk > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, January 16, 2002 4:33 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] include() and URL's > > > > > > I'm trying to include a URL using the following line > > > > include('http://www.cci.net.au/default.htm'); > > > > I get the following response. > > > > Warning: Failed opening 'http://www.cci.net.au/default.htm' for > > inclusion (include_path='') in C:\Inetpub\wwwroot\template\index.php > > on line 61 > > > > I have made sure the url_fopen_wrappers is enabled in the php.ini file > > but apart from this I'm kind of lost as to what is causing the > > problem. Any suggestions? > > > > Hippie. > > > > -- > > 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]
RE: [PHP] include() and URL's
I'm using my workstation as an all in one test box. It's running, IIS 4.0, and PHP for Windows version 4.0.6. At 11:13 AM 1/18/02 +1100, you wrote: > > The file is running on an NT box and can be accessed fine > > through IIS. It is only when using the include() statement to > > this file that problems occur. If I do a local path map to it, > > it will include fine but when using an URL it gives that error. > >Can you retrieve the file from that URL from the command line >on that machine? (try 'wget' or 'curl', or even just 'lynx') > >It's possible that while you can see it from your workstation, >the server PHP is installed on cannot. > >Jason > >-- >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]
Re: [PHP] Using include() and URL's
In regards to 1, neither of them are. they're just examples I was testing. As for your second note, it need only include the page, it needs only to display the page. It works fine with local references, just not with URL's. At 06:33 AM 1/18/02 +0200, you wrote: >A couple of comments: >1. Your include() statement specifies a different file than your error >message - which one is right? >2. From what I recall (but I'm not positive), using a protocol type at the >beginning of the location ("http://";) means that your server will actually >use that (i.e. parse it -- it'll include whatever you see when you're using >a browser on the respective location) rather than include the source file. >Is that wht you want? > >Just my 2c. > >Bogdan > >Hippie wrote: > > > I have a simple command similar to this. > > > > include ("http://www.cci.net.au/default.htm";); > > > > When it parses the php file it is contained in though I get the > > following response. > > > > Warning: Failed opening 'http://flurry.cci.net.au/template/index.php' > > for inclusion (include_path='') in > > C:\Inetpub\wwwroot\template\index.php on line 61 > > > > I checked that I hard url_fopen_wrappers enabled within the php.ini > > file which it was and other than that have been unable to deduce why > > this isn't working. > > > > Any comments would be much appreciated. > > > > Hippie. > > > > -- > > 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]
[PHP] Truncating Lines
Hi, I have the following code, which reads in an html file $fd = fopen("somefile.html", "r"); while (!feof($fd)) { $buffer = fgets($fd, 4096); $body .= $buffer; } fclose($fd); I am then mailing this: if (mail($username." <".$email.">", $mailsubject, $body, "From: ".$Fromname." <".$Fromaddress.">\nContent-Type: text/html; charset=iso-8859-1 ")) All works fine, except when a particular line in the html file is unusually long. Where this is the case, the mail gets sent but the long line truncates (the last character on the line being ! (exclamation mark)) followed by the remainder of the line on a new line. This obviously causes problems when trying to display the HTML. Strangely though, if the recipient of the mail is a local user (i.e. a user residing on this box), the line does not truncate and the HTML source remains intact. Equally, if I write out the contents of $body to the screen, the HTML source is intact. I suspect Sendmail may be the culprit, but I'm not sure. I realise I could keep my HTML source lines to a certain length, however these are often created dynamically so it's not that straight forward. -- 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] PHP 4.0.5 & Windows 2000 Server Getting Rid Of The Windows Authentication & Still Being Able To Access PHP
Dear All; Hi, this I imagine should be an easy question for some of the ex[perts out there so please help. I have install PHP 4.0.5 on a WIndows 2000 Server SP2 with IIS CGI; and am using the php.exe. When I try and access a page generated using php say like http://domain.com/page.php I get the Windows 2000 logon windows comes up. If I log in the page works fine, also I'm able to access http://domain.com/cgi-bin/page.pl files without them bringing up the logon screen. I've gone into the web site properties and have recreated the site with all anonymous setting and I still get the same thing When I go into Web Site Security and turn off the Windows Authenicatiion I get you are not authorized to view this page even though it set to anonymous. I've tried it usieng the deafult web site, creating a brand new web site, still get the same thing. When I go and change the permissions on the php.exe from within it's file properites and add more users I get CGI ERROR Headers Not Acting right and not returning what they should and then it's just blank, it never tells me what it isn't returning. Also, I have the directory set up to allow everyone to read & run scripts and executables, just not write No matter what I do I either get yuou are not authorized to view this page, or the logon screen and if I logon it works, or the CGI ERROR I mentioned earlier. I don't understand why I'm able to run a perl script and not a php executable. I also get the same stuff if I try and access it locally on the same machince it resides on. I hope this gives you enough info to answer my question please help before I really mess things up. Sincerely Brian
[PHP] Strange XML/file read problem
I'm getting the same exact problem as this: http://marc.theaimsgroup.com/?l=php-general&m=102879705713315&w=2 Here's the code that's giving me problems: while ($data = fread($fp, 4096)) { xml_parse($parser, $data, feof($fp)) or die(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($parser)), xml_get_current_line_number($parser))); } i get the message "XML error: syntax error at line 1". The odd part is that it sometimes works, and sometimes doesn't.. and I don't have to change the code. It would be nice to know if the original poster ("Matt Holmes" ) has fixed it or not. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] component library
as cold fusion (custom tags), can i made some component to reuse in all my script ? is a function visible every where in PHP ? can i developp a script with a name, and call this script by an include function and passing parameters ? -- 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] variable $PATH_INFO
why can i read PATH_INFO server variable with apache under windows server ? with IIS 5 it's OK how can i ? -> Warning: Undefined variable: PATH_INFO in e:\sitephp\php_edit\htdocs\var.php on line 3 -- 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] Re: variable $PATH_INFO
PHP is configured to loadModule php4ts.dll i don't know configured to pass that variable on ! Richard Lynch <[EMAIL PROTECTED]> a écrit dans le message : 014601c12459$6e069920$[EMAIL PROTECTED] > > why can i read PATH_INFO server variable with apache under windows server > ? > > > > with IIS 5 it's OK > > > > how can i ? > > > > -> Warning: Undefined variable: PATH_INFO in > > e:\sitephp\php_edit\htdocs\var.php on line 3 > > Is Apache configured to pass that variable on? > > Did you compile as CGI -- IE, are you using "Action" in your httpd.conf or > LoadModule/AddModule? > > > > -- > WARNING [EMAIL PROTECTED] address is an endangered species -- Use > [EMAIL PROTECTED] > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > > -- 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] to richard lynch
on response to a question about variable $PATH_INFO , you said me: Is Apache configured to pass that variable on? Did you compile as CGI -- IE, are you using "Action" in your httpd.conf or LoadModule/AddModule? but how to configure to pass that variable ? what is action ? i'm using LoadModule/AddModule for php4 -- 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] Re: Can this be done?
post the script, and example of data ""Miller, Terion"" wrote in message news:c6259e7b.e91%kmille...@springfi.gannett.com... Ok I have a script that grabs data from a page and puts it in a db, I need to run this script 26 times on 26 different pages on the same site, is there a way to do this without making 26 different scripts load? Should I post the script? Thanks, T.Miller __ Information from ESET Smart Security, version of virus signature database 4053 (20090505) __ The message was checked by ESET Smart Security. http://www.eset.com __ Information from ESET Smart Security, version of virus signature database 4053 (20090505) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php