|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 ;) ] |
|
#2
|
|||
|
|||
|
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? |
|
#3
|
|||
|
|||
|
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.. |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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:
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. |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Creating a module for php.... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|