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


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





GD Module Examples


Anyone here used, or is using PHP's GD module in their web design? I would be real interested in seeing what anyone has done with it on their web site with perhaps some sample code which demonstrates how they did it.




View Complete Forum Thread with Replies

Related Forum Messages:
Cannot Remove Module Mod_php5.c: Not Found In Module List
Today I see in my apache error log file an entry 'Cannot remove module mod_php5.c: not found in module list'. Anybody any idea where this is located or where I get this php5.c file or why this shows up since today in my error log file?

Everthing still seems to work well except the anoying error entry.

View Replies !
What Is Apache Module And What Kind Of Module It Has?
I'm planning to make apache module.
I made php code. but it's too slow to handle requests for my project.
So i'm thinking if i replace php code to c and make apache module
then it maybe much faster.

upon above idea I have three questions.
1. Is it really worth to replace php code to c and make as apache
module?
2. It seems like that apache has two kind of module. One looks like
*.c and the
other is *.so.
If i regard that *.c is being compiled together with apache code
and *.so is exactly same as shared library then my idea is right or
there can be more difficult concept?
3. when the php is running as cgi does apache call php.exe and php.exe
interetes *.php file?

View Replies !
E-Mailing Examples Help.
I have created a form, which will allow a person to upload a picture,
and leave me mail. What I am having problems doing is, having the
form actually upload the picture and attach it to an email that is
then sent to me. If anyone knows of any sample code I could look at,

View Replies !
Pagination Examples
Basically im asking if anybody knows of any example code or tutorials where i can learn how to paginate a PHP page. I have a mySQL news table which holds stories as mark up. Ive had a look at a few examples and tutroials but most seem to have the the pages of the story in seperate rows in the database. Im also just confusing my self now with the multitude of options. Im using e107 as the back end by the way.

View Replies !
Printing Examples
Does anyone have any examples of how to send web page content to the
printer? I've looked at the PHP manual and I think I know how to do it
but I'd like be sure:

I have to open the printer first
Then I use the print write call?
Then I close the printer

View Replies !
Pagination Tried Several Examples
I'm having some difficulties with php pagination. I tried several sample codes provided on the net but none worked.

View Replies !
Looking For Examples Of Huge MySQL & PHP
Does anyone know of any existing operational web sites where a massive (ie. millions of records) MySQL database combines with PHP to provide a directory service? I'm thinking along the lines of the White or Yellow Pages or similar. I ask because I'm researching a project which provides a (large) web-based specialist directory service, and I'd like to be in contact with people who've already done it with MySQL and PHP. I use MySQL and PHP all the time for small applications, but I'm not sure how they compare (in terms of speed and reliability) in the commercial world against the expensive alternatives.

View Replies !
Examples Of Using Inherance And Interfaces In PHP 5
As many of you knows, Zend has relased the Beta version of PHP 5. I
have allready make some tests of interfaces, classes inherance, static
and public variables, etc, and everything looks ok. Now, when you work
with PHP the most common thing is to do something with databases, you
have somehow the "same kind of pattern" like: logins, update, add,
delete data from de db, show data and that is it.

Now, I will like to use the new PHP 5 features in my next project. I
was trying to desing some clases and inferfaces for the "pattern" that
PHP use to have, and have not come with any good worthy idea. I know
Java too, so I was very happy about the the new features in PHP5 and
looking to use object model features. Im looking for very clear
examples on, how you have used the new features in PHP5 to do the "old
PHP thing"?

View Replies !
PHP Tutorial Or Project Examples
I've worked with ASP, ASP.NET and
WebSpeed in the past, but now I'd like to learn PHP. I've already
gotten a Fedora web server up and running with Apache and MySQL.

I'm looking for some examples - or even better a free project - to look
over and see how other are using PHP to read/write records to and from
MySQL. I'm trying to create a very simple web based contact management
system that will store data in a couple of tables.

Can someone recommend any examples or web sites to refer to? I'm about
to dive into the PHP manual, but I'd like some other material to study
as well.

View Replies !
Printing Code Examples
I am building a tutorial site, all is working apart from 1 thing.

If i type in some php code even basic stuff like

<?php echo date ('Y'); ?>

then when its submitted into the database the php gets stripped away i'm using the tinymce editor if that helps make it clear.

I need to be able to show code examples as my tutorials are for web design does anyone know a way of showing code.

I can disable the tinycme editor and type code right into the textfeild and use the html safe values like: &lt;?php echo date ('Y'); ?&gt;

but thats not a good solution as i want to use the tinymce editor as my members will be able to write some tutorials.

View Replies !
Pointer Examples Of Cleaning
I have managed to create a very basic CMS, the CMS cover 6 pages and each page can have its title, pagetext, image link 1 and 2 altered.

I have doen the best I can but, I imagine that the code I have produced is somewhat ugly and could be clearer and slimlined. I have included the code for both the form page and the post page. Code:

View Replies !
Examples Of Autoloading Object
I'm a bit confused with autoloading objects.

This is only for PHP5, correct?

All autoloading functions start with "__" correct?

And can someone give me a easy to understand example of an autoloading object? I googled, but I still have questions about it.

View Replies !
MySQL Transactional Examples
Does anyone have any examples of using Transactional processing of
MySQL with PHP? I'm not sure if the BEGIN statement needs to be in
front of my SELECT statement or processed before hand by itself.

View Replies !
Examples To Display Day Calendar Schedule?
I am trying to find some code to help me along with dsiplaying a day
schedule. For example, a linear time-line with appointments blocked out or
colored differently.

View Replies !
Examples Of Well Written Large PHP Projects
To improve my PHP I've decided to study the source code of a medium to large open source PHP application. Can anyone recommend any applications that they would consider prime examples of well written PHP? The sort of attributes I'm interested in are basically just good software engineering such as clean internals, being well designed, good use of abstraction and also perhaps being well tested (things where there is a lot of room for improvement in my code ).

View Replies !
Searching For PDFLIB Working Examples
Can someone help me or point me to a place where I can find examples about PDFLIB that are written in PHP5.

The Examples that are provided with PDFLIB are not working. Missing fonts, images,...

View Replies !
Looking For Recent Visitor Code Examples/ideas
I am working on updating my content management page and wanted to overhaul my "recent visitor" code. The code that tracks who has been and is still on my pages.

I have not been able to find some examples I saw here a few months ago and was wondering if anyone could point me to some examples.

The more versatile the better.

View Replies !
File Upload :: Good Working Examples?
I want to make a file upload using php, but everytime i get an error
"File name not given". Any hints why this is happening? I used a sample
from php.net, and other php sites, but all samples are basically the
same. Maybe someone from you has a good and working example?

View Replies !
Any Good Examples (applications) Of Advanced PHP Code Out There?
I'm a perl programmer interested in a good application or two to
download and examine in order to learn from. Anyone know of any such
things?

View Replies !
Real Life Examples Of Mysql+session_set_save_handler
In my test setup using my own session handlers with session_set_save_handler and mysql, the session handler opens and close mysql connections.

But what if my page also requires some mysql queries? Should I open a new connection or use the already opened one (opened by the session handler)?

I have made it a good practice to close a connection after a query but if I do it with only connection open no session data will be written to my mysql table.

I have seen some scripts using persistent connections but are not sure what would be the best for a real world environment.

View Replies !
PHP Zip Module
I need to install this on my server, where can I get hold of this and how do I install it?

View Replies !
PHP As Module Or CGI...?
I must install PHP I my new cobalt server running Apache as web server, and I wonder if it is better to install PHP as apache module or CGI.

What advantages or disadvantages have both options..?

View Replies !
Need Log In Module
I need log in module in php. I am developing a web application like a online directory. I want to use free log in module. Is ther any log in module?

View Replies !
SSL Module
I have never written something for https. I have problem with some things, for now i need only to know what is a solution.

If server has installed ssl module, i need to write something in php code to use it ?? or only what i need to do is use https:// in url ??

if yes i have an another question

In the near future I will write some littel shop with 3-4 products, and they said that on the one server is a space to place the site but shopping cart will be on another server because there they have ssl installed and certificates bought, so how to create ( idea ) the connection between site and shopping cart ?? i need to redirect all ordered porducts?

and what if someone need to come back to shop and order more, redirect data again and again?

View Replies !
Where Is PHP GD Module?
I have installed PHP 4.3.2, Apache 1.3.12, MySQL.

I can't find the PHP GD module that supports PHP 4.3.2 on Red Hat
Enterprise 3.

Where can I get a package for php-gd-4.3.2 ?? I've looked like crazy
and can't find a thing.

View Replies !
Php Module
i have to develop a PHP module for ASN1...
Does anyone have already heard about one
or have you got any resources to develop module for PHP ?

View Replies !
GD Module
I am setting a Photo blog so my family get visit and view(dl) pictures of the kids and such. Everything has gone smoothly until I tried to upload some photos. I get an error message that GD module is not install. I tried to install the current version (gd.2.0.33) yet nothing seemed to happen. used the ./configure line command and a whole bunch of stuff went flying down the screen yet when I try phpinfo.php I can't tell if the GD module is working and I still can't upload pictures. Here is my system info.

Fedora Core 4 Linux
Apache Server 2.0.54
PHP 5.0.4
mySql 4.1.16

I have read so much stuff yet I am confused as to how to continue. It would be a shame to get so far then have to scrap the whole thing and go to a Windows system.

View Replies !
NIS Module And 5.1.1
The PHP 5.1.1 documentation says that NIS yp_ functions have been moved
to the PECL repository and not bundled with PHP 5.1.1.

However, I am unable to find it on the PECL site.

View Replies !
Unzip Without Using A Module
Is anyone aware if there is a way to be able to unzip a .zip file without using a third party module?

I have been hunting around and I have found plenty of ways to do it using a module of some description. The problem is I am trying to write a script that will go on several different hosting providers and being able to get a module installed may not be a possibility. So I would like to be able to do it with standard PHP functions but as I understand it this is not possible.

View Replies !
PHP As A CGI Or Apache Module?
I'm moving my large site (+10,000 pages) from static html to database-driven PHP. My web host runs PHP as a CGI. I gather from the PHP manual that this slows down PHP and may cause performance issues - especially with high traffic and database calls.

Should I be concerned about this? Should I look for a host that has PHP set up as an Apache module (or should I go to a dedicated server)? Any input greatly appreciated, as I'm new to PHP.

View Replies !
CGI Bin Or Apache Module
How do I know programmatically if PHP is installed as CGI bin or as an
Apache Module at my HSP machine?

View Replies !
Module Openssl For Php
I m running FreeBSD 4.10 STABLE and using Apache 1.3.x and PHP4.

Today, i updated php4 from Ports Tree and there was lot of change.

Indeed, no more php4-something package... only Php4 and php4-extensions
packages.

So, i installed :

php4-ftp-4.3.8_2
php4-openssl-4.3.8_2
(and others)

But, now, ftp_ssl_connect doesn't work !

The error message is:

Fatal error: Call to undefined function: ftp_ssl_connect() in index.php

I restarted many time apache without success.

i checked with phpinfo() if the extension is running and it s OK !!!

openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7d 17 Mar 2004

ftp
FTP support enabled

So, i checked the PHP module if there is the ftp_ssl_connect strings in
it... :

horus# strings openssl.so | grep ftp
horus# strings openssl.so | grep connect
horus#

nothing.

Where am i wrong ?

View Replies !
Php As Module Problems
I re-installed php from cgi binary to apache module and now I have 2 problems First one, for some reason $PHP_SELF doesn't work anymore. Now I comlitely understand that because there's no php.exe now it wouldn't make sence to have $PHP_SELF, but still what do you guys use instead of it? something like PHP Code:

View Replies !
PHP Module Multithreaded?
I need to verify for my boss that PHP is not single-threaded like CGI because we're developing an internet-based application that will potentially handle MANY simultaneous hits (to a database/php3 files, etc). Isn't it true that PHP is multi-threade when compiled as an Apache module (otherwise what would be the point of using php with multithreaded databases like postgreSQL?).

View Replies !
Link Module
I created a little module for displaying multiple links associated with a PageID. Code:

View Replies !
PHP 5.0.0 And The OCI8 Module
I am relatively new to PHP, but with over a decade of experience in C
and other programming languages I can usually pick up a new
programming language relatively quickly (to be reasonably productive
not to know it inside out). My issues I believe may be either solely
concentrated on the platform I am running PHP 5.0.0 on (MS Windows
2000) or just the Oracle OCI8 module (running against an Oracle
8.1.7.4 installation). In either case I am using PHP in more of a
pure scripting environment with no Web-related access as of yet.

The following (with a modifications only for username and password) is
the script I just started developing:

<?php
$os_name = strtolower(PHP_OS);
if (substr($os_name,0,3) == 'win') {
$dirsep = ''
$oci8lib = 'php_oci8.dll'
$pathsep = ''
$libpath = 'PATH'
} else {
$dirsep = '/'
$oci8lib = 'oci8.so'
$pathsep = ':'
$libpath = 'LD_LIBRARY_PATH'
}
$ORACLE_HOME = getenv('ORACLE_HOME');
if (strlen($ORACLE_HOME) == 0) {
printf("The ORACLE_HOME environment variable has not been set
");
exit(1);
}
if (!extension_loaded('oci8')) {
$path = split($pathsep,getenv($libpath));
$found = false;
foreach ($path as $dir) {
if (substr($dir,0,strlen($ORACLE_HOME)) == $ORACLE_HOME) {
$found = true;
break;
}
}
if (!$found) {
printf("The OCI8 PHP module has not been autoloaded and
ORACLE_HOME
");
printf("is not currently found in %-15s; therefore,
the
",$libpath);
printf("OCI8 PHP module cannot be loaded at runtime.
");
exit(1);
}
dl($oci8lib);
}
$DBA_HOME = getenv('DBA_HOME');
if (strlen($DBA_HOME) == 0) {
printf("The DBA_HOME environment variable has not been set
");
exit(1);
}
$dfn = "${DBA_HOME}${dirsep}adm${dirsep}databases.db";
if ((!file_exists($dfn)) || (!is_readable($dfn))) {
printf("The DBA databases file:
");
printf(" ${dfn}
");

View Replies !
Php With Java Module
Anyone figured out how to run php with java module working together?

View Replies !
PHP Diff Module
I've just started creating a module for PHP, which does various
diff-like functions. I was wondering if this would be any use to anybody
(Has anything similar been done as a PHP coded library making this
redundant?), if so I'm going to develop it more and maybe see if it can
get included in the core PHP distribution?

View Replies !
PHP 5 As Apache Module
I've tried to install PHP 5 as Apache module in my Red Hat 9 box but it
complains that the Apache version is too old (I have 2.0.40 and asks for
2.0.44). I'm compiling from source code and apparently the CGI version
builds fine. Actually, even PHP 4.3.3 asks for 2.0.44...

Must I necessarily upgrade Apache to get a newer PHP version and use it as
a module? Any success story over here?

View Replies !
Ldap Module
I'm having trouble using the ldap module with php which runs on a linux server. I've run php on a windows server and I know that pretty much all you do is copy your .dll to the right folder, restart apache, and you're done. I uncommented out the  "extension=php_ldap.so" in my php.ini file, but the module isn't even in the extension directory folder (/usr/lib/php5/20060613).

View Replies !
Compile Ftp.so Module
Can somebody let me know where to get the ftp.so module for php? I have too much trouble building it. Also if somebody can tell me what's the easiest way to build the ftp.so extension.

php version: 4.2.2
Solaris 8

View Replies !
Module Ordering
I am working on a CODE script - the idea behind it is that a user is able to choose which modules he wants to display on his page. When I say a module all I mean is a block of code which is in a seperate CODE file (for example: news.php, weather.php, search.php etc).

I have two tables. The first table is called 'modules' and simply contains a list of all the modules. It has ID, status, name, description and filename columns. The filename column is the path to the modules CODE file. Code:

View Replies !
PHP Financial Module
The .Net framwork has a suite of components for Open Financial Exchange (OFX) client integration called IBiz from nSoftware. Is there a php module that allows you to communicate with bank institutions to download statement information(credits/debits) in xml similar to the IBiz software?

View Replies !
How To Install ZIP Module For PHP ?
I Googled a lot but could not find a tutorial on how to install the ZIP module for PHP.
I have Apache + PHP 5 + MySQL.

View Replies !
Image GD Module
I am a little new to linux and am afraid I'd mess the existing config. if I re-compile php while trying to add the GD module. Moreover, I believe I installed a php binary on Debian when I put it there the first time.

View Replies !
Php-mcrypt Module For Php-4.2.2 ?
I am looking for the above as my php version (Redhat) is that. Call me
lazy, but I do not wish to compile php unless it becomes absolutely
necessary, as it has been working fine so far.

I have searched google for it, but to no avail so far. Does anyone know a
source for it ?

Upgrading to 4.2.3 is an option, but it will require upgrading large chunks
of my installation that I do not have a problem with.

View Replies !
Weather Module
I'm very interested in http://www.oliverhine.com/weather module, but unfortunately it's just for the Dot Net Nuke system and further more for ASP (IIS server) technology. However I'm now using PHP in an apache server to run my website.

So could you help me with this problem? I love http://www.oliverhine.com/ weather module so much I really want to get it in to my PHP website. Please help me to convert it or something like that.

View Replies !
Php As Both Cgi And Module On Apache
is it ok to configure php as both cgi and module for apache 2.0; that is in the httpd.conf file set the directives that run both cgi and module?

View Replies !
CodeBase Module
I am using osCommerce opensource software to build my site. Can anybody suggest as to where can I get the 'Code Base(Knowledge Base) Module to integrate with my software!!

View Replies !
Module 'readline'
PHP Warning: Module 'readline' already loaded in Unknown on line 0.

what this warning means?

View Replies !
YP/NIS Module For PHP 5.1.x In PECL
PHP documentation reports that the YP/NIS module is not bundled with PHP after 5.0.4 and is moved to the PECL repository. I am not able to locate it. Thes yp_* functions are an integral part of my project and am forced to use PHP 5.0.4 for the project. But PHP 5.0.4 has certain bugs like:

1. Returning an empty page ( and hence with a Download window as the browser does not get the MIME type)
2. Returning "Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 94437 bytes) in." which are not found in later versions. These YP functions are blocking me from upgrading the PHP on my Linux server.

1. Locating the YP/NIS modules in PECL or
2. An alternative authentication scheme to the YP/NIS functions which will enable me to upgrade PHP and avoid the above mentioned bugs.

View Replies !

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