Hey jpadie!
Thanks for the help..but I'm an idiot. Just figured out the problem :)
I had some php code above the download script to determine which file to download and if the person had access to it. There was an undefined function error in that code that I wasn't seeing. However, put a die...
That's what I had had at first "application/force-download". Strange issue with that in Firefox in that firefox said it was a "JPEG Image" type in the Firefox downloader.
So I hardcoded it as "application/zip" and the type was correct in firefox.
However it never worked in either Firefox or...
Hi,
Been banging my head against the wall for a few hours now...hopefully someone can help me out.
I've got a zip file that works fine when I unzip it locally or when I do a direct download. But when I try to download the same exact file with a php download script I can't extract the zip...
By the way...in case you are wondering I'm using this array to set the value of the textarea by calling onchange on the dropdown.
Here's the function called onchange
function disp()
{
var ID= document.form2.var_template_ID.value;
document.form2.var_textarea.value = arrItems[ID];
return;
}
Hi,
I'm relatively new to js and have run into a problem...sure it's a simple solution so hopefully someone here can help. Basically, I'm just setting a textarea based on the value of a dropdown. I've got that part working, but I'm pulling the value of the dropdown from a mysql field...
Thanks jeff...these pages that need to be refreshed are in a php application, so being search engine friendly is not a consideration.
There are only a few variables...session variables will work, it's just that I already have the pages programmed with GET & POST vars. There aren't too many on...
Given you want to pass some variables around... maybe Javascript is the best way."
How is this done in javascript?
As far as the meta refresh..I've heard it's not supported by some browsers so I would prefer to use the javascript method.
Please let me know the code for the javascript...
Hi,
I have a few pages that I would like to be refreshed every 60 seconds. I found some javascript code online to do this, but it doesn't look like it's passing my post or get variables.
Is there a way I can force a refresh every 60 seconds and pass the variables also using javascript?
The...
Can any help out on the above 2 Q's?
Also, I was still getting errors on
C:\PHP\php.exe C:\mydir\autorun\statistics.php /Autorun_Pin=mypassword
But this worked with just a space before the variable? Which one is the correct syntax?
C:\PHP\php.exe C:\mydir\autorun\statistics.php...
Also,
What if I wanted to pass 2 variables?
C:\PHP\php.exe C:\mydir\autorun\statistics.php /Autorun_Pin=mypassword /foo=bar
??? Is this how I would do it?
So I'll have to parse argv for the variables I'm looking for?
$server_vars=$_SERVER['argv'];
So
//$server_vars[1]="/foo=bar&foo2=bar2";
if(strlen($server_vars[1])>0)
{
$vars=sub_str($server_vars[1], 1);
$vars=explode("&", $vars);
foreach($vars as $key => $val)
{...
Yes, was trying to pass a variable to the script. Now if I use REQUUEST will it work for this call and browser call?
$_REQUEST['Autorun_Pin'];
Or will I have to insert some other code to check for this?
Sorry, not familiar with
$_SERVER['argc'] and $_SERVER['argv']
Thanks!
I'm not too familiar with setting up php Windows Scheduler tasks. So hopefully someone here can help me. Trying to setup this task in Server2003/IIS6
This is what I have for the task...but I'm getting "No Input File Specified" everytime I run this. Any ideas? Is my syntax correct...
hey,
thanks for getting back to me. Actually, we figured out a solution to his problem.
$PHPFFL_WEB_ROOT is a variable stored in the config.php file. I was just echoing it there to verify where the header() was redirecting to. That wouldn't be in the program other than troubleshooting...
Hey,
I've got a php program that someone is trying to install on their server and there's a problem we weren't above to resolve with a couple hours of troubleshooting last night...was hoping you guys might have some ideas. It seems to me like it has something to do with PHPSESSID and/or...
Hi,
I'm pretty sure there's a php library that can be used to dynamically convert html to pdf, but I can't seem to find it.
I'm trying to dynamically convert a Word -> HTML -> PDF.
I've got the Word -> HTML part done using a COM object to open an instance of Word. I think save the file to...
Thanks anyways for the help...I solved my problem. In case anyone else happens to run into a similar issue I'll write a quick overview of what I did.
*****pseudocode*****
function get_rs(current_week)
{
rs_anyweek=query with current_week
Set get_rs = rs_anyweek
}
while(rs_week)
{...
Thanks Chopstik,
Sorry, don't think I explained too clearly...you are close.
Assume I already have those recordsets (rs_week1, rs_week2) and in your loop (rs_week) I'd like to access rs_week1, rs_week2 etc...based on which "week" is returned.
I'll just write pseudocode to make it easy to...
Hi,
Quick question. I usually work in php and I know I can do this in php no problem. But I'd like to do this page in asp so I am hoping someone can help me with my problem.
Here's an example of the problem:
I've got 16 recordsets named:
rs_week1
rs_week2
etc...
I am getting an integer...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.