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.





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:
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 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 !
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 !
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 !
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 !
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 !
You Must Specify The PHP Executable Used For The Debug Session
perl and have run into some roadblocks while trying to run
tutorials.

I have installed Apache v2.2.3
I have installed ActivePerl v6.6.1.638
I have installed php v5.2.0
I am running Komodo professional, version 3.5.3

and running through the guestbook.php tutorial which came with Komodo.

Following Komodo's instructions, I click on Debug
then 'Run without debugging' (They say to click 'start', but start is not an
option I am presented with)
I am then given a debugging window where I can enter environment variables,
select CGI envronment, etc.
I enter the data as the tutorial specifies, but when I click 'OK', I get the
error message "You must specify the PHP executable used for the debug
session"

How do I do this?

I've tried Preperences, Languages, Perl and PHP as per searches on the WEB
but to no avail. Has anyone seen this error?

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 !
Reading CSS Files As Executable
I use a "page compressor" for my PHP. This strips out extra whitespace and HTML comments, and delivers a really ugly, but fast HTML page. I use the ob_ functions and RegEx to do it.

I want to do the same for my CSS. I need mondo comments in my CSS files, and it is supremely awkward to maintain dual copies ("source," and "compiled."). I just want the server to do the same thing to the CSS that it does to my PHP output.

In order to do this, I need to execute the CSS files as PHP. I have tried making the files .php files, but the browser refuses to recognize their CSS-ness, even though I output the correct header. I think the link fails.

What is the best way to have the server execute a PHP file and render it into a stream of pure CSS? I have tried changing the handler for the .css type to PHP, but that doesn't work.

I don't have access to httpd.conf. I must use a .htaccess file. The environment is Apache.

View Replies !
Running Executable Files
Is it possble to run an executable file using php? I made a quick search a found the exec() function but i didn't quite understand it??

View Replies !
Using Submit To Run Executable And Refresh Window
If someone knows how to take a page with an image on it and have a submit button pass two variables that are input from the page to an executable stored on the server, then refreshes the page when the executable has finished doing it's thing.

View Replies !
Error : Bad Request: Probably Tried To POST A 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 !
Reconfiguring From Php As A CGI Executable To An Apache Module?
I have written some php scripts that use basic HTTP authentication as
described in the php manual. It works fine on my development server which
runs php as an apache module. But, the production server (Linux), which is
operated by a hosting service, has their php setup to run as a CGI
executable.

So, I'm trying to find out how hard it is to reconfigure to run as an apache
module as opposed to a CGI executable on a Linux server. If it's just a
matter of editing a couple configuration files, than maybe I can just do
that myself. If it requires a rebuild of php, then I may need to ask the
hosting service support to do it (if they will).

Is it just a matter of adding a few modules to httpd.conf, or is there more
to it? The php documentation seems to be more focused on describing complete
installation procedures, and not reconfiguration.

View Replies !
Script That Can Run Executable Files On A Server
I am looking for a script that can run Executable files on a server, I have leased a dedicated server but the company doesn't allow remote desktop access to it, so I can't run them, we have uploaded server files to a dedicated server but can't run them, they are exe files.

View Replies !
Compiling PHP To Stand Alone Executable In 64bit?
I know that there are easy ways to compile PHP into a stand alone executable in 32bit.. but does anybody know of a program that works for doing this in XP 64bit with 64bit PHP so that it will generate a 64bit executable?

P.S. Yes I have searched but haven't been able to find any for 64bit it seems that most people who make software hate us 64bit users.

View Replies !
Run Win32 Executable In Browser/client ?
I have a intranet website on one of our windows machines that runs apache 2.0 and php5. In the browser, for one particular link on the site, I want to run a win32 command line program on the client windows machine, (if the program is there). This command line utility returns a string to standard output. I want to capture the string and return it to the server and then process it in some php (compare it to existing records in a mysql database. and write it if new).

Once I have the string in php I can handle it from there. I know this isn't strictly a php question, but I hoped someone could give me pointers as to what techiques I might need to use so I can investigate further, or suggest a more suitable forum for this problem ?

View Replies !
Return Same Data From Executable To Php As In Command Prompt
I've been trying to use passthru() exec() and system() to execute Apache's htdbm.exe (htaccess user database) and to get some info returned. For example I have tried as a test to htdbm -l .htpasswd, this to return the users in the databaase. None of the functions return the
users in the database while the same string does do this in command prompt. I know there is nothing wrong with the string because when I replace some vars at the end I can add users to the database with php, now it does return a message that this has been done. Al I want is that the same thing that is being returned in command prompt is also returned to PHP.

View Replies !
Detect If A String, Contains Executable Commands (w/o Executing!)
I have an interesting problem, where it would be important to detect whether or not a particular string contains executable commands (ie. via eval).

For example, I'd need:

"echo a b c"

to return true

whereas

"a b c"

would not.

I'd guessed that I could compare highlight_string output, but this may introduce unnecessary complexity. Short of building a list of absolutely all PHP commands, I was wondering if anyone here had a quick trick I could use!

View Replies !
Exec - Create An Executable That Return The System Drives
I need some help about exec command. I have create an executable that return the System Drives. It is based on DOS and does not need any parameter.

I have create my php script that executes the executable i've create and the source code is the following: ...

View Replies !
Use Download Manager If File Link: File.php?file=something.zip
I have a piece of code:

<?php
    $path = "/home/surfall/secret";
    $mainpath = "$path$file";
    header("Cache-Control: ");# leave blank to avoid IE errors
    header("Pragma: ");# leave blank to avoid IE errors
    header("Content-type: application/octet-stream");
    header("Content-Disposition: attachment; filename="".$file.""");
    header("Content-length:".(string)(filesize($mainpath)));
    sleep(1);
    readfile("$mainpath");
?>


However I can't seem to get download manager to work with it? So that I can download the file in pieces, thus the download will be faster. (I use Flashget as the download manager)

View Replies !
To Get A File Name, File Size, File Type...?
Is there a way to get information about a file BEFORE it is submitted to the server?
I am trying to make a upload progress bar from scratch WITHOUT THE PRON.C PHP FIX!!!
I found the file being uploaded in my NET://WINN01910//TEMP folder and I can outputs its file size in a popup with a one second refrehs, but this makes it so the USER needs to know the full file size to know if its anywehre near done. 

Is there a way to get the filesize from the clients side?  Possibly javascript that uses ajax to submit the values to the server before the file is sent but when it is selected?? Is there an easier way to do this and/or do you have any ajax example code of how it might work?

I also have another problem, Althoguh i can echo the filesize of what is recieved so far, I am just glob()ing the temp folder for: "php*.tmp" but is there a way to tell the tmp file so they don't see everyone's uploads?

View Replies !
How To - File Download Link File.php?file=something.zip
I'm trying to get/make a code that will make it possible to download from urls like "file.php?file=something.zip"

I've made one, but the problem is that I can't seem to get download manager working with it, and this is a big problem.

As you all probably know, with the download manager I can download the file in pieces and pause, start the download process. I use "Flashget" as my download manager. But if someone else knows one that would work with the url, let me know! Code:

View Replies !
File Download Problem - Change A Binary File Into A Text And Open It In A Browser
I have uploaded files to mysql (doc and xls) using the tutorial. The problem comes when I try to download. Again I followed instructions in the tutorial. When I click on the link to download the file, it formats it as text and sends it to the browser instead of seeing it as binary and offering me a download box. PHP Code:

<?
if(isset($_GET['id']))
{
    include 'includes/configdb.php'
    include 'includes/opendb.php'

    $id      = $_GET['id'];
    $query   = "SELECT name, type, size, content FROM upload WHERE id = '$id'";
    $result  = mysql_query($query) or die('Error, query failed');
    list($name, $type, $size, $content) = mysql_fetch_array($result);

    header("Content-Disposition: attachment; filename=$name");
    header("Content-length: $size"); ....

View Replies !
FIle Uploads: Empty _POST And _FILES Arrays When File Too Large
Uploading of files.. AFAIU from the manual, if a file is larger than the
size defined in the form or larger than upload_max_filesize in php.ini,
that _FILES['file']['error'] should hold an INT error code.

The file upload system is working fine if the file is smaller than the
defined size, but if it's larger, then both the _POST and _FILES arrays
are completely empty:

array(0) {
}

I can obviously check to see if $_FILES is set and contains elements,
but I was hoping for more specific error handling (reason as to why the
upload failed).

Has anyone else encountered this? Any info welcomed =)

View Replies !
Pdf File Download - There Was An Error Opening This Document. The File Is Damaged And Could Not Be Repaired
I have a small script that does a 'force download' of a pdf file - the problem is while it downloads the correct file, when I attempt to open the file once download it is corrupted - I get the following error in Adobe Acrobat:

"There was an error opening this document. The file is damaged and could not be repaired." Code:

View Replies !
Checking File Existence Through A List Of File Locations Gathered From An Array
I've been trying to wrote a code to check the existence of some files gathered from a field in mySql database.

And I am kind a stuck at a point where I get the file locations from the database but when it passes those locations to file exist it keeps telling me the file does not exist.

Only first file exists the other 2 file does not exist to test if the code was working or not. Code:

View Replies !
Check The File Mimetype To Validate If The Uploaded File Is In The Correct Format
I used PHP to upload some flash files. Here, I want to check the file mimetype to validate if the uploaded file is in the correct format. But, when I am uploading .flv (flash video file), PHP returns the mime-type as "application/octet-stream". :confused::confused:

According to my research, flv should return video/x-flv. Please anyone help me to get it working correctly?

View Replies !
File Upload - Nothing In The $_FILES Array After Selecting A File And Clicking Submit
I have to following HTML form to upload a file:

<form enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post">
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
<input name="userfile[]" type="file" />
<input type="submit" value="Submit" />
</form>

In my upload script I have:

if(is_uploaded_file($_FILES['userfile']['tmp_name']))
{
..do some code, etc.
}

There seems to be nothing in the $_FILES array after selecting a file and clicking submit. Any ideas why? All I get is this when trying to echo some of the $_FILES variables: File Array is Array bytes, i.e. the word Array is just being printed instead of the relevant info.

View Replies !
Upload A File And Have  Alink Of The File Displayed On The Webpage.
I want to upload a file and have  alink of the file displayed on the webpage.

q)Now I can do an image but is there anything else i need to know? eg fileupload and store on a dir and have a link to the file in  mysql. The file would be .txt ot .doc etc

q)Is there a way to upload  a lot of text eg 2000 words to a webpage and have the content displayed on a webpage ?

View Replies !
File Upload Fails - Different Files And Sizes And The Time Required Seems To Be Proportional To File Size,
I'm using IE5.5 as client and php4 on linux/apache as server. I've followed the examples for doing a file upload from a form and everything appears to work from the client side. In my script I see the following values:

UploadedFile=none
UploadedFile_name=test.html
UploadedFile_type=text/html
UploadedFile_size=0

I've tried different files and sizes and the time required seems to be proportional to file size, so I think there is a file being sent by the browser. The UploadedFile_name and type reflect the file being sent. Since I'm not getting a name for the temporary file in UploadedFile (if it was in fact created) and size = 0, I can't move or copy it. Code:

View Replies !
Email With File Attachements - How To Upload File To Server From Browser?
I have a PHP script that sends an email with attachment and works great when
provided the path to the file to send.

However this file needs to be on the same server as the script.

I want to develop a webpage where people can send attachments that are
stored on their local PC.

I know I can use the <input type="file" > HTML to generate a file box that
allows the user to navigate to a file on their PC and product a file path,
but how do I then upload this file onto file server to email out with my PHP
email script?

Is there an easy way to do this?

Or can I approach this problem from a completely different angle.

View Replies !

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