473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

using PHP on Yahoo

Lee
I am re-writing a site in PHP that is currently on Yahoo and I have
been testing with both
Firefox, and IE. I think Yahoo is running some version of unix or
linux, and I assume, the Apache server. My development has been on
local using XP pro.

Here's the problem: I have re-written most of the website
(www.beadiction.com) in PHP. But, the Yahoo server requires that my
first file be named index.html. If I include php code in this HTML
file, then the Apache (?) server doesn't see the php code. If I rename
index.html to
index.php, then the webserver doesn't display anything.

So, the question is: Does anyone know how to 'hook' index.html (which
uses php "includes" to load in the site's content) to Apache so that it
all runs together? As thought that I'd be able to use an Apache
directive in the .htacess file, but it appears that Yahoo does not
allow me to "see" that file. Also, I have tried using and html redirect
(via HEADERs) to kick off the index.php, hoping that that would be
enough for the PHP server to start looking at the code, but it too did
not work.

FWIW, I have been waiting for 2 weeks to get some help from the Yahoo
technical staff, who were provided the same information as above. Is
there something in the description I am perhaps leaving out that would
help state the problem more clearly?

Thanks for your help

Lee

Dec 2 '05 #1
15 1945
Following on from Lee's message. . .

FWIW, I have been waiting for 2 weeks to get some help from the Yahoo
technical staff, who were provided the same information as above. Is
there something in the description I am perhaps leaving out that would
help state the problem more clearly?


Perhaps send them a 'Hello World' that doesn't work along the lines of
index.html No 1
<html><head>
<META HTTP-EQUIV=Refresh CONTENT="1; URL=hw.php">
</head></html>

index.html No 2
<html><head>
</head>
<body
<a href="hw.php">click me!</a>
</html>
hw.php
<?php
print('Hello world');
?>

--
PETER FOX Not the same since the poster business went to the wall
pe******@eminent.demon.co.uk.not.this.bit.no.html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.demon.co.uk>
Dec 2 '05 #2
Lee wrote:
the Yahoo server requires that my
first file be named index.html.


They probably don't support PHP then! PHP is an extension to the
webserver; no (common) webserver executes php code by and from itself.

--
E. Dronkert
Dec 2 '05 #3
Lee
They support php, along with perl and mysql. They even have a php
dedicated editor. They just don't tell me how to hook index.html to
index.php. If I manually type the absolute path name
www.asdfadfasdf.com/index.php, it works just fine. Perhaps the
suggestion in the first reply is worth sending along to them, so they
can see the problem first hand. I can't imagine that among the
thousands of users on Yahoo, I am the first to have this issue...

thanks.

Lee

Dec 2 '05 #4
Lee wrote:
They support php, along with perl and mysql. They even have a php
dedicated editor. They just don't tell me how to hook index.html to
index.php. If I manually type the absolute path name
www.asdfadfasdf.com/index.php, it works just fine. Perhaps the
suggestion in the first reply is worth sending along to them, so they
can see the problem first hand. I can't imagine that among the
thousands of users on Yahoo, I am the first to have this issue...


If you think they are using Apache, then maybe thay have AllowOverrides
available to you as well...

In your root, create a file names ".htaccess" and it in put:

DirectoryIndex index.php

HTH

--
Justin Koivisto, ZCE - ju****@koivi.com
http://koivi.com
Dec 2 '05 #5
Lee wrote:
They support php, along with perl and mysql. They even have a php
dedicated editor. They just don't tell me how to hook index.html to
index.php. If I manually type the absolute path name
www.asdfadfasdf.com/index.php, it works just fine. Perhaps the
suggestion in the first reply is worth sending along to them, so they
can see the problem first hand. I can't imagine that among the
thousands of users on Yahoo, I am the first to have this issue...


Judging by the HTTP headers of your site (as mentioned in the original
post), there's no indication of what server software they're using
(Server header isn't passed).

I just checked the Yahoo! hosting FAQ, and they mention that .htaccess
files cannot be uploaded to your account.
http://help.yahoo.com/help/us/webhos...ossary-08.html

If I were you, I'd check with Yahoo! tech support about what you can
specifically do on this matter.
http://smallbusiness.yahoo.com/contactus/

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Dec 2 '05 #6
Justin Koivisto wrote:
Lee wrote:
They support php, along with perl and mysql. They even have a php
dedicated editor. They just don't tell me how to hook index.html to
index.php. If I manually type the absolute path name
www.asdfadfasdf.com/index.php, it works just fine. Perhaps the
suggestion in the first reply is worth sending along to them, so
they can see the problem first hand. I can't imagine that among the
thousands of users on Yahoo, I am the first to have this issue...


If you think they are using Apache, then maybe thay have
AllowOverrides available to you as well...

In your root, create a file names ".htaccess" and it in put:

DirectoryIndex index.php


I thought about recommending this course of action myself, until I
found this page:
http://help.yahoo.com/help/us/webhos...ossary-08.html

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Dec 2 '05 #7
Lee
thanks for the idea. I just tried it and Yahoo prevents me from
creating any file that starts with a period. It was worth a try.

Lee

Dec 2 '05 #8
Lee
I just sent off the second email to address the issue again. The first
email 2 weeks ago was never answered.

Lee

Dec 2 '05 #9
JDS
On Fri, 02 Dec 2005 06:56:48 -0800, Lee wrote:
I just sent off the second email to address the issue again. The first
email 2 weeks ago was never answered.


Sounds like it is time to switch web hosts. Its not like there aren't a
hundred gabajillion of them.

How much are you paying for your Yahoo web hosting anyways?

--
JDS | je*****@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

Dec 2 '05 #10
On 2 Dec 2005 06:47:30 -0800, "Lee" <we*******@beadiction.com> wrote:
thanks for the idea. I just tried it and Yahoo prevents me from
creating any file that starts with a period. It was worth a try.


Put this in your index.html file:

<html><head>
<META HTTP-EQUIV="refresh" CONTENT="0;
URL=http://www.yourdomain.dom/index.php"></head><body>
Redirecting to <a href =
"http://www.yourdomain.dom/index.php">http://www.yourdomain.dom/index.php</a>
</body>
</html>

--
Regards, Paul Herber, Sandrila Ltd. http://www.pherber.com/
Visio Utilities http://www.visio-utilities.pherber.com/
Dec 2 '05 #11
NC
Lee wrote:

I am re-writing a site in PHP that is currently on Yahoo
and I have been testing with both Firefox, and IE. I think
Yahoo is running some version of unix or linux, and I
assume, the Apache server.
Yahoo! Web Hosting is running Apache on FreeBSD. PHP is configured as
a CGI/FastCGI executable with safe mode off...
Here's the problem: I have re-written most of the website
(www.beadiction.com) in PHP.


If I go to http://www.beadiction.com/, I see the output of phpinfo(),
which, in particular, says:

PHP_SELF /index.php

Everything seems operational...

Cheers,
NC

Dec 2 '05 #12
Lee
The problem appears to be fixed. Maybe the tech people changed some
stuff internally, because I did not change anything from last week when
I stopped testing in frustration. Anyway, thanks for all your input and
advice. I appreciate the help

Lee

Dec 2 '05 #13
Lee
Sorry for not getting right back to you Jeff. My friends are paying
$40/month for the hosting service. I am pushing them to change, but it
probably won't happen until after the holidays. They can save hundreds
of dollars/year by going somewhere else.

Lee

Dec 2 '05 #14
JDS
On Fri, 02 Dec 2005 10:36:40 -0800, Lee wrote:
$40/month


!!!!! Shooee, you sho' 'nuff could do better.

There are, seriously, hundreds and hundreds, if not thousands, or possibly
even millions of web hosts available. If you want only top-tier, class A
service providers, that is still in the many dozens, certainly. And there
are surely providers who will answer your email within two weeks. Dump
Yahoo now if they won't even answer your questions.

--
JDS | je*****@go.away.com
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

Dec 3 '05 #15
Lee wrote:
Sorry for not getting right back to you Jeff. My friends are paying
$40/month for the hosting service. I am pushing them to change, but it
probably won't happen until after the holidays. They can save hundreds
of dollars/year by going somewhere else.


Yipes!

I pay a total of $59.90 a month for TWO virtual servers, and I'm still
attached to my old hosting company, which usually charges $17.95 a
month for a basic hosting account (400MB storage space, 15GB monthly
transfer, no limits on the amount of e-mail accounts and aliases). I
have a special deal for lower pricing with the latter company, though,
since I'm such a helpful customer.

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Dec 3 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Steve Koon | last post by:
I have a WinForm application that browses url inside an IE browers window on the form. I currently query the SQL server over port 1433 and retrive a data hirecachry that creates the menu that users...
11
by: Dorsa | last post by:
HI, Could you please tell me the error in here. I am trying to open an XML file from a link. Response.Clear() Response.Expires = 0 Response.BufferOutput = False Response.ContentType =...
4
by: joe_public34 | last post by:
Hello all, I'm trying to write a script to log into Yahoo! (mail, groups, etc), but when I pass the full URL with all form elements via Python, I get a resutling 400 - Bad Request page. When I...
12
by: Joe | last post by:
Hello All: Do I have to use the LoadControl method of the Page to load a UserControl? I have a class which contains three methods (one public and two private). The class acts as a control...
4
by: Hexman | last post by:
Code below ---- I've asked a similar question on this forum earlier. This is a slightly different situation. Previous Question ---- I'm trying to save some specific web pages to disk as...
3
by: KishoreSainath | last post by:
Hi All, I would like to know whether we can use Yahoo UI Library and Prototype in the same application/page. Has anybody experienced problems in using these libraries in the same page? I...
9
by: christopher_board | last post by:
Hi all. I am trying to connect to a MySQL Database using PHP on a local machine using locahost. I am using the following code <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass =...
0
by: sandeepk84 | last post by:
Hi all... I am facing a problem in getting attachments from Yahoo Classic using JavaMail. My program reads the attachments from gmail and Yahoo Beta. But attachments of type pdf or txt from...
83
by: liketofindoutwhy | last post by:
I am learning more and more Prototype and Script.aculo.us and got the Bungee book... and wonder if I should get some books on jQuery (jQuery in Action, and Learning jQuery) and start learning about...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.