You are here: Re: [PHP] how to post a question? « PHP « IT news, forums, messages
Re: [PHP] how to post a question?

Posted by Chirantan Ghosh on 07/22/05 18:39

Hi Edward,

I would simply like to print the remote Menu page(
http://www.dtcc.com/ThoughtLeadership/menu.htm ) in a new page.
I did the Error report print because I had no idea for what reason my PHP
code was working.

The menu is used as a header as well(the root file is JS which I can't use
as I don't know all the directories of dtcc.com )
I am simply trying to impress a non technical person of the company so I can
get a design contract.

How can print the menu in different domain html pages? ( I would like to use
PHP as server language)

Thanks,
Chirantan

----- Original Message -----
From: "Edward Vermillion" <evermillion@doggydoo.net>
To: <php-general@lists.php.net>
Cc: "Alan Milnes" <css@milnes7.com>
Sent: Friday, July 22, 2005 11:20 AM
Subject: Re: [PHP] how to post a question?


> Chirantan Ghosh wrote:
>> Hi Alan & Everybody who wasted time to read my 1st Letter,
>>
>> SORRY guys, I do deserve the scorn but it was genuine mistake I didn't
>> want to post garbage bugging other people.
>> I was under the impression that I was mailing to the HELP DESK( nonliving
>> resp system).
>>
>> If you can, Please do help me in my real PHP issue:
>> ===================================================
>> I am trying to print a remote header menu in a html page without frames.
>> The client side JS in located in this htm. (
>> http://www.dtcc.com/ThoughtLeadership/menu.htm )
>> I tried both INCLUDE, REQUIRE with no avail. I am a complete novice
>> beginner so can anyone help me a bit please?
>>
>> The code I tried:
>> ==============================
>>
>> </HEAD>
>> <BODY BGCOLOR=#FFFFFF background="images/bgb.gif" LEFTMARGIN=0
>> TOPMARGIN=0
>> MARGINWIDTH=0 MARGINHEIGHT=0>
>> <table width="778" border="0" cellspacing="0" cellpadding="0">
>> <tr>
>> <td background="images/1_12.gif">
>> <?php
>>
>> $filename = 'http://www.dtcc.com/ThoughtLeadership/menu.htm';
>> print getRandomLine($filename);
>>
>> function getRandomLine($filename)
>> {
>> global $errors;
>>
>> if (file_exists($filename)) {
>>
>> mt_srand ((double) microtime() * 1000000);
>> $lines = file($filename);
>>
>> $line_number = mt_rand(0,sizeof($lines)-1);
>> return $lines[$line_number];
>>
>> } else {
>> $errors['getRandomLine'][] = "File: $filename not found";
>> return FALSE;
>> }
>> }
>> ?>
>> </td>
>> </tr>
>> <tr>
>> <td width="778" background="images/1_12.gif">&nbsp;</td>
>>
>> ...& On it Goes
>> ============================
>>
>> Can you please let me know why can't print the remote HTM in the current
>> page (Though it is in a different domain)?
>>
>> Thanks,
>> Chirantan
>> NYC
>>
>> ----- Original Message ----- From: "Alan Milnes" <css@milnes7.com>
>> Cc: <php-general@lists.php.net>
>> Sent: Friday, July 22, 2005 10:47 AM
>> Subject: Re: [PHP] how to post a question?
>>
>>
>>> Chirantan Ghosh wrote:
>>>
>>>> I was wondering how can I ask a question to the other subscribers?
>>>>
>>>>
>>> Try reading this first:-
>>>
>>> http://www.catb.org/~esr/faqs/smart-questions.html
>>>
>>> Alan
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>>
>>
>
> Just out of curiosity, why are you just printing a random line from the
> file?
>
> Then the next question is do you have your error reporting turned up:
>
> error_reporting(E_ALL);
>
> and display_errors = On in php.ini, only for a development server, or at
> least a log file to look at, for a production server?
>
> I'm going to assume that you've checked the source of your script output
> and the random line isn't where you thout it would be?
>
> The best thing to do would be to just print out the lines/files you are
> trying to get, without the rest of the HTML, to see what your getting from
> just the part your having trouble with.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация