473,433 Members | 2,082 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,433 software developers and data experts.

PHP with in .aspx

Chrisjc
375 256MB
Good afternoon all,

I am trying to run some php and java with in a page that has the extension of .aspx I am forced to use this because of the way the site is... But I would like to use a nice php / java mouse over that calls on a page and displays that content only when the mouse is over...
Here is the code I am trying to use in colors.aspx

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. $filein = 'help.html';
  3. // ----------------------------------------
  4. // Read help file into variable $help_text   
  5. // ----------------------------------------
  6. $help_text = ""; 
  7. if ($fd = fopen ($filein, "r")) {
  8.    $help_text = fread($fd, filesize ($filein));
  9.    fclose ($fd);
  10. }
  11. if ($help_text == '')
  12.    $help_text = 'No help text available';
  13. $help_text=htmlentities($help_text);
  14. $help_text=str_replace(array("\n", "\r"), array("",""), $help_text);
  15. echo '<a align="right" href="#" onmouseout="javascript:hideTooltip()" onmouseover="javascript:showTooltip(event,\''.$help_text.'\');return false"><img src="http://test.valoriprecast.com/images/ProductImages/Colors/thumbs/Blanco Smooth.jpg" border="0"></a>';
  16. ?>

I have PHP install on MS Server03 and set it up as IIS ISAPI extension. However it seems there must be something more I must do to make this work....

I tried almighty Google for answers and I keep reading something about AddType. However they are saying to add this in the .htaccess file, which my site does not use.

Any help would be greatly appreciated!

Thank you,

Chris
Mar 24 '09 #1
3 2690
Frinavale
9,735 Expert Mod 8TB
Why not just pick between ASP.NET and PHP?

I'm not sure if combining these two languages is going to work in an ASP.NET application, and even if you could it would be pretty messy.

Are you really using Java? Or are you using JavaScript?

Everything you've described above can be done in an Ajax enabled ASP.NET web application.

I'm sure you could achieve the same thing in PHP....but combining the two together is not going to be nice if it's even possible.
Mar 25 '09 #2
Markus
6,050 Expert 4TB
When I first read this I thought 'Why combine 3 different languages?'

And I still think that now.

I doubt there's anything (you will use) PHP can do that ASP.NET can't.

I'm sure if you were to ask the guys over in ASP.NET, they'd help you port your PHP into ASP.NET.
Mar 25 '09 #3
Chrisjc
375 256MB
Thank you, for the replies sadly I do not know much ASP.NET I am just maintaining this site and I know php and sorry JavaScript =] mistype

Wish it was all 100% java haha gotta take classes for that though.

I had just used that code above before and I figured it would be easy to just re-use it for what I need it for... sadly I can not change the .aspx extentions because the application makes the pages through the database...

I never really thought of looking at it like that "3 different languages" I guess that kind of sucks hmm I will ask some of the ASP guys if they could help me with what I am trying to do.

Thanks again!
Mar 26 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Stevie_mac | last post by:
It might be me but... I dont seem to get a Page_Load event when a opening an ASPX in an iFrame. I do geta Page_Load event when an item on the ASPX (inside the iFrame) is clicked but then...
1
by: Jerry Tovar | last post by:
I am using .Net 2003 on a XPPro running IIS. I am unable to view any of my ASPX webforms in a browser unless I modify the .ASPX file and replace Codebehind="employee.aspx.cs" with...
3
by: Tom | last post by:
Hi, I have an index.aspx page which includes top.aspx, left.aspx, main.aspx and bottom.aspx. In the left.aspx, there is a login web control - login.ascx. It keeps session of username and role...
6
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html...
3
by: DavidS | last post by:
Have parent.aspx from which I open Driver.aspx form via button on parent.aspx. When I first open the modal dialog, the driver.aspx Page_Load function is called. After I close the dialog, then...
3
by: Evan | last post by:
I have a web page with 2 frames. The left frame is running menu.aspx and the right frame is running images.aspx. When a selection is made in menu.aspx I call a method in images.aspx and pass a...
2
by: WJ | last post by:
I have three ASPX pages: 1. "WebForm1.aspx" is interactive, responsible for calling a web site (https://www.payMe.com) with $$$. It is working fine. 2. "WebForm2.aspx" is non-interactive, a...
2
by: Janusz Jezowicz | last post by:
Hello! I would like to have one page on the server, which would be a target processing page for a number of other aspx pages. E.g Processing page \portal_page.aspx Target pages
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
24
by: John Rivers | last post by:
ASPX which means ASPX pages, the code-behind concept, User Controls, Web Controls etc. is very poorly designed and makes it extremely hard to develop professional quality web applications. ASPX...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
1
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
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...
0
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...
0
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...

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.