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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old July 14th, 2002, 10: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: 2
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, 12: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: 2
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, 01: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: 2
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, 06: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: 2
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, 03: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: 2
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!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway