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




Function List With Associated Extension


I want to create an application that will scan a series of .php files,
look the functions availiable in them, and display which extensions it
is using (don't know how to avoid user made conflicted name functions).

Is there a table which has the name of the extension and the functions
included in the particular extension..?
Is there a way that I can get a new list if an extension upgrades and
adds new functions..?
And what about PEAR..? I don't really know how it works, but I think it
adds some functions too. Can I do the same with the php extensions..?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Crash In PHP 4.3.11 After An Extension Function ( Gcc 4 On Fedora Core 4)
I have an extension in C++, which I compile as a module for php 4.3.11.
I am using PHP 4.3.11 on Fedora Core 4, which has gcc 4 instead of gcc
3.2.

Fedora Core 4 normally comes with PHP 5, but I removed it and installed
PHP 4.3.11 from source, so that I didn't have to figure out problems I
had with my extension and php 5.

After a number of calls to my extension, there is one call to function
(which has been called before) in which the code exits my function, and
then crashes inside PHP shortly thereafter. The seg fault is in
php-4.3.11/Zend/zend_execute.c on line 1658, which reads:

EG(current_execute_data) = &execute_data;

The extension function it is returning from returns a long, not some
fancy php object or reference.

I don't know if anyone on this forum will have any ideas, but if you
have any thoughts at all please offer them.

I am thinking that this might be a result of php being compiled with
gcc4, and the new gcc 4 does something different and exposes some bug
in PHP ? Has anyone seen problems running PHP 4 compiled with gcc 4 ?

Function To List Drives
Is there a PHP command to list the drives of the Server.
Or should I check each letter from a...z if it exists?

ASP2PHP Function List Reference
PHP so I thought I would make a Reference List of some of
the functions.
Below is what I have so far.

ASP Functions PHP Functions
==================== ===============
Left(str,length) substr(str,start,length)
Right(str,length) substr(str,start,length)
Mid(str,start,stop) substr(str,start,length)
Len(str) strlen(str)
Trim(str) trim(str)
LTrim(str) ltrim(str)
RTrim(str) rtrim(str)
UCase(str) strtoupper(str)
LCase(str) strtolower(str)
InStr(str,value) ---DON'T KNOW---

List Weeks Of Year Using Calendar Function
I've been asked to design a small site which contains a page with a list of dates to show a visitor if accommodation (running from Saturday - Friday) is booked or available. Something like this:

2007
2nd Jan - 8th Jan  -  Available
9th Jan - 15th Jan  -  Available
16th Jan - 22nd Jan  -  Booked
23rd Jan - 29th Jan  -  Available
5th Feb - 11th Feb  -  Available
12th Feb - 17th Feb  -  Available
etc, etc

I'd like to dynamically create the list of dates using the php calendar functions and a mysql database so that each row (52 in total?) could be flagged 'booked' or 'available' allowing easy updating using a back end form. Ideally the page showing the list would have a link taking the visitor to another page showing the following year's dates. Each list would always show a year to view and always run from Jan to Dec.

Calling A Php Function From A Form Selection List
I have a function that will read records from the database and populate an area of my webpage based on a value selected from a list box. 

I have got it to work fine if the user hits a submit button but I was wondering if it possible to perform the function dynamically each time the user changes the value in the list box.

Coding "init" Function For An Extension...
Another question about writing PHP 5 extensions. What's the difference in
PHP_MINIT() / PHP_MSHUTDOWN() and PHP_RINIT() / PHP_RSHUTDOWN()? When would
a "per request" init be made?

Need Help For Idea For Function/procedure To Link A Record In Adatabase List To An Form.
Need help to idea for how to make the following procedure or function:
What I have:

On the screen I have a simple list with with the most important fields of a the records in an MySQL database.

What I want to do:
I want a program/function/procedure so I can click a link in each record and then jump to a form showing all the fields....

Add An Extension To A File That Is Without Extension.
I have quite a lot of jpg images that are actually without extension  .
Is there any way to add this "jpg" extension using php .

List Contents Of A Folder, Make List Of Links
Does anyone know how I can write a script that:

- reads in all the files in a particular directory
- displays the file names in a html list and makes a link of them:
<ul>
<li><a href="filelocation1">filename 1</li>
<li><a href="filelocation2">filename 1</li>
<li><a href="filelocation3">filename 1</li>
</ul>

etc.?

So basically it creates a list of links with the contents in that directory,
so you can download them from there.

Get List Of Messages From One Table, Message List Indicator From
I have two tables. One has a list of messages left by users using fields named mbxno for the mailbox and msgno for the message number. I have another table that has mailbox settings for each user that contains a field named "messagelist" to indicate if they want to be included on the message list or not.

What I'm trying to create is a list of the most-recent messages with a lookup on the users table to indicate whether a message in the list should be included in the message list based on the user's mailbox settings.

SELECT messages.msgno, messages.mbxno, users.messagelist FROM messages, users WHERE (users.messagelist = &#391;') ORDER BY msgno DESC LIMIT 100

What I'm getting, though is a list that looks like this:

mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 1114 msgno: 0412141623 msglist: 1

I think what's happening is that I'm using the wrong type of join and more rows are being created than necessary.

If I add "DISTINCT" to the query, I get a list of the most-recent messages as I expect, but the "messsagelist" value is sometimes wrong (again, probably because the data is getting jumbled). For example, the messagelist value for the second row (2214) should be 0, not 1.

mbxno: 1114 msgno: 0412141623 msglist: 1
mbxno: 2214 msgno: 0412141622 msglist: 1
mbxno: 2189 msgno: 0412141408 msglist: 1
mbxno: 0000 msgno: 0412141213 msglist: 1
mbxno: 0003 msgno: 0412141213 msglist: 1
mbxno: 2265 msgno: 0412132029 msglist: 1
mbxno: 0000 msgno: 0412131950 msglist: 1

How should I be doing this? If nothing else, what kind of join will work with a long list compared to a value from a short list?

Populating A List Box Or A Dropdown List Using Php And Odbc
I need to populate a list box and/or a dropdown list on a form. I have all
the bits and pieces together, all bar the code which takes the result of a
query and creates a list box.

Mailing List Manager, Send To List
I'm looking for a mailing list script (php) that has a function to let
users to reach out to all recipient on the list by simple send the
email to a specific maillist- address.

Mailman has this functionn but as a just got a webserver account I
can't use mailman nor install it.

SSI With .php Extension
Is is possible to call an ssi script with a .php extension?

Here is the line of code in the webpage:

<!--#EXEC CGI="/cgin-bin/script.pl"-->

Currently I have the page named index.shtml and
it executes the above script fine, but when I rename it
to index.php it doesn't work.

Is there anyway this can be done in a php page?

Anyone who can help, I would greatly appreciate!

Add New Extension To Php
i want to add mysqli extension to php.ini file, can anyone help me add the extension?

DOM Extension
After creating an XML file using the DOM extension, I used the $doc->save("test.xml"); to save the file. Is there any way to prompt the user to specify the filename and where he/she wants to save it?

How I Can Add Imap Extension
So.. I have Php4 installed in apache webserver and now I would like use imap functions, but I think imap -extension isn´t installed. How can I add an extension into php4. Do I have to install the package again or can I add it "on the fly"?

Extension Changed??
why the extension of the image changed when i upload? my code:=

Hiding PHP Extension
I'm supposed to hide the php extension in a file (like Yahoo! or
Google). For example, http://foo.com/foo instead of
http://foo.com/foo.php. I have read various articles including
<http://in2.php.net/security.hiding> . Certainly mod_rewrite is not
the right option. In Apache, "file.php" & "file" are treated as same
(content negotiation??) and like to know, how reliable it is? Is there
any other options to do the same?

At the time I was getting many answers. But, recently I have found
another suggestion in the 'net:

<FilesMatch "^([^.]+)$">
ForceType application/x-httpd-php
</FilesMatch>

.......

Filename Without Extension
i have the below command to make a $file(filename) and a $extension(just the extension), but i am trying to figure out how to add another one to have a variable of just the filename without extension (in addition to the others).

if(is_array($files)){
sort($files);
foreach($files as $file){
$path_parts = pathinfo("$file");
$extension = $path_parts['extension'] ;

Date Extension
someone knows details of the new date extension for 5.2 ?
I want to know how it works but couldn't find anything 'till now.

Extension Can't Be Found But Why?
Template Document Processor: PHP 5.1.6
Server: Apache httpd 2.0.55 (Win32)
Database Server: MySQL 5.0.26-community for Win32
Operating System: Windows XP Pro SP2

=======

I just installed PHP and MySQL on my laptop for development purposes.

The following directives are set in php.ini (Windows config file):

extension=php_mysqli.dll
extension_dir = "c:phpext"

No other extension is set (for the time being).

The Visible Problem:

When Apache is (re)started, the following error alert appears:

PHP Startup: Unable to load dynamic library
'c:phpextphp_mysqli.dll' - The specified
module could not be found.

The following is true:

1. PHP was installed in the path "c:php" in Windows
2. I virtually copied and pasted the "c:phpext" into the
extension_dir directive within php.ini
3. There is a file 'php_mysqli.dll' within the 'ext' subdirectory
also copied and pasted to avoid keyboard entry errors
4. I comment out the 'extension=php_mysqli.dll' and
set another extension (=php_tidy.dll) that exists and there is
no alert when Apache is re-started.
5. The MySQL daemon (service) is running during all of this.

Items 1-4 make what I am seeing appear odd and frustrating to me.

What am I missing?

PHP Files Without Extension
I know how to set Apache to send files with any extension to PHP before
sending a response. Is there a way to do so for files with no extension
whatsoever? I don't want *all* files to be parsed by PHP,

Where To Submit A New PHP Extension.
I have developed an extension and I would like to see it become a part of a future distribution one day. Where can I submit it, so that it can be evaluated by the ppl, who package the dostributions?

PHP With No File Extension
I'm running PHP as an Apache module. I've always wondered how you
set Apache up to parse a file as PHP without a file extension. Do you
use the AddType directive?

File Extension .inc
is there a reason why people put the extension ".inc" or ".inc.php" on some files, mainly configuration files ?? Is it necessary? Any more info you can give would be appreciated.
I've had a look on the php.net site but cant see anything on why it is used.

PHP-Perl Extension
I'm trying to install the PHP-Perl extension with cvs but I'm getting
the following error:

[root@localhost conf]# cvs -d :pserver:cvs.php.net:/repository co
pecl/perl
cvs checkout: authorization failed: server cvs.php.net rejected access
to /repository for user root
cvs checkout: used empty password; try "cvs login" with a real password

Libgcrypt Extension For PHP?
I'm interested in turning this library:

Which does GnuPG (Pretty Good Privacy) cryptography -- into a PHP module.
Does anyone know if this has been tried before? Google doesn't seem to think
so. Any input, advice, support, warnings, or volunteers much appreciated.

Write PHP Extension In C++
how to create PHP extension in C but does not have details on creating C++ extension. I have a shared library which implements several C++ class that I want to expose it to be use by PHP as an object. Is this possible and how?

Extension=php_interbase.dll
I have win98, apache, php4.04. I want to use Interbase, but i can't. My php.ini contains
......
extension_dir = C:/Program Files/php4_04/extensions ; directory in which
the loadable extensions (modules) reside
....
extension=php_interbase.dll
....
System can to find this module but this dll dose not work. May be there is no some useful dll's or php_interbase.dll is not good? Did someone works with extensions?

Another Extension Question
Can a PHP extension call/use another PHP extension? If so, someone
please point me to the right docs/sites or if it's short enough to
post the info in your reply, that would be great too.

'gd' PHP Extension Is Not Installed
I'm trying to install the Image_Color pear package. I keep getting the
following error:

"'gd' PHP extension is not installed"

phpinfo on my web server indicates that gd is enabled. when I try to
get info from my command line interface I don't see anything where it
was compiled with gd.

Am I right in assuming there are two ini files? One for the command
line and one for the web server?

A google search has revealed that others have run into this problem but
I have yet to find a solution.

Can anyone shed any light?

general info from the command line...
<pre>
Build Date =Apr 24 2006 19:54:25
Configure Command =>
'/SourceCache/apache_mod_php/apache_mod_php-18.4/php/configure'
'--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--disable-dependency-tracking' '--with-apxs' '--with-ldap=/usr'
'--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr'
'--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp'
'--enable-mbstring' '--enable-mbregex' '--enable-dbx'
'--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr'
'--with-config-file-path=/etc' '--sysconfdir=/private/etc'
'--with-mysql=/usr' '--with-mysql-sock=/var/mysql/mysql.sock'
Server API =Command Line Interface
Virtual Directory Support =disabled
Configuration File (php.ini) Path =/private/etc/php.ini
PHP API =20020918
PHP Extension =20020429
Zend Extension =20050606
Debug Build =no
Zend Memory Manager =enabled
Thread Safety =disabled
Registered PHP Streams =php, http, ftp, compress.zlib
</pre>

Perl Extension For PHP -
I installed a perl extension for PHP to use some perl inside my php
primarily because I have perl working with oracle and not php and
oracle. So I want to use my old perl scripts, and use the
functionality of php. The extension uses the '$perl->eval' function.

i am kind of stuck with the syntax or how to put the php variable into
the perl script. I have a form where the user puts in a grid
reference. Then a php script that gets the entered values and puts
them into a sql. Except all that bit is in Perl. How can this be done?

<?php
//php request
$easting = $_REQUEST['easting'];
$northing= $_REQUEST['northing'];

//perl code
$perl = new Perl();

$perl->eval('use CGI');
$perl->eval('use DBI');

// declare variables
$perl->eval('my ($dbh, $sth, $cgi, $the_value, $easting,$northing)');

//instance of the cgi module
$perl->eval('$cgi=new CGI');

//connects to the database
$perl->eval('$dbh = DBI-

Quote:

Hiding PHP Extension
I'm supposed to hide the php extension in a file (like Yahoo! or
Google). For example, http://foo.com/foo instead of
http://foo.com/foo.php. I have read various articles including
<http://in2.php.net/security.hiding> . Certainly mod_rewrite is not
the right option. In Apache, "file.php" & "file" are treated as same
(content negotiation??) and like to know, how reliable it is? Is there
any other options to do the same?


Php Extension Debugger
I'm a very, very novice C programmer and I have written an extension
for php that does its purpose well, or at least it used to until they
asked for that one extra feature. It's a very little thing, very easy,
but damn it all, it has a mysterious bug. I tracked it down to one
specific line where the weirdness occurs, but I can't figure out *why*
it is occuring.

This extension uses the php_streams and as such, is wed enough to php
that my first inclination (compile it on its own and debug it that way)
is a no-go. Is there any way to use a debugger on this so I can step
through it?

Writing A PHP Extension
I have the following questions regarding writing a PHP extension.
You don't have to answer all questions. Please answer everything you
can. I'd really appreciate it.

1. What is the most common version that's used out there? If I wrote
an extension for PHP 4, would it work for PHP 5? Also, is PHP 3 very
different?

2. My extension will need to use an external C++ (not C) library.
That should be all right, right?

3. When/where/how do I specify whether or not I want my extension to
be built-in or external? I know (actually, more like, think) that it
is in config.m4 but I don't know exactly how to specify it?

4. This is probably more a C/C++ question, when/where/how do I specify
whether or not my library is to be shared/dynamic or static? Also, is
that decision relevant only for external extensions?

Php 5 Extension Concurrency
I'm writting an extension in c for php. Looking at the life cycle of the
extensions it looks like each extension is started up within its own thread -
is this correct?

When each request comes in for the extension is seperate thread then handling
the request? My problem is that I would like to obtain a unique id in a c
function in the extension, which would be used in conjunction with a message
queue for IPC, but I'm not sure how the concurrency works in the php framework.

The basic extension should send a message to message queue when a request comes
in and the message should contain a unique id to identify the request in order
for the message server to send a response to the correct request.

is there any reason for why this shouldn't be possible?

[PHP] 7zip Extension Available
i´ve searched a little bit, but found no page talking about an 7zip (.7z)
extension for php. Is there an way to extract data from 7zip archives from
within an php script?

PHP Extension Problem
I tried to search for a solution to this, but I couldn't find one.
Maybe I didn't look in the right place, but whatever....

Here is the problem - I have an extension "Myextension" created using
SWIG from C++ code. I put this in my c:php5ext directory and pointed
php.ini to load extensions from that directory. This is fine.

However this extension depends upon some other custom DLLs I have
coded in C++. The only way that the original extension loads is if
these custom DLLs are in the C:WindowsSystem32 folder. This is not
an ideal solution for distribution however.

So I've tried changing my System Path to include a custom directory
where these DLLs can be stored. That doesn't work. PHP has to know
where to find these DLLs that the extension depends on. I just don't
know how to give it that information. Am I missing something in
php.ini?

Replacing An Extension
what im trying to do here is when a user uploads a file, if they don't manually type a file name, the scripts takes the name of the uploaded file as the file name but it adds the extension on, is there a way i can take the .extension away from the file
i have: Code:

FFMPEG Extension
I am trying to use the ffmpeg extension. This is used for Movie Uploading similar to youtube.com uploading or metacafe.com uploading etc. I would like to use this extension to make my uploaded movies automatically converted into FLV format and also it should take a thumbnail of any frame of my choice from within the movie.

What I am looking for here is that I have windows based system where I have installed Apache2Triad which enables me to use PHP with MySql database on my windows system. I am trying to register this ffmpeg extension to my apache server running on windows environment, I am unable to do so. I would like to know if some one else has done this process before or some one can direct me to any online link where I can get help to understand how to perform this action.

Imagick Extension Dll
i wanna use the imagemagick functions via the php-extension
php_imagick.dll
I am using WinXP, PHP 4.3.2, Apache 2.47
After installing and trying out several versions of imagemagick, i am
now going on with 5.5.7Q16. Whatever Version i use, php tells me
following error:
The procedure-entry-point "DrawSetFontSize" was not found in the DLL
"CORE_RL_magick_.dll".
(I translated it from german, so i hope you understand what that
means)
I rebooted the PC, always copied the imagemagick-dlls to my
win-system32 directory.
I already tried out pear:imagick, but that won't work under Win; and
these pages will not run on a unix-machine until productive-state.



Use A Swf On Page But Had To Have It In A .png Extension
I wanted to use a swf on page but had to have it in a .png extension rather than the .swf extension. Is it possible to do this? I've tried various things but none of them work and I'm out of ideas.

OCI8 Extension
I'm working on a Web application that needs to connect to an Oracle database.  Looking in the php.ini file I see:

;extension=oci8.sl
So I get the line uncommented and I get Apache restarted.  When I try a simple oci_connect() function, it tells me I'm calling an undefined function. 

Any idea why this might be happening?

Getting Image Extension
I am pulling a value from a database that looks like this:

/uploads/images/picture.jpg

How would i go about getting just the .jpg?

Php Extension Like Digg Does
I have seen a lot of sites recently that hide the .php extension, for example they might have a url of: http://www.mydomain.com/page1

How are they doing this? I dont think page1 is a folder, I think it is acutally a php file named page1.php but they can hide the extension. I think diggg.com does this. How is this done?

Php Script Without An Extension
I have a service that runs as a cgi-bin listener. Now I want to replace it with a php script.

The cgi-bin executable it's named 'putdata' and has no extension and is accessed as
http://IP_ADDR/path_to_cgi/putdata?user=sdf&pass=dfgf&data=sdfwewrrdsa....

I want to replace this putdata cgi-bin with some new php script possibly called putdata without the .php extension. I don't want to ask the users to change the access url. The server runs Apache 2 on Suse Linux

So my question is: Is it possible to run a php script without an extension? Which configuration changes should be made to the apache web server to support php scripts placed in files without the .php extension.

Getting New Filename Extension!?!
I have an upload page where a user selects the file from his/her computer and a text field to rename the file ex: "JoeSmith". Everything works fine, but on the next page where I post the data to I would like to know the new file name AND the extension that follows.

The problem: Since I am renaming the filename it receives the same extension (.gif, .jpg, etc) as the original file type. The only problem is that I can post the filename but I can't figure out how to get the extension along with it.

Here's my Code for the Upload page Code:

PHP Soap Extension
i've been having problems mapping a php class to a complex type, how do you bind the attribute of a xsd to a specific php variable.

Move_uploaded_file Extension Restrictions
I have a form setup to upload files to the server, I would like to limit these uploads only to images file extensions (*.jpg, *.gif, *.jpeg) and text files (*.txt, *.doc) How would I make move_uploaded_file recognize these only?

Thanks in advance!


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