Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 18th, 2002, 08:34 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 589 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Article Discussion: Developing Custom PHP Extensions: Part 1

Developing Custom PHP Extensions: Part 1 If you have any questions or comments on this article then please post them here.

You can read the article here .

Reply With Quote
  #2  
Old August 28th, 2002, 04:54 AM
lpsz lpsz is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Madrid
Posts: 1 lpsz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
is available the second part of this article?

Reply With Quote
  #3  
Old December 22nd, 2002, 04:52 AM
hal_rac hal_rac is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 8 hal_rac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question vcpp6extensions

i'm very interested with this topic and followed the
steps in the tutorial from A to Z. but during the execution
a message that "php.h" is not found was generated.
What am i supposed to do.

I'm using:
PHP vers.4.3.ORC2 ;win2000serv. ; IIS ; MySQL 3.23.47 and
vc++6

In addition there's something i didn't understand on the
page "Setting up our Development environment". With my poor
knowledge of Linux i know that __.tar.gz is Linux related
and like winzipped files on windows platforms. what's WinRAR
related to? Can we extract Linux' zipped files on windows?!
i think that there's something i didn't do.

Execuse me for my english.
I might be asking stupid questions but there's something i
don't know.

Thanks in advance.

Reply With Quote
  #4  
Old January 3rd, 2003, 01:37 PM
shivas shivas is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 1 shivas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy some errors

There compiling everything just perfect, but when i try to load extension, by the dl or php.ini setting - i get "Invalid library (maybe not a PHP library) 'php_manomod.dll'

Reply With Quote
  #5  
Old January 14th, 2003, 11:18 AM
andywhitt andywhitt is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 1 andywhitt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Very good, took some messing tho.

I got that to, but the dll i created runs fine when loaded from php.ini.

When the next tuts available?

anyone got any more material?


Last edited by andywhitt : January 14th, 2003 at 11:28 AM.

Reply With Quote
  #6  
Old February 20th, 2003, 10:27 PM
Cyborg Cyborg is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 1 Cyborg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I also get that problem, as well as 3 warnings on compile:


E:\phpsource\php432\php4-STABLE-200302210030\ext\TemplateX\TemplateX.c(40) : warning C4013: 'php_info_print_table_start' undefined; assuming extern returning int
E:\phpsource\php432\php4-STABLE-200302210030\ext\TemplateX\TemplateX.c(41) : warning C4013: 'php_info_print_table_row' undefined; assuming extern returning int
E:\phpsource\php432\php4-STABLE-200302210030\ext\TemplateX\TemplateX.c(42) : warning C4013: 'php_info_print_table_end' undefined; assuming extern returning int



Any ideas at all?

Reply With Quote
  #7  
Old March 17th, 2003, 02:16 AM
lera lera is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 1 lera User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to lera
cannot open input file "php4ts.lib"

When I try to compile the project, i get this error:

cannot open input file "php4ts.lib"

The file exists in c:/php directory, and has w-r-e permitions.
What can it be?

Last edited by lera : March 18th, 2003 at 06:55 AM.

Reply With Quote
  #8  
Old June 10th, 2003, 07:53 AM
neocookie neocookie is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Manchester, UK
Posts: 1 neocookie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
When will the next tutorial be available?

There seems to be enough interest to get the second part done, and I personally happen to be very keen to create a custom extension - there are some functions and global variables I need to create which will greatly enhance my code architecture and development speed, but which I can't replicate in class/object form.

Please hurry with the next issue!!!

Reply With Quote
  #9  
Old April 29th, 2004, 08:07 PM
sou sou is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 sou User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy

I am getting a similar error as one of the guys here, although I m working in a Limux environment...

Warning: dl(): Invalid library (maybe not a PHP library) 'first_module.so' in /home/DISTRO/sources/compile/php-4.3.4/ext/firstmod/firstmod.php on line 4

Fatal error: Call to undefined function: first_module() in /home/DISTRO/sources/compile/php-4.3.4/ext/firstmod/firstmod.php on line 7

Please can someone help....

We really r in need of the next Part of the article....

Reply With Quote
  #10  
Old August 30th, 2004, 04:01 PM
thorie thorie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 thorie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
FYI - SOLUTIONS

I just compiled the sample code with MS VC++ 6.0 and PHP 5.0.1 for Apache 2.0.50 and it works great.

At first, I had the error "Can't use dl() in multithreaded server" so I had to delete that line and instead put extension=php_devarticles_mod.dll in my php.ini file.

Then, I had the error when starting Apache where it says "Invalid Library (maybe not a PHP library)". I found out that I had a typo in the defines where I had COMPILE_DL_DEVARTICLES instead of COMPILE_DL_DEVARTICLES_MOD. I added the _MOD part, and re-compiled, and this time there were no problems. It loads up with Apache and I got the Hello World five times on the page.

Regarding the php4ts.lib problem above, sounds like you didn't add the right path in VC++ under the "library path" section under Project->Settings.

I am still trying to figure out why I am getting those three warnings with print_table.

Reply With Quote
  #11  
Old January 6th, 2005, 02:59 PM
Misfiticus Misfiticus is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 1 Misfiticus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by thorie
FYI - SOLUTIONS

I just compiled the sample code with MS VC++ 6.0 and PHP 5.0.1 for Apache 2.0.50 and it works great.

At first, I had the error "Can't use dl() in multithreaded server" so I had to delete that line and instead put extension=php_devarticles_mod.dll in my php.ini file.

Then, I had the error when starting Apache where it says "Invalid Library (maybe not a PHP library)". I found out that I had a typo in the defines where I had COMPILE_DL_DEVARTICLES instead of COMPILE_DL_DEVARTICLES_MOD. I added the _MOD part, and re-compiled, and this time there were no problems. It loads up with Apache and I got the Hello World five times on the page.

Regarding the php4ts.lib problem above, sounds like you didn't add the right path in VC++ under the "library path" section under Project->Settings.

I am still trying to figure out why I am getting those three warnings with print_table.

Spent a couple hours messing with it, and got nowhere, till I read your post. The tutorial says "COMPILE_DL_YOUR_EXTENSION_NAME".. Never would have figured out "_MOD" was needed at the end.

Anyhow, if you include the file "ext/standard/info.h", the phpinfo() print_table warnings will go away.


Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Article Discussion: Developing Custom PHP Extensions: Part 1


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


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





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