473,761 Members | 2,410 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1987
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">c lick me!</a>
</html>
hw.php
<?php
print('Hello world');
?>

--
PETER FOX Not the same since the poster business went to the wall
pe******@eminen t.demon.co.uk.n ot.this.bit.no. html
2 Tees Close, Witham, Essex.
Gravity beer in Essex <http://www.eminent.dem on.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.co m
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******@NOSPAM betadome.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******@NOSPAM betadome.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

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

Similar topics

1
2169
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 are click on an push the assign URL entery to the IE window. Due to the issue that using port 1433 present I would like to move to using port 80 to retrive this data which I would then poplate my menu with. Does anyonw know where I can get a good...
11
4046
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 = "text/xml" Response.AddHeader("Content-Disposition", "filename=test.XML")
4
3699
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 just plop the full URL into a browser, it works perfectly. Is there something I need to specify in python to submit the correct info (headers, user agent, etc) to get the response I want? Here is the code I have that returns the Bad Request:
12
2210
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 server. It "serves" back the required control (either WebControl or UserControl) based on the contents of an xml file. The code in the webform places each control in a TableCell. My problem is that the control server works as far as returning the...
4
10901
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 text files. I searched the Internet and found a basic example which I changed to fit my needs. I tested it out first on a single URL and it worked fine. Now when I incorporate an array of URL's, it fails to work. The first "responseFromServer"...
3
1566
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 welcome feedback from folks who have used YUI and prototype together.
9
3186
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 = 'password'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
0
1576
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 classic Yahoo are having the problem. I use isMymeType function to check the type, can anyone say how the type should be checked for files from classic yahoo? ie. for gmail part.isMimeType("text/plain") or part.isMimeType("multipart/*") will work....
83
4231
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 it too? Once I saw a website comparing Prototype to Java and jQuery to Ruby... but now that I read more and more about Prototype, it is said that Prototype actually came from Ruby on Rails development and the creator of Prototype created it...
0
9538
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9975
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9788
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8794
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7342
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6623
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5241
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2765
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.