PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old July 14th, 2002, 11:01 AM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
Creating a module for php....

Has anybody here created a module for php on win32 using vc++ 6 before?

I managed to finally compile php (php.exe, php4ts.dll, etc) last night, after much ado.

I had a problem creating a new project (.dll) to make the extension, because no matter how hard I tried it kept giving me a linking error that it couldn't find the zend_parse_parameters function anywhere.. this usually means (to me anyhow) that i haven't included some library in my project, but I copied and pasted a working extension's (ie. it compiled & linked fine) settings _exactly_, but to no avail..

So then I simply copied the extension project (it was ctype, to be exact), modified it to give me the basic basic module, and it compiled 100% and spewed out a very nice little dll.

But now php doesn't recognize it as a zend module!!! help? I used the exact example code as in the php manual for the "your first module".

Maybe i should try copying another working module? Can anybody point me to some places where i can get more details on compiling the stuff?

[ BTW : i'm posting this to php installation since it's got more to do with php itself than php coding ;) ]

Reply With Quote
  #2  
Old July 14th, 2002, 01:36 PM
EvilivE EvilivE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Milwaukee, WI USA
Posts: 291 EvilivE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to EvilivE
RE: Creating a module for php....

I started dabbling with this myself, except I was using Borlands free compiler. Figured I would do something really easy and then write a brief article on it using tools that everybody had access to. Unfortunately, the web site I am working on is taking more of my time then expected.

Anyhow, back to the subject, if you have not already done so start with the manual ... which is here. As far as VC++, I have absolutely no idea about ... saw it in a box on a shelf once or twice.

If you don't mind could you post your findings and some of the obstacles you had to hurdle here?

Reply With Quote
  #3  
Old July 14th, 2002, 02:14 PM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: Creating a module for php....

Oh, you mean post some user notes? Yah, i will as soon as i get this darn thing to comply with me and work

I've just finished downloading the entire cygwin thing, so maybe i'll have more luck with make, autoconf, etc..

Reply With Quote
  #4  
Old July 14th, 2002, 07:45 PM
CmdrDats CmdrDats is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: <br><img src='http://www.dats.co.za/icon.gif'>
Posts: 269 CmdrDats User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via ICQ to CmdrDats Send a message via AIM to CmdrDats Send a message via Yahoo to CmdrDats
RE: Creating a module for php....

wohooo! i did it.

i simply needed tell it to compile the using the release configuration instead of debug coz php was compiled for release..

And i was 'testing' it wrong - you can't just go 'php -z c:phpextensionsphp_test.dll', it _always_ gives me the "Doesn't appear to be a valid zend module" error.. wonder what a zend module is then??

Anyway, now i got it working i'm gonna try and start the project from scratch and see what the problem is with new project..

btw : cygwin rulez! unix style commands and vim makes me feel right at home.

Reply With Quote
  #5  
Old July 15th, 2002, 04:00 AM
EvilivE EvilivE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Milwaukee, WI USA
Posts: 291 EvilivE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to EvilivE
RE: Creating a module for php....

Congrats on your sucess!
FYI: Vim is available for Win32, I use to run it on my XP box before my box became a Linux box.

Quote:
btw : cygwin rulez! unix style commands and vim makes me feel right at home.


Amen! Which is why I now run Linux, GUI and shell side by side ... I get alot more done now in a shorter period of time.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Creating a module for php....


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek