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.





Where Can I Find The GD Library Standalone Executable File?


I downloaded the tarball and while was able to compile within PHP with
no problems, I am having memory timeout issues involving image
manipulation with extremely large images (800K - 2mb). Requirements
are to create thumbnails for even these banner-sized images, but PHP +
GD + [huge image] = too much memory.

I'm trying to prove that it is undoable, though the suggestion was to
do a command-line GD call to the image instead of using the PHP
functions to do so to save some memory; if it still times out, then
it's undoable altogether.

However, I cannot find the standalone executable file that will ensure
I can run GD from the command line.




View Complete Forum Thread with Replies

Related Forum Messages:
Standalone Executable File
I downloaded the tarball and while was able to compile within PHP with no problems, I am having memory timeout issues involving image manipulation with extremely large images (800K - 2mb). Requirements are to create thumbnails for even these banner-sized images, but PHP + GD + [huge image] = too much memory.

I'm trying to prove that it is undoable, though the suggestion was to do a command-line GD call to the image instead of using the PHP functions to do so to save some memory; if it still times out, then it's undoable altogether. However, I cannot find the standalone executable file that will ensure I can run GD from the command line.

View Replies !
How Do You Find The Path To The Php Executable?
I am not able to find where the PHP executable is located on a shared
hosting platform used for one of the sites here at work, and Tech
Support appears to either not know or not want us to know where it's
found. This is for a required CLI PHP script that has been running on a
dedicated host for some time that they decided to move to a shared
hosting service.

View Replies !
Php As An Executable File
I was wondering, how to write a php file, and turn it into an executable file that can be run.

i.e. if i write some code in php, and i want it to be a program that runs in the background... say, listens for information that comes in the sockets.

how would I implement this? also, how would i make the php file into an executable that doesn't need to be opened from internet explorer?

e.g. like in c++ you would compile the source code and an exe file would result. however, this is not the case with php. what could i do to make the server run the php code without requiring me to open it in the browser?

View Replies !
Run Executable File
I want to write a php program that calls a cgi script to automatically update my webpage. I have tried to following, but it doesn't work I know, however, that the cgi script does work.

<?php
shell_exec("http://www.mysite.com/cgi-bin/mt/mt-rebuild.cgi -all")
?>

Any ideas?

View Replies !
Use Of Webservice To Find Latitude And Longitude With The Use Of NuSoap Library
"map.php" Shows How to use webservice in "php" using
"NuSoap"

NuSoap Require a it's library You Can got it from
http://keihanna.dl.sourceforge.net/sourceforge/nusoap/nusoap-0.7.2.zip

View Replies !
How Can I Find Out Parent (including) File Of Included File?
How can i find out parent (including) file of included file?
Lets imagine that we want to for example auto_prepend file to each file on our server that would write out the name of file  its being executed. I know, i can use PHP_SELF but what if i want to write name of file which is already included?

I have a web page and i want on it show its name even if it was included, but not the included page itself is showing name but auto_prepend file to each php file, its duty of this auto_prepend_file to write it out i dont want myself to echo it on each page? do you feel me?

View Replies !
Read A Text File Then Find Keywords In That File
how do i make php read a text file then find keywords in that file and only display the results of what it found (i'm going to use wildcards with the keywords so i can sort data to different text files)that way it can only display the part of the text it found and write it to a new text file. i was wondering if anybody could give me an example of that or tell me what commands?

View Replies !
Invalid Library (maybe Not A PHP Library) 'libmysql.dll' PHP5
WinXP Pro, Apache 1.3.27, trying to add PHP 5.0.4 with MySQL support to
the mix. Everything works fine until I add 'extension=libmysql.dll' to
php.ini, and then starting Apache gives me the same error popup two or
three times, all with the same message:

PHP Startup: Invalid library (maybe not a PHP library) 'libmysql.dll'

I've tried all manner of variations of extension_dir, and copied
libmysql.dll from the php5 distro into c:windowssystem32, all to no
avail. PHP seems to work otherwise, but there's no MySQL support.

View Replies !
Standalone Problem
I've set up PHP 4 with Apache on an intel/Redhat 6.2 linux box with no network interface. Using URL PHP code with the .php extension works fine, but php code in html documents does nothing. In fact, view source shows the php code on the browser.

View Replies !
Multithreading For Standalone Php
I'm trying to write a mutlithreading server with standalone PHP.
Concurrent requests is possible. Normally it is done by handling each
socket spawn by serversocket in separate threads. But it seems that
there is no thread support in PHP at all.

Would anyone give me some suggestions?

BTW, is the community considering add thread support to PHP in the
future? What is the major difficulty to import an existing thread
library (such as pthread library) into PHP

View Replies !
Standalone Program
I'm going to be doing a program for an elderly couple who owns a horse ranch, and wants some software to keep track of all their horses, owners, doctors, etc. I'm going to be writing the program in PHP using a MySQL database.

I set up one like this for my work and it runs off of Apache on our server. I need this program to be a stand-alone install, without installing MySQL, PHP, and Apache seperately. How could I go about integrating it all into one package?

View Replies !
Standalone PHP Installation
I have never installed PHP before. It's always been set up for me. I have
a client whose site is hosted as a virtual server. I'm trying to set up
ecom for him, but the mhash library is not installed. So I use fopen to
open a script on my website that hashes the variables. Obviously, this is
not ideal because if my site goes down his ecom will too. I asked the tech
people at his hosting company to set that up, but they said they don't do
custom compilations.

"As per compiling PHP with --with-mhash=[DIR] this is how that works: any
custom compilations, custom applications, etc. are up to the user to compile
and install. Use gcc/etc. to compile PHP with the options that you like.
The php.ini in /etc is available for your customization as well. If you
compile your own binary of PHP, you can place it where you like (or leave it
at the default) and get the paths updated to use it, or you can obviously
use it directly if necessary."

I was planning on compiling a new, minimalist version of PHP (with just
mhash) in a different directory, but I'm hesitant to do it in case I get
unexpected results (I don't want to take the rest of his site down). Can
anyone tell me if this sounds feasible? What kind of pitfalls can I expect?
And can anyone recommend a tutorial? Most of the tutorials I've found
assume you have root access and/or are compiling PHP/Apache together.

I was also wondering if it would be possible to just compile the mhash
library and add it to php.ini? That seems to be the simplest thing, though
I don't know if it would work...

View Replies !
Php Install Standalone
I need to install php like standalone. can somebody say me that way to install it like standalone on linux, with support for mysql, apache and oci8?

View Replies !
Standalone Sig Generator
I currently have my sig generator running,  the problme Im facing is that it outputs like this http://mysite.com/image.php?sigimage.png

I need to have it out put like this -> http://mysite.com/image.png?sigimage.png or something like it because a lot of sites do not allow image.php. Code:

View Replies !
Standalone Apps And Php
I have a project in mind for a library management system which I would like to try building with php/mysql.

Are there any Delphi-like IDE apps out there that would do the job? Can the code be compiled into an executable?

View Replies !
Standalone Solution
I was asked to write a database solution for a friend.. it was supposed to do the normal add/retrieve/modify/search functions of a databse. i started with vb6 then decided to use php/sql.

I might sound really dumb and ignorant but the question is... if i want to "package" this to him... how can i do this without having to personally go and install a webserver and php and sql and the rest so he can use it just through his web browser?

can i use an installer that will allow it to be packaged so after the install he would just have to open the databsae through his browser?

View Replies !
How To Read The File Tag By Tag,How To Install The GD Graphics Library
1. How to read the file tag by tag.
2. How to install the GD graphics library..(can i use Ming here)...

View Replies !
PHP Standalone: Charset Setting
I'm simply using PHP as a programming language, and I just want to
print some text information to stdout,
but instruction
print "é" (&eacute;)
does not print my "e" with an accent in the shell window: wrong
charset.

How to set the correct charset?

View Replies !
Standalone WIN32 Application In PHP
Is it possible to write a standalone Win32 application using PHP? Like
creating a window from the PHP script, putting buttons and textboxes on
it, handling clicks on the buttons etc...,

View Replies !
Standalone DB (like Access) For PHP/Apache
I am in the process of translating an WIndows/ASP/MsSQL Content
Managment System (CMS) to Linux/PHP/???.

Is there a popular database I can use that will allow standalone files
like Access did (which used .MDB files)?

In order for the CMS to work, there needs to be a standalone database
file that is self-contained, just like Access .mdb files are under
Windows. I guess I am asking for an Access equivalent for
Linux/Apache.

View Replies !
Submit Standalone Programs With Php
I'm building an application which submits scheduled php jobs. The way I would like it to work is to have one php program to submit the other php programs on a scheduled basis. This control program shouldn't have to wait until one job finishes before it can start the next one; instead, it should be able to submit all the jobs in one go, but it also needs to be able to be informed of the return codes of the submitted programs so dependent programs can be submitted too.

I've looked at the exec() and system() commands, but they either don't seem to allow return codes to be returned from a submitted program to the submitter program or they unconditionally print anything the submitted programs produce.

View Replies !
Setup MySQL On A Standalone Machine
Has anyone setup MySQL on a standalone machine?

View Replies !
Configure To Run With The Cold Fusion Standalone Server?
Can I configure PHP to run with the Cold Fusion standalone server? I don't have IIS installed. I'm on windows 2000 pro. I want to run the cold fusion server and be able to execute PHP scripts.

View Replies !
File Which Tries To Find Itself And Can't...
<?
//file test.php
phpinfo();

$filename = "test.php";//it does not work

$filename =
$_SERVER['DOCUMENT_ROOT']."/home/ke000067/public_html/test.php"; //it
does not work

$filename =
$_SERVER['DOCUMENT_ROOT']."/~ke000067/public_html/test.php"; //it
does not work

$filename = "home/ke000067/public_html/test.php"; //it does not
work

echo 'fila buscada: '.$filename.'<br>'

if (file_exists($filename)) {
echo 'Of course it is.<br>'
}else{
echo 'What?? How can it be???.<br>'
}

?>

these are some values retieved from phpinfo
_ENV["REMOTE_PORT"]2010
_ENV["SCRIPT_FILENAME"]/home/ke000067/public_html/test.php
_ENV["SCRIPT_URI"]http://200.50.110.233/~ke000067/test.php
_ENV["SCRIPT_URL"]/~ke000067/test.php
_ENV["SERVER_ADDR"]200.50.110.233
_ENV["SERVER_NAME"]200.50.110.233
_ENV["SERVER_PORT"]80
_ENV["SERVER_SIGNATURE"]<ADDRESS>Apache/1.3.33 Server at
200.58.112.233 Port 80</ADDRESS>
_ENV["SERVER_SOFTWARE"]Apache/1.3.33 (Unix) mod_auth_passthrough/1.8
mod_bwlimited/1.4 mod_log_bytes/1.2 mod_ssl/2.8.22 OpenSSL/0.9.7e
FrontPage/5.0.2.2635
_ENV["GATEWAY_INTERFACE"]CGI/1.1
_ENV["SERVER_PROTOCOL"]HTTP/1.1
_ENV["REQUEST_METHOD"]GET
_ENV["REQUEST_URI"]/~ke000067/test.php
_ENV["SCRIPT_NAME"]/~ke000067/test.php
_ENV["PATH_TRANSLATED"]/home/ke000067/public_html/test.php

I'm really confused about paths. Now I think that it is not a good idea
to learn on local server, beacause whenever one changes to a shared
one, all seems to fail....



View Replies !
How To Find A File?
I've tried using readdir, but readdir read the entire directory which I do not want. So is there any way I can read only files which satisfied my pattern?

View Replies !
Where To Find Php.ini File
Can anyone tell me where to finde php.ini file, I have been trying to install ioncube for this classified script and I need to add a line to php.ini file, I found php.ini.dist but it looks like a test file not script, don't know where to put the line.

View Replies !
Find A File
In a directory, how to find an image file with part of its filename is known
and the file extension could be one of the following(jpg, tiff, bmp,png).

The filename always begin between 1 to 3 alphabet, then a dash(-), and
between 1-4 set of numbers and the extension could be in one of the
following(in order of importance) - jpg, bmp, tif.

If I know part/full of its filename, find the 1st match(just in case there
are similar filename) with .jpg extension, if not found, then check with
..bmp extension, last check if it is with .tif extension. Code:

View Replies !
File Find Question
I looked in the manual and searched the web but did not see a file
find function that takes a wild card - I need to look for all files
such as:

$Array = FileFind('name_*.jpg');

And then I need to delete all such files.

Is there such a function?

View Replies !
$PHP_SELF To Find Out The Name Of File Itself.
I know the code $PHP_SELF to find out
the name of a file itself. Only if you
include a file with $PHP_SELF in it, it takes
the name of the parent-file.

How do i get the name of the actual file...

View Replies !
Can't Find The Uploaded File.
I have a file upload script. I have everything working fine. But when I test it out I can't find the uploaded file. I looked in /var/tmp/ but nothing of the sort is there. How can I direct the upload to do to a folder of my choice?

View Replies !
How Does One Find The Php.ini File On Linux Box?
I want to edit the php.ini file. How do I find it? I tried phpinfo()
and saw a bunch of path info, but none to php.ini.

View Replies !
HOw Can I Find Out File Size ?
How can i find out the file size of a folder present in site root folder.

for example :

/--
    |
    [ram] #folder

Now i want to know the file size of this folder call (ram) in site root folder.

Actu. I want to display the folder size in my page.

View Replies !
Can't Find Include File
I have an "include_once" statement on top of my php file but when I run it I get the error message:

Warning: main(../db_fns.php): failed to open stream: No such file or directory in
/home2/www/domainname/demo/shopping/rules/gen_rules.php on line 2

Warning: main(): Failed opening '../db_fns.php' for inclusion (include_path='.:/usr/local/lib/php') in /home2/www/domainname/demo/shopping/rules/gen_rules.php on line 2

In "gen_rules.php" I have:
<?php
include_once('../db_fns.php');
session_start();
ob_start();
....
?>

The file "db_fns.php" is the "shopping" folder.

View Replies !
Find Data In File
I've looked on Google and through PHP.net but I can't seem to find what I'm looking for. What I'm trying to do is open a file through HTTP, then PHP searchs the file and where it finds lets say for example

something * something else

Where it knows what to start looking for, and what to end looking for and it takes it all the in between and puts in in a variable

View Replies !
Find One Line In A File?
Im trying to do somthing i think is simple but i dont even know where to start

I want to look at a variable (an html file in a a variable) and extract a line that will look like this)

<form method="post" action="mysite.com/upload.php" name="member_stat" [maybe some more bits here]>

the only thing that *never* changes is the 'name="member_stat"' bit

How can i get this entire line into a variable? i have looked at string functions, cant find anything and im not very good at regular expressions but surely it cant be that hard?

View Replies !
Dl(): Invalid Library (maybe Not A Library) 'ssh2.sl' In
Problems with the same library in a different SO. I'm installing the ssh2 in HPUX11.11 and PHP 4.3.1. I followed the instructions:

- compiled the lib_ssh
- downloaded the tarball from PECL
- did phpize && ./configure --with-ssh2 && make

I run into some problems during this process and made a post in php.net to help others.

Now when loading the library I receive the error:
Warning: dl(): Invalid library (maybe not a PHP library) 'ssh2.sl'

View Replies !
Php Executable?
Where is the php execuatable usually kept. I thought it was /usr/local/bin. Can't seem to locate it there. Any other locations you guys keep it?

View Replies !
Non-executable URL
When I tried to run Currency conversion script it's showing the follwing error. Bad request: probably tried to POST a non-executable URL I am using xitami server and saved in right path in web server.

View Replies !
Path Getting Messed Up - Cannot Find A File
If I run the following code:

exec ("swetest -edir$sweph -b$utdatenow -ut$utnow -p012 -eswe -flsj -g,
-head", $out);

all is well - PHP finds the program swetest and makes the calculations.
But if I then insert this beforehand:

$NetGeoHTML = file_get_contents($NetGeoURL, 99000);
exec ("swetest -edir$sweph -b$utdatenow -ut$utnow -p012 -eswe -flsj -g,...

View Replies !
Find And Replace File Titles
Q1) I would like to change all the .html terms in my file titles to .php
So, I would like to do find and replace in file titles. I have Dreamweaver and this can do find and replace in the actual files - but cannot do it in the actual file titles. What can I do?

Q2) I would like to change all the links in my files from .html to .php

BUT I only want to change the internal links for my website - I do not want to change the outbound external links. So, I want to change: Code:

View Replies !
Find File Type When Using Fopen
How can I get the file type from a string like this one

http://Awebsite.com/image.php?size=large&&imgcode=TMOV3

the plan is to call it somthing and save the image localy can this be done?

View Replies !
Php.ini File - Cannot Find In My Root Folder
hey. i have a memberscript that i am having trouble with.

my users want to upload their own avatar, but it is not letting them. the file in which the avatars are sent to are chmodded correctly.

i think it may have to do something with the php.ini file, but i cannot find it anywhere in my root folder. i have godaddy hosting and i contacted them but they didnt help me at all.

View Replies !
Find The Name Of The File That The Include Is Being Called From?
Is it possible to find the name of the file that the include is being called from?

Ex.:

I call omg.php, omg.php wants to include the name of the file that it is being used inside.

View Replies !
Starting Executable
I am trying to figure out how to get the CMD (dos) window to come up when I
call a executable. I have this working on a Win2000/apache machine and am
trying to use the same code on a identical machine.

Here is how I start the executable. It is initiated from the browser on the
machine itself:
pclose(popen("start " . $exe . $params, "r"));

What normally happens is a cmd window pops up showing the executable's
output to screen. My php code then gets the PID for the executable by
running a tlist.exe and searching for the name of the executable. I take
this PID and sleep till a certain time and then kill the executable.

When I do it on the new machine the executable runs but no cmd window comes
up. I also cannot get a PID for the executable because tlist output shows
the executable's PID but has no information about it. When I manually use
Tasklist I can see the name of the executable.

PHP and apache are setup identically on both machines so it must be
something in windows. From looking around I think it may have to do with
'apache not interacting with the desktop' ?

I need to have the cmd window come up and I feel if I can get that
accomplished the PID problem will be taken care of too.

View Replies !
Interfacing With 'C' Executable
i have a small C program as below:

main()
{
char name[10];
scanf("%s",name);
printf("Your name is : %s",name);}

i'd like to interface with the C prog using PHP, and i've done it as follows:

$command=exec("ctest < query.dat > query.res ");

where the file 'query.dat' contains my name, and i'd like the resulting "Your name is : NAME" to be redirected to the file 'query.res'.

Now the porblem is that if i execute the PHP code on the linux prompt then everything is fine. but if i try to invoke the PHP file thro the browser i dont get the proper output. in fact a non-empty 'query.res' becomes empty after the PHP file is invoked by a browser.

View Replies !
Executable Path
is there a way to get the path of the php executable through code? i want to run to a few command line scripts and my main script should detect the PHP CLI path automatically.

View Replies !
Executable Delivery
I'm having trouble with reading up an executable and printing it (along with header data of course) to the browser to deliver it. I get a very very small filesize difference using fread(). I checked the original and downloaded files in a binary hex editor and it seems that the same sequence of a word of data is being written to any file I read from and print to the browser.

I tested these with text files also and it seems to happen in the ascii form of a few tabs and a new line. I deleted them in the editor and the EXE runs fine. I dont have any echos that would cause this to my knowledge but I can't find out where else they would be coming from. Any ideas? Code:

View Replies !
Running An Executable?
I am using a program called jhead.exe.

It cleans up the headers from a jpg image file.

Does anyone use it ?

Is this the correct method to call the program ?:

exec("jhead -purejpg ".$source); // cleans up jpg headers

The jhead.exe file is in the same directory ans all my php scripts so I am not sure if I need to put a path in the statement or not.

View Replies !
Executable Without Waiting
i want to run a backup of data and this may time a few minutes. is there any way of starting this task and not wait for it to end?

c:"program files"7-zip7z.exe a -tzip backup.zip datafile.dat -psecret


View Replies !
Opening Executable
If i have a exe file on my server and i want to open it by accessing a specific page how would i open the file. Would this be done in PHP or Javascript. I have no idea how this would be done so any help would be greatly received.

View Replies !
Login - Using The Executable?
i am writing a login page using php in linux. I am getting a problem. Problem Description:
I have C file which checks user name and password & returns value When I execute C file it gives proper/required output.

I am using the executable of this file in a shell script. My shell script is log_in.sh following is its content. Code:

View Replies !
Loop Through Array Find File Extension
i need to build a little script for my browser script...

i need to do the following...

extract the .ext from the given file name, then i need to pass that to an array that has a list of valid extensions and what icon to use.

View Replies !

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