php-general Digest 28 Aug 2010 19:18:32 -0000 Issue 6915
Topics (messages 307722 through 307725):
Re: Making multiple RSS feeds for the blog website
307722 by: Jason Pruim
displaying constants
307723 by: David McGlone
307724 by: Daniel P. Brown
Questions about $_SERVER
307725 by: tedd
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On Aug 27, 2010, at 5:55 AM, Andre Polykanine wrote:
Hello Michelle,
Hm. link rel="alternate"... that's a good one, thanks (btw, you say me
that I should RTFM, but if I knew what to read....).
Now there are two questions:
1. How do I do those .RSS files with PHP? All of mmy blog entries and
other stuff are in MySql. There are classes that can echo the
appropriate data as RSS, but there will be more .PHP files, not
.RSS/.XML ones. So how do we manage that?
2. Should I make a separate .RSS file for each type of feeds (blog
feed, comments feed, timeline feed, news feed)?
thanks!
Andre...
What I did when I created my RSS feed is I went and read the RSS spec
and found out what it needed to create it.[1]
Read through that and it should get you started. If your competent
with PHP then all you would need to do is loop through your result set
to display the results.
If you're not quite sure if you know how to do it though... I as well
as many other people on the list I'm sure are available to hire to get
it done :)
[1] http://cyber.law.harvard.edu/rss/rss.html
--- End Message ---
--- Begin Message ---
Hi all, could someone show me how to echo back a constant to check if
they are assigned correctly? Something like this:
define('SITE_ROOT', dirname(dirname(__FILE__)));
echo 'SITE_ROOT';
I tried the echo but it wasn't working.
--
Blessings,
David M.
--- End Message ---
--- Begin Message ---
On Sat, Aug 28, 2010 at 10:58, David McGlone <da...@dmcentral.net> wrote:
> Hi all, could someone show me how to echo back a constant to check if
> they are assigned correctly? Something like this:
>
> define('SITE_ROOT', dirname(dirname(__FILE__)));
>
> echo 'SITE_ROOT';
>
> I tried the echo but it wasn't working.
To get the assigned value? Drop the quotes.
--
</Daniel P. Brown>
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/
--- End Message ---
--- Begin Message ---
Hi gang:
The server global:
$_SERVER['SERVER_ADDR']
Provides the IP of the server where the current script is executing.
And, the server global:
$_SERVER['REMOTE_ADDR']
Provides the IP of the server executing the script.
As such, you can enter the IP of either into a browser and see that
specific domain.
However, that doesn't work when you are dealing with shared hosting.
Doing that will show you to the parent domain, but not the child
domain (i.e., alias).
So, how can I identify the exact location of the 'server_addr' and of
the 'remote_addr' on shared hosting? Is that possible?
Thanks,
Cheers,
tedd
--
-------
http://sperling.com/
--- End Message ---