css link

General discussion on Zend Core for IBM System i
Post Reply
tsimikew
Posts: 13
Joined: Mon Apr 12, 2010 8:46 pm

css link

Post by tsimikew » Tue Jul 20, 2010 2:57 pm

I am having trouble linking to a css file using php core for i5. The following trivial html file runs correctly in the server's main folder:
<HEAD>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
<TITLE>Test</TITLE>
<SCRIPT LANGUAGE="JavaScript" src="calendar_us.js"></SCRIPT>
<link rel="stylesheet" href="calendar.css">
</HEAD>
<BODY>
<form name='main'>
<input type="text" name="test">
<script language="JavaScript">
new tcal ({
'formname': 'main',
'controlname': 'test'});
</script>
</form>
</BODY>

My php scripts run in a folder named "protected" within the main folder. When I run the same script (with php tags added) in the protected folder, it produces the error that tcal was not found. Copies of the css and js files are stored in both the main directory and the protected folder. Adding /protected/ to the src= and href= elements did not help.

How can I determine where php is looking for the css file?

chris_hird
Posts: 171
Joined: Fri Apr 10, 2009 12:41 am
Location: Toronto
Contact:

Re: css link

Post by chris_hird » Wed Jul 21, 2010 1:05 pm

This is not PHP? Adding PHP tags anywhere in that page will not help...

Chris...
Shield Advanced Solutions Ltd
Home of JobQGenie and the Receiver Apply Program
http://www.shield.on.ca/Blog

aaron-s-hawley
Posts: 46
Joined: Thu Mar 11, 2010 4:43 pm
Location: Colchester, VT
Contact:

Re: css link

Post by aaron-s-hawley » Wed Jul 21, 2010 2:22 pm

tsimikew wrote: How can I determine where php is looking for the css file?
See the access logs in \usr\local\Zend\apache2\log

tsimikew
Posts: 13
Joined: Mon Apr 12, 2010 8:46 pm

Re: css link

Post by tsimikew » Mon Jul 26, 2010 5:46 pm

I checked the access log. When I run the php page, the log has this one entry:
"GET /dev1/protected/testcal.php HTTP/1.1" 200 525

Is this significant?

When I run the html page, no entry is created.

tsimikew
Posts: 13
Joined: Mon Apr 12, 2010 8:46 pm

Re: css link

Post by tsimikew » Mon Jul 26, 2010 5:56 pm

Well, I see css entries in /Zendcore/doc, but I cannot find this folder. It does not seem to be in the root drive of the IFS. Does anyone know where it is?

Post Reply