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.





Varying Availability Of Libraries


I'm having problems connecting to postgres via php.  Error message = 'undefined function' when I make the call to pg_connect.  I have modified the php.ini file to enable the extension=php_pgsql.dll line.  The .dll in question exists in both windows and the defined php extensions directory.  I have confidence that the php.ini file in question is the one in use by Apache (if I rename, everything bombs). Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Using C Libraries And PHP - Calling Functions In External Libraries
Currently I am running a compiled C program (called swetest) on Linux from
PHP using the exec() command. This allows me to get the calculations I need.
But some web hosts out there disable the exec() command and I am stuck. What
are the ways in which I might be able to call the functions in swetest...

View Replies !
Pow() Function Gives Varying Results
I got the following code which works perfectly on my development machine(Windows with PHP 4.3.2) but doesn't give appropriate results on my clients server(linux with PHP 4.2.2). The actual result for $degrees should be 22.9458.... and my clients server fails on giving a result which results in a broken image. Can anyone spot what in that calculation is wrong ?

    

View Replies !
Displaying A Varying Number Of Images.. In Tables?!
I'm building a news system. I have a page to display all posts made to
category=$id, simple enough, now I wanna make an index page that looks
up all the categories from the news_topics table, displays their name,
a link to their page, and the image assigned to that category.

Here's the catch: I wanna put this in a table as the images are only a
few hundred pixels wide, so a flat list of each image would be boring
and inefficient. The thing is, we may add/remove news categories over
time, so how can I deal with this?

Would it really be easier to manually make this in HTML and change it
as/when we make modifications to the topics table?

View Replies !
Validate Each Row Against A Varying Set Of Keywords Some Exact Some Broad And Some Negative Exact
I have a datafeed and I want to validate each row against a varying set of keywords some exact some broad and some negative exact and negative broad if that makes any sense ultimatley these will be stored in a database and be feed specific.

here an example of what i mean lets say I am look for PC's I don't want software furnature Apple Macs or accessories I have already applied a price range filter Code:

View Replies !
PEAR Availability
I'm starting to look into PEAR, and it looks like there's some interesting
stuff in there. I'm wondering how much I can rely on it for a distributed
app. If I understand correctly, it's now included in the PHP distro, and
installed by default. What version did this start with? Is the default
installation just the base class, or are some of the packages included as
well? The tricky question is: does anyone have any idea of how commonly
it's installed? Do most hosting companies provide it? I know end users can
install it for themselves, but I have enough support issues without having
to hold users' hands on that.

View Replies !
PHP Availability Calendar
Do you guys know somewhere where i can find a script which creates a Calendar which can be controled via a database, so if a date is "occupied" then the date will be marked at BOOKED.

View Replies !
Availability Checker
I'm trying to build a site for Broadband and I am wanting to put a Broadband availability checker on my site like alot of other site have, However i am quite  new to PHP. Could someone point me in the right direction as how to go about producing the above?

View Replies !
Availability Calendar
where I could get a PHP based availability calendar for a holiday apartment website? I currently have the calendar as a html tables based affair that is updated via DW, but I am trying to migrate the site to PHP and wish to introduce a web based calendar that can be updated online.

I am looking for something similar to http://www.lanzarotebreaks.com/vill...ar.php/3882.htm that displays in a table format
but is controlled by PHP/MySQL, would like it to have online admin functionality. Am willing to learn how to handcode one if there are any good tutorials. Any help is gratefully received.

View Replies !
Availability Script
i have a number of villas in spain but id like to be able to show there availability online to prosepctive clients to cut down on wasting there time when a particular villa is not available!

i need to be able to show booked and available periods from anything from 1 day to two months, does anyone know i way i could do this, are there any ready made scripts out there doing this.

View Replies !
PEAR Availability On Web Hosts
Just wondering if anybody knew the availability of PEAR classes on most web hosts... i mean like if i write a script using say the PEAR db abstraction class, would most web hosts have the PEAR class installed and in the include_path so that my script would work?

View Replies !
Writing Pseudo For Availability
creating an online store for a project in on of my classes. I've searched around and cant really find how to create some availability scripts. How can I create a script to check our database on whether certain things are available? Any suggestions? Just asking for a good starting point.

View Replies !
Checking For Amazon Availability
Rather than reinvent the wheel, I was wondering if anyone had a tried and true and fast way of checking a string containing availabilty information for an Amazon request.

View Replies !
Checking The Availability Of A Domain
I want to know whats the best way to check if a domain is available or not for registeration? Is there a recommended class i should use or is it easy to code myself?

View Replies !
Check Availability Button
I have a form that accepts user info. I want to create a button that enables the user to check for the availability of the username entered before continuing with the rest of the form. I have tried using the button onclick to call a JS function. The JS function have codes to compare the username with database select.

View Replies !
Date Columns Availability
I done an availabilitycheck that until now seems to work just perfect, except 1 problem. For exampel in the database if I have an booking in datecolumns llegada and salida dates 25/11 and 15/12, I would like the days 25/11 and 15/12 to be marked as available. This is the code I have:

$result = mysql_query ("SELECT llegada, salida, propiedad from bookings where ( propiedad = '$propiedad' )
AND (('$llegada' BETWEEN llegada AND salida) or ('$salida' BETWEEN llegada AND salida) or (llegada < '$llegada' AND salida > '$salida') or (llegada > '$llegada' AND salida < '$salida'))", $dbh);

In this piece of the code this is what I would like to do but don´t work:
('$llegada' BETWEEN llegada AND salida-1) or ('$salida' BETWEEN llegada-1 AND salida)

View Replies !
Calender - Availability Chart
I have availability on my site in an calendar and I manually introduces if available for that day or not. But I want to do it autmatically. At the moment I have the reservations in an database table, I have arrival in one column and departures in another column, both date types.

View Replies !
Redirection And Server Availability
I have two servers, one hosted and one local. My local server uses dynamic dns and I am trying to write a script on my hosted server that will check to see if my local server is accessible. If it is accessible I would like the script to do a browser redirect to my local server. If the connection can't be made I would like the script to be in the header of an index page on the hosted server or redirect to a valid page one the hosted server. From what I've found on the net it should be possible using socket() but am not sure how to go about it.

View Replies !
Check Room Availability System
I am super new to php/mysql etc. i am just trying to do a room availability system.
I have 5 rooms in 5 different category. i like to know how to design a DB and write a php that takes two different dates[checkin date / checkout date] and verifies the DB for availble rooms.

View Replies !
Ajax Script To Search Domain Name Availability In Php
hai friends can any one of you do my favour and send the script to
"search domain name availability in php using ajax"

View Replies !
Checking Room Availability For Hotel Booking System
I was wondering if anyone could help me with a problem I'm having.
I've been using Dreamweaver to create a hotel booking system for a
friend of mine, using MySQL (version 4.0.21) and PHP 5. The bit I'm
struggling with is checking the Room Availability based on dates that
are typed into a textfield and then returning a list of the available
rooms on the next page.

The three tables involved in this function are:

CREATE TABLE `room` (
Room_Number tinyint(1) UNSIGNED NOT NULL,
Price_Double_per_Night decimal(5,2) NOT NULL,
Price_Twin_per_Night decimal(5,2) NOT NULL,
Price_Single_per_Night decimal(5,2) NOT NULL,
Price_Double_per_Week decimal(5,2) NOT NULL,
Price_Twin_per_Week decimal(5,2) NOT NULL,
Price_Single_per_Week decimal(5,2) NOT NULL,
PRIMARY KEY(`Room_Number`),
)
TYPE=InnoDB
ROW_FORMAT=fixed;

CREATE TABLE `room_booking_link_entity` (
Room_Number tinyint(1) UNSIGNED NOT NULL,
Room_Booking_ID int(11) NOT NULL,
Single_Double_Twin enum('Single','Double','Twin') NOT NULL,
PRIMARY KEY(`Room_Number`, `Room_Booking_ID`),
INDEX `Room_Number`(`Room_Number`),
INDEX `Room_Booking_ID`(`Room_Booking_ID`),
FOREIGN KEY `Reference_14`(`Room_Number`)
REFERENCES `room`(`Room_Number`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
FOREIGN KEY `Reference_85`(`Room_Booking_ID`)
REFERENCES `room_booking`(`Room_Booking_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
TYPE=InnoDB
ROW_FORMAT=fixed;

CREATE TABLE `room_booking` (
Room_Booking_ID int(11) NOT NULL AUTO_INCREMENT,
Customer_ID int(11) NOT NULL,
Bill_ID int(11) NOT NULL,
Date_of_Arrival date NOT NULL,
Date_of_Departure date NOT NULL,
Number_of_Nights tinyint(3) NOT NULL,
Date_Booking_Made date,
Status_of_Booking enum('Booked','Arrived','Departed') NOT NULL,
Total_Cost decimal(7,2) NOT NULL,
PRIMARY KEY(`Room_Booking_ID`),
INDEX `Room_Booking_ID`(`Room_Booking_ID`),
INDEX `Customer_ID`(`Customer_ID`),
INDEX `Bill_ID`(`Bill_ID`),
INDEX `Date_of_Arrival`(`Date_of_Arrival`),
INDEX `Date_of_Departure`(`Date_of_Departure`),
INDEX `Status_of_Booking`(`Status_of_Booking`),
FOREIGN KEY `Reference_03`(`Customer_ID`)
REFERENCES `customer`(`Customer_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
FOREIGN KEY `Reference_14`(`Bill_ID`)
REFERENCES `bill`(`Bill_ID`)
ON DELETE NO ACTION
ON UPDATE NO ACTION
)
TYPE=InnoDB
ROW_FORMAT=fixed;

I've just discovered that MySQL 4.0.21 does not support subqueries.
I'm basically stuck with this version of MySQL. I think I've got
round the subquery problem by using a multi query option as follows:

1.Create a temptable that will store all of the room numbers that
have bookings for the particular dates requested as follows:

SELECT DISTINCT a.room_number INTO temptable
FROM booking_link_entity AS a INNER JOIN room_booking AS b
WHERE b.departure_date >$_POST[‘ARRIVAL'] And b.arrival_date <
$_POST[‘DEPART'];

2.Left join this with the room table and pull out rows with no match

SELECT a.room_number, b.room_number
FROM room AS a LEFT JOIN temptable AS b ON a.room_number=b.room_number
WHERE b.room_number IS NULL;

3.Delete temp table

I've tried doing this in Dreamweaver, but to no avail. I have a
feeling it is too complex for Dreamweaver.

My php knowledge is very basic and was wondering if anyone could give
me some pointers as how to do this in PHP?.

View Replies !
Using VB Libraries
is there any way to use Visual Basic code with PHP? Directly or indirectly? I ask this because I have a huge library of VB code and I would like -if possible- to integrate it in a PHP site without porting the whole thing.

View Replies !
OCI Libraries
I have some problem trying to connect to an oracle DB, I don't realy
understand how to use the oci libraries,

View Replies !
Pgp Libraries
Can anyone recommend any (well written) php libraries
for encrypting strings (with the private and/or
public key functions of gpgp)?

Specifically, I want to loop through the post parameters
of a form submit, encrypt that output and then
send it as email.

View Replies !
Libraries
When I do my c++ code I can bury the actual code in a static lib so others can't see it. Does PHP have something like this?

View Replies !
Includes In Libraries
A fairly simple question:

I have a library A which depends on library B and C.

Currently I have:

<?php
include("A.inc.php");
include("B.inc.php");
include("C.inc.php");
?>

....in my HTML.

This needs changing to:

<?php
include("../A.inc.php");
include("../B.inc.php");
include("../C.inc.php");
?>

....if I call it from deeper in the directory tree.

I don't want lots of includes in my HTML. I want to write:

<?php
include("A.inc.php");
?>

....and to have the other includes in the "A.inc.php" file.

However if I put:

include("B.inc.php");
include("C.inc.php");

....in the library, it doesn't fild the files when included using:

<?php
include("../A.inc.php");
?>

....in an HTML file some distance from the root.

I don't want to wire absolute paths in.

I *could* pass the "../" in as a method parameter - but that
seems like a total mess.

What is the best way to resolve this issue?

View Replies !
Loading Oo Php Libraries
how do i include a php file that contains just class definitions as when i use the normal
include("classfile.php"); it displays all the code in the client, anyone know how this is done,, i really need it,

View Replies !
Libraries And Templates
Can someone point me to a good resource explaining how and why to use
templates in php. I am new to php and wondering if these so called templates
are just include files or what. And I have read several things about
libraries in php but some of the applications I see are using includeonce
files. Please don't tell me these are the same as libraries. I would
consider libraries an application global resource that does not need to be
referenced on every page to be utilized. Maybe included in something like a
global.asa (from windows world) to make available to entire application.

Can someone shed some light on these subjects and/or point me to a good
resource?

View Replies !
Dextar Libraries
What is Dextar?
Dextar is a collection of PHP libraries. At first it started with the DexMail project, but it was halted since the main developers lacked time. As many started to show interrest in the theme and multilingual functions of DexMail we decided to break it out to it's own library.

Dextar currently only contains the DexGUILib and the remnants of the original DexMail project, although it's likely that DexGUILib will continue to evolve as well as totally new libraries.

The entire point of the Dextar Libraries is to make web application development using PHP easier and more powerful. If you have suggestions on already existing Dextar libraries or ideas on new libraries (perhaps you want to add your own lib to the Dextar collection) just join the Dextar project community on SourceForge Dextar project site.

Features:
XML-compatible tag library.
Totally separates HTML design and PHP code.
Applies object orientation to web GUI's.
Easy to use language bindings.
Data presentation tags with loop/list capability.

View Replies !
OO Database Libraries?
I am looking for a good general-purpose database-handling library for PHP.
The ideal one would be as much as possible object-oriented, and I 'm
currently looking at such as ADOdb and PEAR:DB.

View Replies !
Two Way Encryption With PHP - Some Libraries For Doing This?
Up until now I have been storing passwords in the database as an sha1 hash.
I like doing it this way, but a problem arises with people who forget their
passwords - I cannot retrieve it for them.

The simplest option would be cleartext passwords. Easy enough. But what I
would prefer to do is some sort of two-way encryption, so I can encrypt the
passwords, store them in the database, and then get them back. Are there
any PHP libraries out there that can do this? I have thought about rolling
my own, but do not want to duplicate somebody else's effort.

A cursory look for this sort of thing returned only one-way (hashing)
encryption techniques. This leaves me back where I was, having to reset
users passwords, rather than emailing it back to them.

I am not running a banking application here, so I am not too paranoid about
security. But, it would be nice to have some reasonable level of encryption
that is harder than rot13 to break.

View Replies !
PHP/MySQL Libraries
I'm looking for a simple php->mysql library to include in my apps that'll simplify data retrieval, looping, etc.

View Replies !
Graphics Libraries And Php
I manage a debian linux server, with the well known couple apache/php. I use libgd to make some graphics. I found this library very limited in comparison of what is possible with a modern graphic library.

I can use ImageMagick, but many forum users says that is not secure. Is this true ? Is ImageMagick is faster for image rotation than GD ?

View Replies !
Image Libraries
I'm trying to make some graphs for my website, but I don't think I have the correct image libraries installed. I'm still confused on how it all works though? So, how does it work, do I need anything special installed?

But then again, if you can use the conformation code image with phpBB forums, the libraries must be installed, or they are not needed. I assume that's how those image conformation codes work, they generate a random string then put it in an image. Is this correct, which libraries do I need installed?

View Replies !
Dreamweaver Libraries
Starting a new site and am wondering if I should go with a:

custom PHP/MySQL content management system. or a HTML website made using Dreamweaver and utilize the library updating feature. Let me know which method I should go with from the different perspectives below: -

1. cost-effective
2. search engine friendly
3. server resource friendly .

View Replies !
Code Libraries
Is there a standard php library that one would normally use to generate bits of html? A typical task is to loop through some items and format them as the options for a <select> in a form. This sort of thing is so common I am assuming that at the code already exists to do all this sort of html generating, and all I need to do is "include" it and make a single function call in the right place. something like

<?php include "html_tags.php" ?>
<form><select>
<?php echo show_options($mylist,$choosen)
?></select></form>

I assume I just haven't looked in the right place yet, or if I did then I didn't recognize the title for what it meant.

View Replies !
Using C++ Classes / Libraries
I'm working on a large software project to retrieve, parse, and ingest similar data from a variety of sources and formats. We'd like to use object oriented programming where possible to keep the code maintainable and scalable.

We've determined that c++ would be a great language to do this. Many of our scripts that interface with the data are in Perl, PHP, and Python. Most of the time, we can do queries and data manipulation in the respective language.

But it would be great to also tap into the power and already written code of C++ Is it possible to import, inherit, include, etc. a C++ library or compiled code into PHP?

View Replies !
PHP Forms Libraries
Can anyone recommend a good class library for working with forms in PHP? Specifically, here's what I'm after. Scripting pages to retrieve one or more records from a database, display them to the user as an editable HTML form, and update the database records upon submission of the form is a very routine (and tedious) task.

You have to consider the vagaries of different HTML form control types, the different ways that the same data is expressed in different contexts (e.g., boolean values are "" or "on" in the $_POST array, 0 or 1 in SQL queries, and obnoxious as PHP variables; similar things can be said about nulls), and whether the record currently being displayed to the user came out of the database, or is being redisplayed from a prior form post. It's all very fiddly and repetitive.

I want something that will abstract away as much of this as possible, without imposing unnecessary restrictions on the way I can build my forms. Is there anything out there, or do I have to write my own?

View Replies !
Libraries And PECL
1. Is there a way I can find a list of all available php libraries and
with which version they can run..?

2. Using php code, is they a way I can find out if I have loaded a
specific PECL extension..? (like extension_loaded() for php libraries).

View Replies !
Adding To My Libraries
I'm trying to do some functions in PHP that require me to add to my PHP libraries. I've never done anything like this before, and the lack of instructions on the library site doesn't seem reassuring. Before I start fussing with how I would go about adding to my PHP library, where could I find out if I even can? Is it something I can find out in with phpinfo().

View Replies !
AJAX Libraries To Use
I am likely to need to be adding some AJAX ability to some PHP web site material and I wanted to find out what AJAX libraries folks are using with PHP before I dived in on my own.

View Replies !
Tuning Of Coulor With GD Libraries
I want tuning the coulor of a picture with GD libraries, is it possible?

View Replies !
PHP Error Message Libraries
I have a large website with alot of php and myql commands scattered through it. What I would like to be able to do is have standard messages for any of the possible given errors messages. I was wondering whether anyone out there has seen or come accross a class or library file of error codes and messages, that could be built into a global error function. So if i get a nasty PHP error or Mysql error rather than the linesof text in the website everywhere I can spit out a nidcely formatted error page.

View Replies !
./configure And Build With .so Libraries
i'm not a experianced php builder.. :)
but i try to build php with a external mcrypt.so (i only need this
file!)...

the build with --with-mcrypt works fine... even the make test...
but the build "includes" mcrypt instest of creating the file in the
extensions dir.

does anyone knows how i can force ./configure to build the .so file?

View Replies !
Image Manipulation - GD Libraries
Basically, on my website, you can own dragons. Now, there are MANY MANY colors of dragons. I have a default picture I want to be used, but depending on the color, I want PHP to color the dragon. Basic colors, like red, blue, and yellow, but also complicated things like "cheetah spotted" and "cloudy" and still, the image must be shaded.

I can get all of the "skins" drawn, but is there some way [without using absolute positioning in CSS/HTML] to make the skin over-lap the dragon perfectly, where it would appear the default picture covered with the skin was really one picture?

View Replies !
PHP Libraries On Shared Server
I'm currently using a shared web server for projects, and only have FTP access to it.

I'd like to take advantage of PHP libraries like PEAR, and I was wondering if theres a way to install them on a shared server?

View Replies !
Installation Of CURL Libraries
Whenever i run the script containing cURL commands,in my Easy PHP editor, it shows me error. so, how can i install cURL libraries into my Easy PHP editor. Finally i want to run the cURL commands.

Also if it is not possible to include cURL libraries into Easy PHP, then show me some other ways of running cURL commands. I have PHP 5.1 installed....

View Replies !
Libraries To Cache SQL Queries
Using PHP 4, I'd like to cache webpages instead of using PHP each time visitors access them.

I've created a webtool showing personal profiles, and they use a lot of SQL queries within each page. I want to create a cached copy each time one user modifies their profile, and I've used the cool idea proposed on this WebmasterWorld thread:
http://www.webmasterworld.com/php/3216029.htm

It creates a cached copy of the webpage, and serves it when visitors access it.

Does anybody know any alternative PHP library to carry this out? I created it by myself, but would like to find one which is already developed.

I'm trying to integrate more features, like showing user's nickname if they are logged in. I can insert whithin cached copies some PHP code in order to make Apache interprete it, but I don't know if somebody made it before.

View Replies !
Libraries To Cache Webpages?
I'm using PHP 4 with Apache 2, and would like to share experiencies with PHP libraries to cache webpages.

I've got some webpages dinamically generated with mySQL data. These data changes 1-2 times per day, and it's not worth reading DataBase each time one user accesses my webpage, since it's "nearly" static.

So, I'm trying to find a PHP library which caches these webpage each time data are changed.

View Replies !
Encryption Libraries/classes
I need to do some encryption/decryption on some strings, so that I
can pass information in the URL in plain sight. Unfortunately, I have
little control over this particular server, so mcrypt is out. Do any of
you know of any good libraries/classes for this?

View Replies !
Syntax Highlighting Libraries
Are there any free PHP libraries/utility functions that can color the syntax of
various programming languages (eg. Java and C++)? I am posting code snippets on my site and would like to know if there is a way to easily give them syntax highlighting automatically.

View Replies !
Unable To Load Dynamic Libraries
I'm running FreeBSD 4.10 stable. I upgraded to php 5.03. Now when I run php I get the following types of messages:

PHP Warning: PHP Startup: Unable to load dynamic library /usr/local/lib/php/20041030/session.so

I get the same messages for the 12 modules that I updated.

In /usr/local/lib/php I have:

drwxr-xr-x 2 root wheel 1536 Dec 20 13:58 20040412
drwxr-xr-x 2 root wheel 512 Dec 20 14:00 build
drwxr-xr-x 3 root wheel 512 Sep 15 10:31 pear

Now much of php doesn't work. How do you fix this?

View Replies !
Are PHP Libraries Linked Dynamically Or Statically?
When a PHP program links to a library using include or require (or their
_once variations), is the library then linked dynamically or statically?

While it might seem irrelevant from a technical point of view, the
linking method is important when it comes to licencing issues as some
licences, like GPL, differ between those kinds of linking when it comes
to viewing the library as a derivative work of the main program.

Therefore it is quite important to know what kind of linking is in
effect when including libraries, and I hope someone in this group can
shed some light on this matter.

View Replies !

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