Jump to content

ternto333

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ternto333's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for the reply. I'm actually running a swish-e command, which should search my database for a given term. I'm running it on MacOSX Tiger.
  2. In the command exec($command, $return_array, $return_value), $return_array is empty and $return_value returns 5. I am unfamiliar with the return value of 5. I know if the command successfully executes, a return value of 0 is expected. I am running this command from the web and when I run the exact command from the command line, it works fine. Any thoughts?
  3. You are right, 5.2 is somehow interfering with 5.3. I installed 5.3 on a different machine that didn't have any other php installation, and it worked. I wonder what it could be...
  4. I never messed around with the MSI install, I just downloaded the ZIP package. Also, the ini file is correct. Since I'm running it from the command line, I specified it with the -c option. And in the phpinfo() it reports the correct ini file. Any more tips or avenues I could pursue?
  5. Thanks so much for all your input. Here is where I am right now: My ini file has php_mysql.dll and php_mysqli.dll enabled. My extension_dir is properly set, otherwise it spits out lots of errors. I copied libmysql.dll to the ext directory, (but since mysqlnd is apparently replacing this file, I don't know why this step would be necessary...) I restarted my webserver, tested it out and got the "undefined mysql_connect()" error. Then I rebooted my computer, and same thing. I really need a function (getopt) that 5.3 offers, otherwise I'd just stick with what works. I guess mysqldn is built into the php5.3 binary. In other words I don't have to worry about configuring it with a dll file at all? ???
  6. www.mysite/profile/user/?user_id=23345&name=user
  7. Thanks for the file, but the problem is probably not with the php.ini file. I have two installations of php: 5.2 and 5.3. I tested the same ini file for both versions of php, and php5.2 connected, php5.3 gave me the "Fatal error: Call to undefined function mysql_connect()". This signals to me that something is jacked up with the mysqlnd, since that seems to be the only difference...
  8. I am unfamiliar with the new mysqlnd - a replacement for libmysql - and haven't come across anything showing how to install this on windows. I have installed php 5.3, which uses by default mysqlnd. It doesn't recognize the function mysql_connect, which tells me that something is wrong with the mysql configuration. In the phpinfo() printout, the only mysql related stuff that it prints out is this: mysqlnd mysqlnd => enabled Version => mysqlnd 5.0.3-dev - 080129 - $Revision: 1.3.2.14 $ Client statistics => bytes_sent => 0 bytes_received => 0 packets_sent => 0 packets_received => 0 protocol_overhead_in => 0 protocol_overhead_out => 0 result_set_queries => 0 non_result_set_queries => 0 no_index_used => 0 bad_index_used => 0 buffered_sets => 0 unbuffered_sets => 0 ps_buffered_sets => 0 ps_unbuffered_sets => 0 flushed_normal_sets => 0 flushed_ps_sets => 0 ps_prepared_never_executed => 0 ps_prepared_once_executed => 0 rows_fetched_from_server_normal => 0 rows_fetched_from_server_ps => 0 rows_buffered_from_client_normal => 0 rows_buffered_from_client_ps => 0 rows_fetched_from_client_normal_buffered => 0 rows_fetched_from_client_normal_unbuffered => 0 rows_fetched_from_client_ps_buffered => 0 rows_fetched_from_client_ps_unbuffered => 0 rows_fetched_from_client_ps_cursor => 0 rows_skipped_normal => 0 rows_skipped_ps => 0 copy_on_write_saved => 0 copy_on_write_performed => 0 command_buffer_too_small => 0 connect_success => 0 connect_failure => 0 connection_reused => 0 reconnect => 0 pconnect_success => 0 active_connections => 0 active_persistent_connections => 0 explicit_close => 0 implicit_close => 0 disconnect_close => 0 in_middle_of_command_close => 0 explicit_free_result => 0 implicit_free_result => 0 explicit_stmt_close => 0 implicit_stmt_close => 0 mem_emalloc_count => 0 mem_emalloc_ammount => 0 mem_ecalloc_count => 0 mem_ecalloc_ammount => 0 mem_erealloc_count => 0 mem_erealloc_ammount => 0 mem_efree_count => 0 mem_malloc_count => 0 mem_malloc_ammount => 0 mem_calloc_count => 0 mem_calloc_ammount => 0 mem_realloc_calloc => 0 mem_realloc_ammount => 0 mem_free_count => 0 Collecting statistics => Yes Collecting memory statistics => No Command buffer size => 2048 Read buffer size => 32768 ???
  9. i have it set up like this, only imagine that one of your actions, "thisfile.php" goes to a page which allows a user to download a csv file. it works perfectly, but after it is done the header information is seemingly unchanged and in order to change buttons, you need to press the F5 key to refresh all the variables.
  10. I didn't mean that the form had action="javascriptFunction" sorry, it has onSubmit="return javascriptFunciton();" It may not be the best way of doing it, but it works
  11. Yes, each button has an onclick="document.pressed=this.value" and the form has action = javascriptFunction() which is quoted above
  12. I have multiple buttons in one form. One of the actions is to another PHP page which generates a CSV file, and uses headers to let the user download that file. The problem I'm having is that after pressing this button, if the user then wants to press another button, it performs the previous button's action. My javascript looks like this: if(document.pressed == 'peptide_csv') { document.summary_form.action ="peptide_view_csv.php"; } else if(document.pressed == 'reset_peptide') { document.summary_form.action ="peptide_view.php"; } In this case, if the user presses the peptide_csv button, it redirects him to peptide_view_csv.php. The code for this peptide_view_csv.php page is simple,it generates a CSV file using a header. header('Content-type: text/plain\n'); header('Content-Disposition: attachment; filename="peptide.csv"'); printf("everything i print out"); The problem is that after the user presses this button, but then wants to do something else on peptide_view.php, it automatically loads up the csv and displays that for the user to download. I'm pretty sure this is happening because the header information hasn't changed since the time he first pressed the peptide_csv button, but I don't know how to change this. When the user hits refresh on the page, it doesn't do this anymore, but is there a way to build it right into the page so that you can automatically perform other actions after you've pressed the peptide_csv button?
  13. i have a php script that creates a file. this part works fine - it always writes 100% of the data to this file. the next part of this script is letting the user download that file. when i run it on my localhost, everything is fine and 100% of the file is there. however, when i run it on a different server, for some reason when you download the file, it always gets cut off at 2000000 bytes. so the file that gets downloaded can be much smaller than the original file. is there something i need to change in the php.ini file or any other suggestions? this is my download.php code: $file=$path.$_GET['file']; header("Content-type: application/force-download"); header("Content-Transfer-Encoding: Binary"); header("Content-length: ".filesize($file)); header("Content-disposition: attachment; filename =\"".basename($file)."\""); readfile("$file");
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.