This is realy not the point.
1 - when the user try to download ("save source") he file will be saved with a wrong name.
2 - when the user try to open the file (as he could do with a PDF, or a DOC, JPG< etc) whe name don't have this extension so, it's not work.
This is not a HTML problem, it...
First, you catch the error. This is in Apache. With this line:
ErrorDocument 404 /erro.php
In htttpd.conf, the apache configuration file.
With this, when someone try to access a page what don’t exist, this page will be processed.
Then you catch the original URL. This is a PHO code.
<?php...
Believe or not.
In the first problem, my problem was this (“).
In DocumentRoot I write the path with “, because the path have spaces. I thought that I had to do the same in ErrorDocument, but no.
When I just wrote the same path without (“), it’s works.
Look the two lines:
DocumentRoot...
I am using PHP and the upload is Ok. My problem is after that.
I'm sure that I will have many docs with the same name. I will accept versions of the same file, so I will have the same name many times.
My problem is how to hide this from the final user. I don’t want to show a link to a file...
Can you help me with the (almost) same problem??
I read all the previews messages but it didn’t work here. I have Apache in a Win2000 server. In fact, the server is my desktop.
I hope you understand my ad English and I are thanked for your attention. (Is this sentence correct? MS Word is...
I need to upload many files, and some could have the same name. I will save the originals names in a database and save the files with sequential numbers at names. This is ok.
example: "Report July.Doc" became just "1234".
Ok, but I need to find a way to make a link that point to "1234" but...
Ok, the function xbody sends "<html><body>".
But if I remove it, or if I put it after all, after the HEADER function, I got anather erro.
I get an erro when I try to get values from a FORM:
$kco_tema = $http_GET_VARS['f_kco_tema'];
The message is:
Notice: Undefined index...
Ok, here is the code again. Without problems I hope.
<?php
include ('lib_function.php');
xBody('Inicio', '');
$kco_tema = $HTTP_GET_VARS['f_kco_tema'];
$no_tema = $HTTP_GET_VARS['f_no_tema'];
$de_tema = $HTTP_GET_VARS['f_de_tema'];
if (xSQL())
{
if ($kco_tema == 0)
{
$sql='Insert...
I DIDN'T DO THAT!!!
This forum, I don't know why, is writting that ";". I am sure that the code I copy DIDN'T have any ";". I still have it on the notepad (I am using the Zend Studio, I just copy it to the note pad).
Well, I think that the forum have some problem with URL...
I don't know what had happend, but that ";" was not in the original code. I know that it is in my mail, but it is not in the original code, I am sure.
Again, to avoid other problems, this is my code:
<?php
include ('lib_function.php');
xBody('Inicio', '');
$kco_tema =...
That is the code:
<?php
include ('lib_function.php');
xBody('Inicio', '');
$kco_tema = $HTTP_GET_VARS['f_kco_tema'];
$no_tema = $HTTP_GET_VARS['f_no_tema'];
$de_tema = $HTTP_GET_VARS['f_de_tema'];
if (xSQL())
{
if ($kco_tema == 0)
{
$sql='Insert into temas values ('.$kco_tema.'...
Well. I still have sone problems.
I really don't need it anymore, I have other solutions. But I want to understand what is going on.
$kco_tema = $HTTP_GET_VARS['f_kco_tema'];
This is the line which is sending information about the header. So when I get a variable from a form, I cannot...
Well, it didn't work.
"Warning: Cannot modify header information - headers already sent by ..."
Are you sure that it re-direct the page ?? What I am trying to do is to execute a pge, but before end it, redirect to anathor page and show just this second one.
How can I redirect to a new page in PHP ? I am new on it.
The reason that I need (want) it is simple. I like to split pages. In one I put the code to insert and update data, other hand form and a last one hamd a list. Maybe not so smart, but make things clear.
But I need to redirect. How I...
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.