PHP Install On APACHE A Failure
I've been trying all day to configure PHP with Apache and it's been a nightmare I've tried every suggestion that is out there, including PHP's official manuals, and it's been nothing, but a failure. Code:
View Complete Forum Thread with Replies
Related Forum Messages:
Apache 1.3.27, PHP 4, SuSE 8.2 PRO - Form-Post Failure
I've recently done an upgrade installation to SuSE PRO 8.2 from same/8.0. The problem now is that I don't seem to be receiving data from forms to PHP-processing pages using either POST or GET for the form method. When I use GET, I see that the URL has been correctly formed with the variable name embedded in the URL along with the properly formed value: http://www.whatever.com/test.php?ma...Process+Request Then, in a sample php script: <? print "main: $main<BR/> "; if ($main == "") { print "main is blank<BR/> "; } ?> All I get in the output HTML on the test php script is the "main: " portion of the print command - the variable is reported as a null and tests positive for a null. The php function test() shows mod_php4 is loaded. I have performed/duplicated these results with the firewall on and the firewall off. Not that I think the firewall is an issue since the GET method shows, via the URL, that the variable information is passed across forms. But I did read somewhere that a firewall can impact the POST method so I turned it off to try it - no change in the results. Even tho the info is being passed (GET), it's not accessible by var-name access in the PHP script. All the php scripts on my server are so affected and were working prior to the upgrade. Any ideas? I also suspect this is why my squirrelmail installation stopped working.
View Replies !
PHP Install With Apache
I tried to install PHP 4.0.0 and then PHP-3.0.16 but failed both the times. I am working on i386/ Caldera Linux 2.2.14 My apache server (1.3.11) is working alright. I tried both the rpm and gz install packages. Here's what I did: # gunzip -c php-4.0.x.tar.gz | tar xf - # cd php-4.0.x #./configure --with-mysql-with-xml--with-apache=../apache-1.3.11--enable-track-vars how to install php4.0 or 3.0 to work with Apache and MySql?
View Replies !
Cannot Install Apache
I downloaded and installed apache_2.0.54-win32-x86-no_ssl.msi By running binApache -k install I receive th following message: <OS 10048>Normalerweise darf jede Socketadresse <Protokoll, Netzwerkadresse oder Anschluss> nur jeweils einmal verwendet werden. : make_sock could not bind to no listening sockets available, shutting down Unable to open logs
View Replies !
Install Apache
I have Apache HTTP Server 2.0.53 and PHP 4.3.10 programs and I want to install it on my computer so I can view .php pages offline (I don't have ADSL)? I tried myself but it doesn't work. Manual is complicated.
View Replies !
Apache Install
im using windows xp and im tryng to install apache/php/mysql when i installed apache i got this error: no installed service "apache2" What does this mean? i tried to look at the service but i dont see anything apache2?? This occured when i tried to start the apache. MY installation was very sucessfull and also what does this error means cannot make socket on 0.0.0.0 And forgive me for being so dumb in this apache /php after i installed the apache what are the things that i need to configure in httpd.conf to work in php?
View Replies !
Install Apache,MySQL And PHP
I may sound like a newbie, but I've started my new job and we are running on Windows XP where previously I was using LINUX , and now I want to install Apache,MySQL and PHP, not done this for a while. Been to php.net but confused as to which one to download, any helpers? Also where to install the other stuff.
View Replies !
Install Problem Apache Php
I have been struggling in my spare time configuring apache and php. I am running windows xp pro O/S. Here is the problem, if i install apache choosing the option "For all users on port 80 as a service, recommended", all works fine i can create php files and run them in my browsers but i have to be online, it won't work offline (I understand port 80 is the web, can i change it and how if yes?). Now if i install apache with the second option "only for the current user on port 8080, when started manually." in order to be doing what i really want which is to test my code offline on my PC, nothing will work.I get the console and don't know what to do with it.I am supposed to start apache manually but how?
View Replies !
Apache 2.2.3 PHP 4.4.5 Install Fails
I have Apache 2.2.3 installed and running on WinXP Pro SP2. I installed PHP 4.4.5 and added the following lines in httpd.conf PHPIniDir C:/PHP445/ LoadModule php4_module C:/PHP445/php4apache2.dll When I restarted Apache, i got this error: The Apache service reported the following error: Quote:
View Replies !
Apache Php Cgi Install Problem
I am trying to install PHP 5.0.4 on Apache 2.0.54 on WinXP Pro SP2 as a cgi binary. Apache2 directory is c:/Apache2 htdocs is c:/Apache2/htdocs php is installed in c:/php This contains php.ini, php-cgi.exe and php5ts.dll and other files required for the module method of php installation are also present, but i think additional files being present should not cause any problem Directory containing php scripts is C:/Apache2/htdocs/php My httpd.conf file has #---------------------------------------------------------- ScriptAlias /php/ "C:/Apache2/htdocs/php/" AddType application/x-httpd-php .php Action application/x-httpd-php "C:/php/php-cgi.exe" #ScriptAliasMatch ^/php(.*) C:/Apache2/htdocs/php$1 #---------------------------------------------------------- I get the error [Wed Feb 22 15:01:18 2006] [error] [client 127.0.0.1] C:/Apache2/htdocs/php/index.php is not executable; ensure interpreted scripts have "#!" first line [Wed Feb 22 15:01:18 2006] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/Apache2/htdocs/php/index.php in the Apache error log. What could be the error? I have no experience in CGI - I only know it stands for Common Gateway Interface - is there something needed to be read up first? I assume when run in CGI mode, whatever you put in your "cgi" diectory (here it is c:/Apache2/htdocs/php) it will be treated as a script. Because if I try http://localhost/php/file.htm it still gives the same error. Also, if I put #! on the first line I get [Wed Feb 22 15:33:45 2006] [error] [client 127.0.0.1] (OS 2)The system cannot find the file specified. : couldn't create child process: 720002: index.php [Wed Feb 22 15:33:45 2006] [error] [client 127.0.0.1] (OS 2)The system cannot find the file specified. : couldn't spawn child process: C:/Apache2/htdocs/php/index.php or [Wed Feb 22 15:36:18 2006] [error] [client 127.0.0.1] (OS 193)%1 is not a valid Win32 application. : couldn't create child process: 720193: index.php [Wed Feb 22 15:36:18 2006] [error] [client 127.0.0.1] (OS 193)%1 is not a valid Win32 application. : couldn't spawn child process: C:/Apache2/htdocs/php/index.php Any suggested readings? I've googled the web and Google Groups but not able to get anything newer than what i know so far.
View Replies !
Install PHP5, Apache 2.2 And IIS
The book that I have talks you through the setup of both Apache and PHP. I allready have IIS installed. when I go to localhost:8080 I get an unable to find page come up. I have checked the error log and I get the following; [Wed Jan 31 13:28:58 2007] [error] [client 127.0.0.1] File does not exist: C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/favicon.ico I have checked for the file on my system and it is indeed not there. But surely not having a favicon is not a reason to shut it down?? If so I have downoloaded the latest full packages today, so seems a little strange that it is missing.
View Replies !
Apache Install Error
Just downloaded apache 2.o and it wont run. The error I keep gettin is "DocumentRoot not a directory" I downloaded it as was told so not sure wat the problem is. It's probably something really easy.
View Replies !
Win98 Apache And Php Install Not Wokring.
I have installed the latest Apache and PHP binaries (the PHP CGI executable release - not the ISAPI). I then configured the httpd.conf sciprt using the install.txt file from the PHP install and 2 reference books as guides. This got me to the point where I BELIEVE the PHP interpretor is kicking in for .php scripts. But when I try and browse the following page : <? php_info() ?> I get the following error : Fatal error: Call to undefined function: php_info() in e:/apache/htdocs/phptest.php on line 1 Code:
View Replies !
Install PHP5 And Apache 2.2.2 (Linux)
I'm running into the same problem that no doubt many are. I'm installing PHP 5.1.4 and Apache 2.2.2 on the same server, but Apache won't recognize the PHP module, saying it's garbled. I understand from reading various bug reports that PHP will release this option come 5.2.0, but I want to know if anybody has PHP 5.1.4 and Apache 2.2.2 working under Linux yet.
View Replies !
Install Prob With Php/cgi/unix/apache... Any Help Is Appreciated...
I'm running php as a cgi on unix server with apache. I modified my httpd.conf file to have AddType application/x-httpd-php .php Action application/x-httpd-php /cgi-bin/php ScriptAlias /cgi-bin/ "/disk2/opt/eai/visnetwork/cgi-bin/ in cgi-bin I have a link called php which points to the php executable which resides in /usr/freeware/bin/. when I point to any php file I get this message: Warning: Unexpected character in input: '' (ASCII=16) state=1 in /usr/freeware/bin/php on line 217 Warning: Unexpected character in input: '' (ASCII=8) state=1 in /usr/freeware/bin/php on line 217 Warning: Unexpected character in input: '' (ASCII=20) state=1 in /usr/freeware/bin/php on line 217 Warning: Unexpected character in input: ' in /usr/freeware/bin/php on line 217 Warning: Unexpected character in input: ' in /usr/freeware/bin/php on line 217 Warning: Unexpected character in input: ' in /usr/freeware/bin/php on line 217 Parse error: parse error in /usr/freeware/bin/php on line 217 I think what is happening is that php is loading itself into the executable instead of the file that I'm linking to. I have verified this by running php on itself from the command line and I get the exact same error. I have a feeling I am overlooking some simple little detail. Can anyone help me out? I've been searching for days now and got a hot tip about this website.
View Replies !
Install Php4 And Php5 At The Same Time To Apache
Here is some note about installation together php4 and php5 on apache2. First you need is to edit with the help of hex editor php4apache2.dll (in my case, or php5apache2.dll) in php4 directory. You find "x-httpd-php" and replace with "x-httpd-plc" e.g. (I found 2 matches) Save your dll file and edit your apache config (httpd.conf) e.g. like: Code:
View Replies !
Install Php5 On A SuSE 9.3 Linux System Running Apache 2.0.49
I am trying to install php5 on a SuSE 9.3 Linux system running apache 2.0.49. For some reason,when attempting to restart the server,I get the following error: "Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2-prefork/libphp5.so into server: /usr/lib64/apache2-prefork/libphp5.so: undefined symbol: php_session_create_id" Does anyone know what is causing this error,or what I can do to correct it?
View Replies !
Can't Install PHP - Keep Getting "Invalid Directory" Error Regarding The Path To Apache Httpd.h
I've installed Apache 1.3.36 on my Redhat EL 3 machine. Now I'm trying to install PHP 5.1.4. I can not get the ./configure command to work. I keep getting this error: configure: error: Invalid Apache directory - unable to find httpd.h under /usr/local/apache/include So then I run this command: find / -name httpd.h which should find every file on my machine with the name "httpd.h". These are the results I get: /usr/local/apache/include/httpd.h /home/shelley/apache_1.3.36/src/include/httpd.h So I've rerun the ./configure command, using this first: --with-apache=/usr/local/apche/include and since that didn't work: --with-apache=/home/shelley/apache_1.3.36/src/include/httpd.h but I get the "Invalid directory" error with both addresses.
View Replies !
Can I Install Apache/MYSQL Side By Side With IIS?
However I also have a few sites I maintain that are Nix/PHP/MySQL. I would like to install PHP and MySQL on my windows machine. It would be ok if the PHP pages worked in the IIS environment such as http://localhost/index.php However I thinka better solution may be to install apache/php/mysql/phpmyadmin side by side with IIS. Would I be able to run it side by side with my IIS To get to IIS : http://localhost/index.asp To get to Apache: http://localapache/index.php I suppose I would like to use .htaccess locally to test mod_rewrites.
View Replies !
XML Includes In PHP Causes Failure.
First off, I'm posting this question for a friend that doesn't have access to the news groups. Problem: Using PHP as the base and has several PHP < includes > for various functions, all this by its self works just fine. Failure occurs on adding the XML include. Here's the wierd: If all the PHP includes are removed/commented out, the XML includes work fine. As soon as you replace/uncomment the PHP includes everything fails.
View Replies !
Odbc_exec Failure
I want to execte some query using odbc_exec, but i receive the following error both using odbc_exec or odbc_prepare. Connection is successful but the other functions will fail. PHP Version 4.3.11 with Microsoft-IIS/5.0. Warning: odbc_exec(): SQL error: [TCX][MyODBC]Using static cursors instead of requested type, SQL state 01S02 in SQLSetStmtOption in c:inetpubwwwrootsubetrafikconnect.php on line 8 Warning: odbc_prepare(): SQL error: [TCX][MyODBC]Using static cursors instead of requested type, SQL state 01S02 in SQLSetStmtOption in ...... Any help will be appreciated...
View Replies !
Session_destroy Failure
What would cause me to get this message: "Session object destruction failed..." Here's the code I'm using: session_name("Client_Area"); session_start(); session_destroy();
View Replies !
File_get_contents Failure
This may be a very easy question, and I may need to supply more information, but basically trying to read a file at a URL with file_get_contents() returns the error message: [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
View Replies !
PHP-SQL Connection Failure.
I had PHP installed on as CGI on a Window 2000 Server and connected to an MSSQL 2000 on another server. Both server were upgraded to Windows Server 2003 and problems developed that I could no longer run PHP any more. What I did next was to uninstall PHP and re-installed it as ISAPI, and make necessary configurations in Windows Server 2003. PHP seems to work fine now on my applications are having problem connection to MSSQL. One thing to note here is that I am using the old php.ini as it has been adapted to the application. The problem has to do with connection failure as shown below: Warning: mssql_pconnect(): Unable to connect to server: ServerName in c:InetpubwwwrootApplicationDiradodbdriversad odb-mssql.inc.php on line 327 Warning: error_log(c:/Application_temp/errors.log): failed to open stream: Permission denied in c:InetpubwwwrootApplicationDiradodbadodb-errorhandler.inc.php on line 68 Fatal error: mssql error: [: Connection error to server 'ServerName,SQLUserName,PWD,Database' with user ''] in PCONNECT(ServerName,SQLUserName,PWD,Database, '****', '****', ) in c:InetpubwwwrootApplicationDiradodbadodb-errorhandler.inc.php on line 75 Is there any changes I need to make in php.ini regarding ISAPI installation. I am working with PHP4
View Replies !
Reopening Url On Failure
I was trying to code a script whereby I use fscokopen to load a webpage into a string, then parse the code. However, because of occasional timeouts and failures, I was trying to add a method to attempt to try and reload the URL, say five times, before it gives up and moves on. I was playing around with 'do-while' strings, but can't seem to think my way round this one.
View Replies !
Php Session Failure
In a php session I have set up a user can input several hundred values on a form. I then show the user what he or she has entered on a preview page which he or she can then click ok or cancel. On clicking cancel the user should be backed using this code <td> <div align="center"> <input type="Submit" value = "Continue"> <input type="button" value="Cancel" onClick="history.back()"> </div> </td> I have used this before at it worked. However it now returns the user to the previous page (form entry), but now all the values are empty. Annoying if the user just made one simple mistake in the several hundred entries they wanted to correct. Any ideas what I am doing wrong? Any other tricks to acheive this?
View Replies !
UNION ALL Failure
I'm trying to use UNION ALL to match three SELECT queries. Each query has 8 column names but for some reason it fails when I use a particular group of column names. Namely the 7th column names in the queries below (ad_credit_amount in the first two SELECT queries and transaction_amount in the third SELECT query). In mysql these both of these columns are set as VARCHAR(200) and utf-8 unicode. They contain numbers that include decimal places. This is really confusing me because the other columns are working fine with similar data. $sql = "select * from ( ( ( SELECT ad_timestamp,ad_number,ad_location,ad_category_number,ad_title, ad_fee_amount, ad_credit_amount, ad_account_ballance FROM ads_live WHERE (.......
View Replies !
Strtotime Failure
I don't know how I should input date + time into a strtotime function (i'm a total noob) so I tested this: <? $d=01; $M=01; $y=1970; $h=01; $m=01; $s=01; echo "$d $M $y $h:$m:$s"; echo strtotime("$d $M $y $h:$m:$s"); ?> I get as echo strtotime '-1', wich means the strtotime has a failure. Can anybody explain me why? Or can anybody tell me how I can make a strtotime function that puts a timestamp in the database depending on the date and time inserted in a textbox? (one textbox or one textbox to insert the day, another to insert the year,...) I should be able to change a format like (for example) this : 01-02-1990 00:00:00 (midnight) into a timestamp. so dd-mm-yyyy hh:mm:ss (or something else just to make it work)I'm clueless.
View Replies !
Htaccess Failure
this looks weird. i'm trying for apache to parse php code in .html file; my .htaccess looks as follows: RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html Only these 2 lines of code. I have placed this .htaccess in the Sites folder (OS X). elow is the test.html which is also in the Sites folder. <?php echo "text"; ?> The error is my browser isn't displaying anything. Do you guys know where have I done wrong? I have chomed the .htaccess to 644. Do I need to tweak the httpd.config?
View Replies !
Database Failure
Is there a way to tell PHP, "Spend 5 seconds trying to reach the database, if you can't reach it, then load the file from the cached flat file.". I suspect the answer is no. I'm tempted to rewrite all my code in Java, just so I can have threads. And private methods. And private class properties. And real encapsulation. And interfaces. And abstract classes. And the ability to do anything.
View Replies !
Failure To Include
There are several php files my php code includes on a website using the include(function). all work except for one and this to me is the weirdest problem i've had so far in my php ciding experience. i tried renaming the file name of the include, tried rewriting the code in the files that does the inclusion. whatever i try it just does not work. if i include any other existing file IT WORKS. this one does not. here is the complete error: Warning: include(admin__global.php) [function.include]: failed to open stream: Invalid argument in [....]/admin_user_login.php on line 9 Warning: include() [function.include]: Failed opening 'admin__global.php' for inclusion (include_path='.:') in [....]/admin_user_login.php on line 9.
View Replies !
PHP Install Core Dump "make Install" PEAR On Solaris 9
php has been configured with the following two configure lines and core's during "make install" on the PEAR section. Is there something simple i'm missing? Any help would be appreciated. Environment: Solaris 9 php 5.2.1 GNU Make 3.81 gcc 4.1.1 ../configure --prefix=/opt/foo/php5 --enable-force-cgi-redirect -- enable-discard-path --enable-fastcgi --with-curl=/opt/foo --enable- sockets --with-zlib=/opt/foo --with-libxml-dir=/opt/foo --with- openssl=/opt/foo --with-nsapi=/opt/foo/sunone/current --enable-ftp -- with-ldap=/opt/foo/openldap --with-snmp=/opt/foo/net-snmp --enable- soap --with-xsl=/opt/foo --enable-libgcc --with-mysql=/opt/foo/mysql -- with-pear .....
View Replies !
Compiling/Installing PHP 5 Failure
I am trying to install PHP 5.0.4 on my Solaris 8 server. I have already installed mysql 4.1.11 and Apache 2.0.54. Both appear to work fine.. I'm running the ./configure with the following options: ../configure --with-apxs2=/opt/csw/apache2/bin/apxs --with- mysql=/usr/local/mysql --with-zlib-dir=/opt/csw/lib The script terminates with the the following error (from the config.log) ----------------- ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(client.o): wrong ELF class: ELFCLASS64 Undefined first referenced symbol in file mysql_error /var/tmp/ccmSQSM2.o ld: fatal: Symbol referencing errors. No output written to conftest collect2: ld returned 1 exit status configure: failed program was: #line 56843 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_error(); -----------------
View Replies !
Require_once('DB.php') Failure
I'm using a relatively simple php script to query a mySQL database and return values formatted to a variable string for interpretation by an embedded swf. There is one php file that handles the connection to the db (db_login.php) and one that handles the query (db_getProjects.php). If I call up the db_getProjects.php file it simply spits back a "&varibale=value..." blah blah string. The problem is that it works only half the time...it'll be fine for a while then simply stop working at all for a while...then start working again. When it isn't working it is failing to even get past the require_once('DB.php') statement - anything after that is never reached. What could I be doing that is causing the require_once('DB.php') to fail after working flawlessly for stretches? note: I am making sure to close the connection at the end of each DB call, so I don't think its due to open DB connections piling up, though that seems to be the only logical answer.
View Replies !
Image Upload Failure
I have a script that I've been messing with and I am having trouble setting a path for images, I'm getting an upload failed response on the webserver the path is www/OEM/admin/thumbs the php page is located in the "admin" folder Ive tried both paths, I think I'm messing something up. Code:
View Replies !
Header() Functino Failure
Why is the following error always displayed on my browswer when i use HEADER() function ? Warning: Cannot modify header information - headers already sent by (output started at C:wampwwwApplicationsGuest_Bookadmin.php:10) in C:wampwwwApplicationsasic.php on line 6
View Replies !
Http Connection Failure
I'm making a php page that syndicates blog links using rss feeds and magpie to parse them. All is well, but there is one feed (my own!) that doesn't work. I always get a "HTTP Error: connection failed (1)" error. I tried pulling the exact same file from another website and it worked, so the problem is just that one of my sites won't talk to the other one. It's not an anti-social site though, the feed has been syndicated on other sites in the past and works just fine in services like bloglines. Does anyone have any idea why I'm getting this error?
View Replies !
Exif Module Failure
I am absolutly exausted to figure this one out. I require the exif module to work under 5.0.1 but apache (2.0.48) just dies with a 1067 failure, I can't find any usable log info apart from the 1067. Anyone had the same problem?
View Replies !
Mysql Connect Failure
I have 2 scripts that both start with: <?php // Database Connection include 'connect.php' One of them is fine, but the other gives the error: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) Since the same file is being included both times, I can't see why it should fail in one case. Any ideas anyone?
View Replies !
Failure Of Smtp On Port 25
i have setup smtp on 2003 web edition, IIS. Port 25 is blocked and will not respond to any telnet open commands, so i have opened port 26 which now works fine... IS this any less secure than port 25?
View Replies !
Imap/pop3 Connection Failure
After searching thru old posts, php.net and other places, I cannot find the problem in this. I am trying use the web-based mail client from the devshed's article-http://www.devshed.com/Server_Side/...ail1/page1.html . The problem is the connection is not working. My server does not allow IMAP streams so the POP3 version used in this tutorial is a step in the right direction. Here's the problem line: (or the line that I am having problems w/ anyway)
View Replies !
Mail() Failure To Connect To Mailserver
I have wrote a simple mail script which was working fine - when I moved it to a different server I get the error: - Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:homeproject32sendmessage.php on line 219 code:
View Replies !
PHP Does Not Display Error Messages About The Failure
I have PHP 4.3.7 running on my client's Windows 2003 server. The same computer also runs SQL Server and I am trying to connect from PHP to a database. This fails, so I would like to track down the cause for this failure. However, PHP does not display error messages about the failure. I have tried these: php.ini: display_errors = On test.php: error_reporting(E_ALL); phpinfo() says error_reporting is set to 2047 (E_ALL). Yet I still do not get any errors. Even when I write arglebargle code, PHP still produces a blank HTML-page instead of syntax error message. Are there any other settings in addition to the two forementioned which may affect error reporting?
View Replies !
Echo Long Strings Failure
I have a situation where I am echoing a long string to a client (winsock receive). This string is an extraction from a database. I use a while loop to do this (code below) . Problem is the echo immediately following the last iteration of the while doesn't get seen by the client (sometimes). Code:
View Replies !
Recent Failure Generating PDF Via FPDF
In latter stages of development on a SugarCRM based Home Inspections app (deployed independently on numerous Tablet_XP/WAMP stacks) recent updates have left the system on one of the Tablets failing to Generate our 'contract.pdf' This is a feature that has otherwise been functional for 6 months plus. The curious thing is that a carbon copy of the app functions beautifully on an 'identical' sister Tablet. Caveats / Known Subject System Discrepancies: For two Toshiba tablets purchased, shipped and 'programmed' simultaneously. I am absolutely BLOWN AWAY by the quirky differences between the two. Subjects Run: 'Carbon Copies' of the Same wamp stack, Customized Sugar CRM app, Table Structure AND Data. (by import) Tablet A: Generates PDFs. Tablet B: Does Not. Tablet A: Arrived from Toshiba loaded with ADOBE Reader 7.0 - (NO recollection of having updated this) Tablet B: Arrived from Toshiba loaded with Acrobat Reader 5x In the course of recent and sizable updates to the CRM app, we also upgraded Tablet B: to ADOBE Reader 8 in order to gain Send/Mailto functionality not featured in Acrobat Reader 5x. As yet, I have little reason to suspect that this is the source of the problem, however after copying and pasting the entire wamp/www folder from Tablet A, to Tablet B and finding that PDF generation continues to fail... My suspicions grow. Still should ADOBE prove NOT to be the problem... What then? Drop and rebuild the server? DataBase? Data? As for the Data, it is largely the same (user tables/system settings notwithstanding) synchronized via SQLyog, however there may well be subtle differences in table structure (indexes... ?), but I don't believe the PDF scripts to be all THAT critically dependant on data from the database. Seems like -- worst case scenario -- a contract.pdf might get created with empty data fields (first_name, last_name, billing_address...) but the rest is just html_write from SavePDF.php. Otherwise, perhaps something to do with Apache? Ahh... The plot thickens -- as we learn that the Apache server on Tablet A: (the one that works) throws errors every time it is shut down from wamp admin utility, and the mysql server is comparatively DOG SLOW, WHILE the wamp stack on Tablet B: NEVER throws an error, and is comparatively LIGHTNING FAST
View Replies !
Failure When Uploading Large Files
<form enctype="multipart/form-data" action="./ProcessUpload.php" method="POST"> Upload this file: <input name="userfile" type="file" /> <input type="submit" value="Upload File" /> </form> That's the code I have for uploading files, it works fine for uploading small files but I'm unable to upload large ones. I'm trying to upload a 22MB PDF file but even after removing the MAX_FILE_SIZE limit(Which was high enough before) the file information still doesn't make it to the processupload page. I get the error that the variable 'userfile', from $_FILES['userfile']['name'] doesn't exist.
View Replies !
Handling File-read Failure
I'm kinda new with php, but I'm dying to know how to do the following. But can't seem to get the syntax right. Here's the pseudo code: Page Refresh = 30 secs --Read file-a.txt --file-a.txt not available? ----read file-b.txt ----file-b not available? ------do nothing... (page will refresh in 30 secs and repeat the process) The problem: ======================= I have a lot of visitors accessing my site and a lot of times the page becomes inaccessible if it refreshes at just the right (wrong) time while it's being read/written to. Instead of the page locking up or giving a server error, I want to be able to try to read a secondary file as a backup.
View Replies !
|