Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by RLyra

  1. RLyra

    Fake name for a file

    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...
  2. RLyra

    custom urls

    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...
  3. RLyra

    Configuring error page redirect

    I found 1 thing. ErrorDocument aceppt a text as a argument. That why you can't use ("). If it has ", this is a text, not a path to a file.
  4. RLyra

    Configuring error page redirect

    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...
  5. RLyra

    Fake name for a file

    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...
  6. RLyra

    Configuring error page redirect

    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...
  7. RLyra

    Fake name for a file

    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...
  8. RLyra

    How to redirect ?

    Ok, the function xbody sends &quot;<html><body>&quot;. 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...
  9. RLyra

    How to redirect ?

    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...
  10. RLyra

    How to redirect ?

    I DIDN'T DO THAT!!! This forum, I don't know why, is writting that &quot;;&quot;. I am sure that the code I copy DIDN'T have any &quot;;&quot;. 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...
  11. RLyra

    How to redirect ?

    I don't know what had happend, but that &quot;;&quot; 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 =...
  12. RLyra

    How to redirect ?

    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.'...
  13. RLyra

    How to redirect ?

    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...
  14. RLyra

    How to redirect ?

    Well, it didn't work. &quot;Warning: Cannot modify header information - headers already sent by ...&quot; 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.
  15. RLyra

    How to redirect ?

    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...

Part and Inventory Search

Back
Top