Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Creating A User Generated Content Website


I'm planning to create a community site (in PHP and MySQL) where people can post some sort of helpful information. I want to include features that would allow people to rate this information and post comments about it. I would also like to make this information searchable, so I want to include tags. To help you understand it better, the website is sort of like digg.com or engadget.com or any other website that have content and comments on it. Sort of like a blog site.

I already finished creating the login system. Now I need to work on the content posting system. I already thought about the SQL table to
store this content. Here's what I have so far:

ContentID, User, Title, ContentText, DatePosted, NumOfComments, Rating, Tags

For the comments, I would assume the SQL table would look like this:

ContentID, User, CommentNumber, CommentText

Now, am I on the right track here? This is my first time creating something like this. Are there free scripts out there that does the same thing?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Display A Website Content On Another
I have a php-based yahoo-like web directory.I wanna give webmasters
the possiblity to integrate my whole directory in their websites with
their own formatting.I wanna this inclusion to be possible to all
kinds of websites (ASP,PHP,... or just HTML).There are basically two
files in my website:
-index.php : shows the main categories along with 3 sample
subcategories.
-index1.php : displays the subcategories and sites of categories
(exactly like yahoo!).
I wanna make possible the browsing of the categories from those
websites.The user shouldn't notice this content comes from
outside.However, I wanna be able to know how many users used my
directory from those websites.

Managing Content On A PHP/mysql Enabled Website
I have a .htm website with about 150 pages of content. I want to convert these pages to php to, among other things, increase the ease of maintenance of the website.

I'm intending to use a template for the site, such as using a .inc header and footer.

Before looking in depth at php and mysql I was under the impression that for each page I would have variables such as $title $description $author $articledate and $article which would pull data from the corresponding info stored in the mysql database.

Is this the best way to approach such a website? I'm just questioning it because I can't find specific information on the processes needed to set up an article based dynamic website.

PHP System To Allow User-generated HTML Profile Pages...
Has anyone created or modified an existing codebase to allow users the option to create personal pages as part of their login profile? I'd love to offers users the potential to upload single HTML pages ++ images for their profile... I suppose this would require:

1. A form to accept the HTML page + images and other content
2. A php script to parse the HTML and remove any headers, and to add site headers
3. The same script to parse out any malicious php or java code
4. ... and to store everything in a database.

Has anyone done this, or have suggestions about how to do it? Are there any codebases out there I should check out?

Creating Pdf From Website
Woudl it be possible to create a PDF from an internet explorer view, using
php?

I would like to create a hardcopy (pdf) from a report, currently generated
and echoed by php and have adobe acrobat reader fired up on the push of a
button....

Questions/Recommendations On Content/Membership Based Website
I've searched groups.google.com already to see if I can determine if
using PHP/MySQL (if needed) for a web site I wish to develop. As the
subject indicated, it will be a content based site with videos - NO,
it's not a porn site though.

I thought that I'd list the key requirements/specifications for my web
site below and was wondering if some of you'd be so kind as to provide
your thoughts on each and comment on them with respect to how PHP can
accomplish them or how adept PHP is at accomplishing them?

(FYI, I'm an Oracle developer and haven't had too much "real"
programming/coding practice since I finished school, but I can still,
given enough time to familiarize myself, C/C++/Java and some OOP. But
I really haven't had any experience in setting up a website/webserver
at all.)

-- Strong authentication required since it will be membership based.
Someone had suggested that I use a third party billing company, such
as iBill, PayCom, CCBill and etc, to simplify the billing process and
I'm looking into it. I know it's sounding more and more like an adult
site, but it's not. However, if PHP/MySQL offers a better billing
method/member info DB maintenance capability and membership
authentication, please inform me.

-- The instructional videos probably will not be
updated/switched/added too often. The same goes for the accompanying
pictures for the lessons. The pics though will need to have an
accompanying explanation.

-- There will be about 30 videos in all, all about 45 seconds to a
minute in length.

-- I wish to be able to create a member page which they will be
greeted with once they log in, muck like "My eBay" over at eBay.com
with the following showing, among other things:
A) Each member will have a lesson plan according to their expertise
or level of completed lessons and I wish to be able for members to
maintain a record of which lessons they've completed in each of the
plans and which lessons they still need to complete displayed in some
chart form.

B) I wish to, though it may sound impossible or wishful thinking, be
able to prevent straight copying or lifting of my pages, including the
videos and the pictures. I know I can disable "right click", but
besides that is there anyway I can prevent it from happening? I have
worked very hard and spent long hours in developing the content for
this website and I'd hate for any copycat websites to just lift my
pages somehow and use it as their own on their own website.

-- If the site membership grows, I'd imagine that there'd be many
simultaneous access to the membership content, including the videos.

Creating A Website Tree From Database
I have been given the task of creating a website tree-type diagram. I have details about web pages stored in a MySQL database. There is a reference column in the database using the format:

1.0
1.1
1.1.1
2.0
2.0.1
2.0.2
2.0.2.1

I'm sure you get the gist. What I need to do is loop through these rows in the table, outputting them in their heirarchical structure, turning this into a graphical representation in HTML.

This has me confounded from the start. I'm not sure how I would loop through these numbers in the correct order. Also, I'm not sure how I would now when I've got to the next level of numbers e.g. after looping through 1.1 - 1.6 (which should all be in the same row), how I would know that I now need to create a new row for 1.1.1, and that on this row should also be 1.6.1 --- I'm confused just writing it out.

Creating An Article Based Website
i need to create an article based website, what words should i search for in yahoo to find a good strategy? or can someone just give me hints how to create it?

the site should do the following->
1-only administrator can add articles
2-public can only search
3-and of course the search should be optimized and fast.

Typo3: Generate Dynamic Website, Show Only The Pages That Include Content
i want to create a web form where someone can do some input or pick
strings from select boxes. after that the person can click a preview
button and a website will be generated dynamically. so i thought i
should use typo3. first of all i created a html-template. then a page
tree with all the sites that could possibly appear. in the end only the
sites with content, will be shown. all of this must happen
automatically. so i need a php script or a typoscript that compares the
"pages" table with the "tt_content" table. after that the attribute
"hidden" in the "pages" table should be "true" for the pages that
doesn't contain any content.

does anyone have an idea if this is possible or if typo3 is the right
choice?

Creating A Internal Website Search Function
How to create a website search function. whenever user search, its within a website and will show the page linking.

Creating A Form For An Item Tracking Website
I'm having trouble processing the html form, especially the "date found" portion. I also don't really know how to set up my tables in my database so that they work efficiently.  The information I an requesting with the form is: item_number, found_by, date_found, city, state, country.  I'm assuming that I will have to have more than one table in order for people to search by item_number or found_by etc.

I know these are kind of broad questions, but let me know if you'd like me to post what code I have, or stick the files on my FTP for download. I am using SQL Manager for a mysql client and Dreamweaver CS3 for design.

Creating Links Out Of Db Content
I have a db that looks like:

field: apartment
field: city
field: link

At this point I'd like to construct a script that will pull a keyword out of the url string, and grab the "apartment" and "link" fields that correspond (matched by category), and display them in link form on a page.

I have the script down so it will grab the keyword it needs, and the select statement that will grab the two fields. My question is. Once I have the $result , how can I parse them to use the way I'd like....each city with it's corresponding link...displayed.

while?
For?
List?

Creating Links From Db Content
I am trying to extract a field from one of my tables, and with that value, create a link to another page.

for example,

i am listing all my users in my database. Then, with that username at the text for the link, i create a link to their profile page.

at the moment i have the following code to select the usernames from my table:

Logging A User Out When They Leave Your Website...
I have been recently trying to implement a member interaction into my database. Right now I have it so they log in and it sets a column named "Logged_In" to "Yes" for their username, I can't seem to figure out how to Log them out when they leave. I tried to use the onUnload event in the body tag and popup a quick popup (which I didn't really want to do but only thing I could think of).

But that will pop up a window every time you go to a differant URL (on the same domain). I'm mostly wondering if there is a way to have session, and detect if it expires. And when it does then update the database to set that column to = "No", or whatever, if so, how would I go about doing this. Or anyone know of a better way, and have some experience with anything like this?

If A User Visits The Website, The IP Is Logged
I want to write a script where if a user visits the website, the IP is logged. Now if the user visits the same page again, he is redirected to another page. This is specifically aimed at my static IP users.

Changing Unix User Passwords On Website
I'm a new user of PHP and MySQL, already making progress in a very short time and astonished at how totally cool it all is. As always when I learn new stuff I'm jumping in to the deep end--or at least it seems like the deep end to me.

Basically what I want to do is allow people who have the right to log onto the unix machine to be able to logon to my website with thier unix usernames and passwords and then change their passwords on the site. I'm seeing tutorials etc on authentication/tracking, well and good, but it's usually with a database, cookies, flat files, .htpasswd files etc. These I can manage.

What I would like is some advice on how to do that. How do you use PHP to log onto a UNIX system and change the password via a database? What should I look for? Where do I start? I'm not at all averse to figuring out how to tie things together myself, but it would be nice to hear what to do and what not to do from experienced folks who've done it--things to watch out for etc...

Redirecting A User To A Website After They Hit 'Submit' Button
I am working on a template. The template has a contact page where someone can enter in info and then click the 'Submit' button. I would like someone to be redirected to another website when they click the 'Submit' button. Is there a simple PHP script that would do that?

How To Give Personal User Url On A Dating Website Just Like MySpace Does?
I had posted a question regarding how to design high traffic fast
dating website on different PHP groups. I got a lot of useful
responses. I have added links to all the posts below for reference.

I am back with another question regarding the dating website. How do I
go about creating personal user url on the site like it is done on
MySpace.com

The personal url for user1 will look like www.myWebSite.com/user1

The first solution I know is to create a folder for each user and put a
index.php script that show the user profile. But then there would be a
lot of folders. how can I catch the user1 from the url request string
www.myWebSite.com/user1
The ssecond solution would be to set the page not found script in
Apache. But then again I need to capture the 'user1' from the request
string.

Discussion 1-
http://groups.google.com/group/Prof...96e1b11a08c5cf2
Discussion 2-
http://groups.google.com/group/php....5b3b100d70a196e
Discussion 3-
http://groups.google.com/group/PHP-...5531288b538882e
Discussion 4-
http://groups.google.com/group/mysq...8cff7c40c161889
Discussion 5-
http://groups.google.com/group/OOP-...ba2c6e36c3bc006
Discussion 6-
http://groups.google.com/group/PHP-...6c403cec4bc14e8
Discussion 7-
http://groups.google.com/group/comp...712f83d1cdb278d
Discussion 8-
http://groups.google.com/group/alt....14bf3f43c74f633

Website Design Question Multi-user System
I will be using MySQL as the database to manage a website where
users can upload images and files. I am not real sure how to create
the database for this. Should I have a main account that the code uses
in the background or should I have it so that each user creates a real
MySQL account and just retrieve information based upon who is logged
in?

Monitor Total User Active Time On Your Website
Any scripts that can be easily modified for this type of facility? I need a script that stores user session time and then adds them to display the total time a user has been active on my website.

Send Out Different Content Depends On User Agent String
Is there an easy way in PHP which send outs different content depends
on User Agent String value?
If yes, is there an example/documentation?

Content Management System With Robust User Permissions
I've been searching for hours for a CMS which has a lot of options for
user permissions. It has to be free and while mySQL is fine, it can't
require root permission to install.

Specifically, I want to be able to create news annoucements and links
to files, images, etc that only users of a certain group can access.
Basically, this is going to be the internal section of my company's
website where clients will login to get news pertaining to them, get
their latest invoice, etc. Eventually they want me to incorporate
SolarWinds stats into it - whatever that is.

Creating A User Login
I want to create a link on a site that prompts a visitor with a login prompt. Once they enter in the code (could be one line or could be username and password) they will be taken to a different webpage within the site. Can this be done? ...and if so, how?

Creating A User-Comments Box
I'm having a bit of trouble creating a user-comments box. Basically, I'm working on a website like YouTube, which offers videos. Next to the videos, I'd like a comments table/box where users can post their comments about the video. There should only be 5 comments, so as not to flood the page. I would like the comments to be picked randomly from a database or sorted by newest first. Up to now I've got:

User input through a form -> Data is entered into database (MySQL)
However, as I mentioned before, I'm unsure about how this data would be entered into the comments table (and sorted).

Creating Active Directory User
does anyone already tried to create a user into active directory through
php_ldap ?

i tried something like this but still don't work :-/

$adduserAD["cn"][0] = "phpldapuser";
$adduserAD["samaccountname"][0] = "guguseli";

$adduserAD["objectclass"][0] = "top";
$adduserAD["objectclass"][1] = "person";
$adduserAD["objectclass"][2] = "organizationalPerson";

$adduserAD["givenname"][0] = "thomas";
$adduserAD["name"][0] = "tester";
$adduserAD["sn"][0] = "btester";
$adduserAD["description"][0] = "TEST-Account ldap";
$adduserAD["title"][0] = "Programm Manager";

ldap_add($ad, "ou=test, dc=my,dc=domain", $adduserAD) or die("error!");

Creating Dynamic Hyperlinks With User Id's In Php Query
Im dabbling with PHP and trying to write a new search.php file to scan for specic users in my dating website and then display the users along with individual links to their profile.

$profile = $row["id"];       -- this field takes profile ID from mysql database
The profile field pulls in an ID field from a mysql database for each record. I need to integrate this fields value into the hyperlink when the results are returned so it has a list of all users each with an individual hyperlink to their profile. Then users can click and access the profile of a specific user. Code:

Dynamically Creating URLS Based On User Input !
I am looking to create pages on the fly or dynamically based on user input. For example if i have www.example.com and they visit this and enter 'bob' in a textfield and press submit they create www.example.com/bob.html . How would I go about this ? I am guessing I need to create a folder when submit is pressed in my website directory ?

Creating Link To File Or Temp File For User Download
I am designing a document management system (DMS). The files are stored
in a directory on the webserver. The filenames for the documents are
stored in a MySQL database. The DMS will track revisions from the
initial version through the updates. We must have strict permissions
set so only authorized personnel can access some documents. All of the
documents when uploaded are given totally random names such as
"114723fb5422c6bd5ed18f6.doc". Is there a way, without the webserver
creating a new file name "document_specs_ver2.doc" to have the file
download named "document_specs_ver2.doc".

If I must physically create a new file, how do I know when the
webserver would be allowed to delete it? Notes: The files will be in
several different file formats, not just "doc".

Change Website To Php,mysql Data-driven Website
At the moment this site is not completely php. How can I make the content of the pages be from a mysql database? and how do I make the nav buttons work correctly connecting to the mysql database and displaying the correct content, ?

How To Upload File From Website To My Website?
I want to make upload page. I could upload file from computer to my website. But I don't know how to upload file from website to my website? How can I make it?

Using The 'Content-type', 'Content-Disposition' And 'readfile'
I've been facing a problem I couldn't solve, I don't know how to serch for it in the list's old messages, so I'll tell you what it is and see if you can
help me. I have this lines:

if (isset($_GET['download']) && ($_GET['download'] >= 1)) {
if ($_GET['download'] == 1)
header('Content-type: application/doc');
else if ($_GET['download'] == 2)
header('Content-type: application/rtf');
else if ($_GET['download'] == 3)
header('Content-type: application/pdf');
header('Content-Disposition: attachment; filename="' . $_GET['file']
. '"');
readfile($_GET['file']);
}

It should show to the user an dialog to the user, so he can choose to
save the file or to open it directly. The dialog shows and the user chooses, and here comes the problem, by using the 'Content-type', 'Content-Disposition' and 'readfile' the content of the page I'm in is "attached" to the end of the file I'm downloading. When it's an DOC or RTF file, the content of the page
doesn't affect the funcioning, but if it's an PDF the string taht goes
"attached" in the end of the file happens to make the file useless.
All I want to do is to use some routine to let the user choose to save
the file or to read it directly, nothing more, nothing less.
I have been trying to solve this problem for at least some weeks, and
I couldn't find some information that could really help me.
BTW, at php.net I found the following example:

<?php
// We'll be outputting a PDF
header('Content-type: application/pdf');

// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');

// The PDF source is in original.pdf
readfile('original.pdf');
?>

I used (as can be seem) this example with some modifications, but not
too much, and it happens that it's useless for my needs, if someone
knows how to fiz it or some other way to do what I want please let me
know, I'll be very grateful.

XML Content Syndication And Content Management System
I have several folders of news stories in XML format on my server running PHP, MySQL, apache. What's the best way to dynamically grab the xml files and display them? Is there an existing news content management system that would allow me to specify which XML stories I want displayed? Allowing me to QC news stories and approve/ban them via an admin screen?

Creating User Sessions W/out Using Sessions
I'm working on a user management system where I can use the benefits of PHP sessions w/out messing with them. Basically, my idea is to have an entry created into a "sessions table" when the user logs in. The table contains such info as the user's id number and the date/time they logged in. When the user logs out, the entry is deleted. In each page/script, it checks to see if the user is logged in by checking the sessions table for an entry w/their IP address and the date, to make sure it is fairly current (unless anyone can think of a better way to check).

Now my delema....obviously, I don't want people that don't properly log out to have a session that could last weeks (depending on when they visit again). I am thinking a script that cleans up entries that are old would do the trick, but obviously I want this script to run say, at least once an hour. Obviously, I am not going to be able to sit at my computer and run this script every hour of every day. I was thinking of using the script and doing a cron job, but I think my host only allows one cron job per day...and only at night. Any thoughts??

Php Script Generated By Php
I am trying generate a new PHP file from an existing page using PHP. Currently I'm using the output buffer to capture content destined for the page, and then am capturing that output and writing to a file.

The problem I am having is that all PHP scripts within the new page content are executed and the results are written to the new file, when I would like the PHP code itself to be written to the new file, unprocessed.

So now I am trying to just store the new page as a string and bypass the use of the output buffer, but do not know how to store php code within a string without having it execute...

Using Php Generated Pictures With HTML?
I am able to create images with the use of the GDLIB.
but I am not able to use these images together with HTML. I always get the
message "headers are already sent.

I Am Trying To Pipe In Some Auto-generated PHP Into Php.exe
I am trying to pipe in some auto-generated PHP into php.exe, to no
avail:

How To Farmat Php-generated Table
the font size declaration seems to be ignored. Is it possible to set format for
tables generated with php?

<?php

echo "<table border=1 font size=8>";
echo '<tr><th font size=8>Date</th>
<th>IP Address</th>
<th>Operating System</th>
<th>Browser</th>
<th>Referring Page</th>
<tr>'

?>

Getting MySQL Generated Keys
I am a Java/JSP developer by trade but am currently developing a
MySQL/PHP solution.

In JSP when I run an INSERT statement on the db I am able to
automatically get back a list of any generated keys (without having to
do some sort of subsequent query to get the information).

Is there a PHP equivilent of this?

Php-generated Png Transparency Issue In IE
I've been trying to get my page, which works perfectly in Firefox, to work in IE as well. one problem was getting the .png images to display properly, which was fixed by doing this:

filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='imagename.png')

but what of php-generated .png files? putting the php file as the src doesn't work. the php-generated images don't work at all in IE (but work fine in firefox).

(the php-generated image uses a transparent color made with imagecolorallocatealpha. when I just use imagecolorallocate it shows up, but is not transparent as I want it.)

Generated PHP Web Database Forms
I'm still gaining experiance in developing PHP applications, and have completed
a couple of projects already.

This has prompted me to look for ways to reduce the development time for web
enabled database applications. Every web database has basic operations such as
add,delete,update and search. I have been creating HTML forms and processing
the results with php code. I have managed to reduce the number of forms required
by using the smarty template engine.

I want to go a stage further and be able to produce the forms and the processing
code purely by looking at some sort of schema file , or using
"mysql_list_fields()" and "mysql_list_dbs()".

Before I start my quest of many late nights of coding. Can any of you guys
give me a head start by pointing me at a solution/hint.



Generated Images Not Printing?
I have a problem with IE and generated images (jpgraph). It displays
them fine but it's not printing them. They appear as little red crosses
in print preview.

I've fiddled with the cache control headers as I thought that was it.
Certainly IE refuses to cache pdf files sent using fpassthru and cannot
open them in acrobat.

Server Generated PDF Files?
Heres what I need to happen now, I know how to do most of it, except the generated PDF form.

- The server puts that information into a PDF file with a background of my chosing and emails it to a specified adress. (Its already set up to send the email)

My issue is I dont know how to have the server generate the PHP form. How does it work? How do I position the text over the PDF automatically?

I'm already donating $10 to the site, thanks to the help I received from UTAlan, Lytheum, and Waldir. Ill make it a total of $20 after this.

Image Src Generated Through Php File
I've built a custom image gallery, integrated with a database. all of the images are kept above the document root in a "media" directory (for security purposes); therefore, i am using a php script in the src attribute of the image tags to display the image in the browser.

to accomplish this, i chose to use the PEAR package "HTTP_Download", which worked great and performed fantastically on my staging server.  I chose to use content-disposition inline, and set caching options on.

the problem, the images don't cache on a users machine.  therefore, everytime the page is changed to display a new image, all of the thumbnails are downloaded once again...very annoying. let me re-iterate, these files are not being generated on the fly, simply sent to the user via php. Code:

Mail A Php Generated Page
I ask if it's possible to sent to email a php generated page as an html attachment or text file !?

I have searched on google, but I find only how to send mail from php not hot to send a page.

Any link, or doc is helpfull !

The story:
I have a long products list, from where I select some items what I want to send as a price list to some people.

PHP-generated RSS Feeds And .xml Files
I want to make an RSS feed for my site.  Obviously, it should be dynamic, so the only way that comes to mind is to use PHP to create the RSS.  But then the filename will be .php.  Most of the sites I see with feeds (digg, shoutwire, cnn, etc) have .xml files.  How do they do this? I would like to have a .xml that is dynamic/always up-to-date.

PHPmyadmin Access Denied For User 'user'@'localhost'
WinMe machine as server, with Apache 2 installed and working PHP4 installed and working ( had PHP 5.05 installed and working, but i couldnt get the mysql extensions to load - phpinfo() didnt list mysql :(, so i installed PHP4, which now lists mysql when i run phpinfo). MYSQL 4.1 installed and working. I dont know the console commands too well, but i know its working ok, cos I have used a few simple DOS prompt commands to check its alive and I can connect to the database using MyODBC frontend/driver 3.51 and also using Navicat 2004.

When i try to connect to the database via PHPmyadmin from another network PC I have an error:

#1045 - Access denied for user 'user'@'localhost' (using password: YES)

I have played around alot with different settings in the config.inc.php file.... nothing seems to work.

This almost appears to be a simple login problem ( probably is too), but I can access the database locally from the Winme machine with the username and password that wont work over the network!

I have tried not using 'localhost' as the host name but the IP address of the Winme PC but I get this error:

#1130 - Host 'MYSERVERNAME' is not allowed to connect to this MySQL server

Notice: Use Of Undefined Constant User - Assumed 'user'
I have a script for a shopsystem on a Linux. There it works fine.
But when I try to run it on my Windows machine, PHP says things like

Notice: Use of undefined constant dbname - assumed 'dbname' in
c:apachehtdocsaposhop estshopclassesxxx.clas s.php on line 77

On Windows I run PHP 4.3.2
On Linux runs PHP 4.3.1

Problems Saving Gd Generated File
I'm using the gd library to build graphs from db generated data. I can output the result to the browser with no problems, but when I try to save the image, I get the following error message.

PHP Generated Pages & Search Engines
I'm trying to get a basic idea of how well PHP generated pages can be spidered by search engines? I'm working for a company that keeps two versions of it's site at the moment. One copy run off of a database using CGI, and one copy entirely in HTML so search engines will find them. I've told them that this is just a bad idea, and far too time consuming. I'm under the impression that PHP pages can be found by search engines, am I wrong? I'm going to be running almost their entire database of products off of one file, will the search engines be able to find these if there aren't direct links to them?

Any other suggestions as to how to keep their positions in the search engines (very good right now) would be appreciated as well.

PHP 5 Compilation Error: Libphp5.so Is Not Generated
I started from a clean, new system, with only SSH and Webmin. It's a VPS running on Fedora Core release 2.

1) I added my domain name to the BIND server

2) I downloaded the last stable Apache version, 2.2.3, and installed it
using:

./configure --prefix=/usr/local/apache --enable-so --enable-module=rewrite
make
make install

3) I tested it, it worked.
4) I downloaded the last stable PHP version, 5.1.6, and installed it using
the MINIMUM configuration possible (not even MySQL):
./configure --with-apxs2=/usr/local/apache/bin/apxs
make
make install

"make install" gave me that error:
==================================

[root@server php-5.1.6]# make install
Installing PHP SAPI module: apache2handler
/usr/local/apache/build/instdso.sh
SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la
/usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp libphp5.la
/usr/local/apache/modules/
cp .libs/libphp5.lai /usr/local/apache/modules/libphp5.la
cp .libs/libphp5.a /usr/local/apache/modules/libphp5.a
ranlib /usr/local/apache/modules/libphp5.a
chmod 644 /usr/local/apache/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish
/root/zzz/php-5.1.6/libs'
Warning! dlname not found in /usr/local/apache/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache/modules/libphp5.so
chmod: cannot access `/usr/local/apache/modules/libphp5.so': No such file or
directory
apxs:Error: Command failed with rc=65536

==================================

The problem is that libphp5.so is not generated from "make".

I found those related links:
http://www.fedoraforum.org/forum/archive/index.php/t-23665.html
http://bugs.php.net/bug.php?id=27795

Following the recommendations I tried:

1) using the bz2 version of the PHP distribution and not the gz one

2) I installed getText ( http://www.gnu.org/software/gettext/ ) because some
say an included library, "libintl.so", could help. But I couldn't find that
library after getText was sucessfully compiled.

3) I chomed everything to 777 in the php directory

4) I installed the last stable libtool, 1.5.22

Nothing worked, I still have that libphp5.so error.

Any help would be really appreciated. And I really mean it!


Copyright © 2005-08 www.BigResource.com, All rights reserved