473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

can't find all the includes after upgrading to PHP5

cassbiz
202 100+
the below script worked without any errors before I upgraded to php5

Expand|Select|Wrap|Line Numbers
  1. <?php include "cust_logged_in.php"; ?>
  2.  
  3.         <script type="text/javascript">
  4.                 <!--
  5.                 function cFormular()
  6.                 {
  7.                         if(document.daten.nname.value == "")
  8.                         {
  9.                                 alert("<? echo $t_forms['name_req'] ?>");
  10.                                 document.daten.nname.focus();
  11.                                 return false;
  12.                         }
  13.                         if(document.daten.strasse.value == "")
  14.                         {
  15.                                 alert("<? echo $t_forms['adress_req'] ?>");
  16.                                 document.daten.strasse.focus();
  17.                                 return false;
  18.                         }
  19.                         if(document.daten.tel.value == "")
  20.                         {
  21.                                 alert("<? echo $t_forms['tel_req'] ?>");
  22.                                 document.daten.tel.focus();
  23.                                 return false;
  24.                         }
  25.                         var Wert=document.daten.preis.value;
  26.                         Wert = Wert.replace(/,/,".");
  27.                         if(isNaN(Wert) == true)
  28.                         {
  29.                          alert(Wert + " <? echo $t_forms['no_number'] ?>");
  30.                          document.daten.preis.focus();
  31.                          return false;
  32.                         }
  33.                 }
  34.  
  35.  
  36.                 //-->
  37.         </script>
  38. <?php
  39.         include $include_path."cust_cc_kopf.php";
  40.         include $include_path."links.php";
  41. /*        include $include_path."clsencrypt.php"; */
  42.  
  43. $andatum = $_GET['andatum'];
  44. $abdatum = $_GET['abdatum'];
  45. $zimmer = $_GET['zimmer'];
  46. $stadt = $_GET['stadt'];
  47. $plz = $_GET['plz'];
  48. $ort = $_GET['ort'];
  49.  
  50.  
  51. If ($knr!="")
  52.  {
  53.         $daten = suche('knr', $knr);
  54.         $i=0;
  55.         $daten[$i+1][0]= $row['knr'];
  56.         $anrede= $daten[$i+1][1];
  57.         $titel =$daten[$i+1][2];
  58.         $nname=$daten[$i+1][3];
  59.         $vname=$daten[$i+1][4];
  60.         $strasse= $daten[$i+1][5];
  61.         $plz=$daten[$i+1][6];
  62.         $ort=$daten[$i+1][7];
  63.         $stadt=$daten[$i+1][8];
  64.         $land=$daten[$i+1][9];
  65.         $tel=$daten[$i+1][10];
  66.         $fax=$daten[$i+1][11];
  67.         $mail=$daten[$i+1][12];
  68.         $partner=$daten[$i+1][13];
  69.         $sprache=$daten[$i+1][14];
  70.         $stamm=$daten[$i+1][15];
  71.         $bes=$daten[$i+1][16];
  72.  } 
  73. ?>
  74.  
  75. <table width="80%" border="0" align="center" >
  76. <!-- ###########     Guest Information     ###################-->
  77. <?php
  78. cust_startover();
  79. if ($knr!="")
  80. {
  81.         echo '<form name="daten" action="cust_reserviert.php?alter_kunde=ja" method="post" onSubmit="return cFormular()">';
  82.         $schreiben="readonly";
  83.         include $include_path."cust_form_gdaten.php"; 
  84.  
  85.         echo '</table><table border="0" cellspacing="0" cellpadding="0" align="center" width="80%">';
  86.         include $include_path."cust_form_zdaten.php";
  87. }else{
  88.         if ($eingabe==1)
  89.         {
  90.                 echo '<form name="daten" action="cust_reserviert.php" method="post" onSubmit="return cFormular()">';
  91.                 include $include_path."cust_form_gdaten.php";
  92.                 echo '</table><table border="0" cellspacing="0" cellpadding="0" align="center" width="80%">';
  93.                 include $include_path."cust_form_zdaten.php";
  94.         }
  95. }
  96. if ($eingabe==1 OR $knr!="")
  97. {
  98.         echo '
  99.         <tr id="tr1">
  100.                 <td colspan="2" align="center">By completing this form, you are aware that we will contact you
  101. either via telephone or email to confirm your reservation and take a deposit to hold your desired '.$t_book['room'].'.
  102.                 </td>
  103.         </tr>
  104.         <tr>
  105.                 <td colspan="2" align ="center">
  106.                         <input type="submit" value="'.$t_forms['book'].'">
  107.                 </td>
  108.         </tr>
  109.                 <input type="hidden" value="'.$knr.'" name="knr">
  110.                 </form>';
  111.  
  112.  
  113. }
  114. if ($eingabe!=1)
  115. {
  116. echo'</table><div align="center">
  117. <form action="details.php" method="post">
  118.                         <input type="input" size="10" maxlenth="10" name="resnr">
  119.                         <input type="submit" value="'.$t_forms['cust_searchres'].'">
  120.                 </form></div>
  121.                 </body>
  122. </html>'
  123. ;}
  124. ?>
  125.  
I still am not getting any errors in the error log but the output is not displaying. It finds the beginning includes ie the login and header but the rest it does not find.

Thanks in advance
Feb 21 '07 #1
7 1596
ronverdonk
4,258 Expert 4TB
Has you $include_path variable been set up correctly?

Ronald :cool:
Feb 22 '07 #2
cassbiz
202 100+
yes.

The header is in the same include dir as the rest of the forms that are suppose to display

cust_form_gdaten.php and cust_form_zdaten.php are not showing.

Also in the one section below is it written correctly? Is it necessary to put a single ' quote in the brackets?

Expand|Select|Wrap|Line Numbers
  1.  ['$i+1']['1']
  2.  
Expand|Select|Wrap|Line Numbers
  1.  
  2. If ($knr!="")
  3.  {
  4.         $daten = suche('knr', $knr);
  5.         $i=0;
  6.         $daten[$i+1][0]= $row['knr'];
  7.         $anrede= $daten[$i+1][1];
  8.         $titel =$daten[$i+1][2];
  9.         $nname=$daten[$i+1][3];
  10.         $vname=$daten[$i+1][4];
  11.         $strasse= $daten[$i+1][5];
  12.         $plz=$daten[$i+1][6];
  13.         $ort=$daten[$i+1][7];
  14.         $stadt=$daten[$i+1][8];
  15.         $land=$daten[$i+1][9];
  16.         $tel=$daten[$i+1][10];
  17.         $fax=$daten[$i+1][11];
  18.         $mail=$daten[$i+1][12];
  19.         $partner=$daten[$i+1][13];
  20.         $sprache=$daten[$i+1][14];
  21.         $stamm=$daten[$i+1][15];
  22.         $bes=$daten[$i+1][16];
  23.  }
  24.  


I am thinking that it may have to do with the register_globals.

I have double and triple checked that all $_GET and $_POST are just that so that the variables would cross from one page to another.

Thanks for your help.
Feb 22 '07 #3
cassbiz
202 100+
Oh, one more thing. The script is not outputting any errors in /var/log/php/error_log so the logs have not been much help.
Feb 22 '07 #4
ronverdonk
4,258 Expert 4TB
The arithmatic will not be executed:
Expand|Select|Wrap|Line Numbers
  1. $daten[$i+1]
You'd better increase $i before using it this way, so better is to address $daten as
[php]$i++;
$daten[$i][0]= $row['knr'];
.. etc...
[/php]

Ronald :cool:
Feb 22 '07 #5
cassbiz
202 100+
I changed the $i value and don't know if it is working or not.

The variables that I am trying to pass to the form are not working.

the input string that is going to the above form looks like this.

Expand|Select|Wrap|Line Numbers
  1. http://.../cust_cdata.php?andatum=1172250000&abdatum=1172293200&plz=97526&ort=Grants%20Pass&stadt=OR&zimmer=3&eingabe=1
  2.  
Feb 22 '07 #6
Motoma
3,237 Expert 2GB
I changed the $i value and don't know if it is working or not.

The variables that I am trying to pass to the form are not working.

the input string that is going to the above form looks like this.

Expand|Select|Wrap|Line Numbers
  1. http://.../cust_cdata.php?andatum=1172250000&abdatum=1172293200&plz=97526&ort=Grants%20Pass&stadt=OR&zimmer=3&eingabe=1
  2.  
What warning level are you running at? Are you getting any error messages?
When you say your variables aren't working, do you mean the ones from $_GET?
Feb 23 '07 #7
cassbiz
202 100+
bringing up an old subject again.

I am not receiving any output or any errors on the above. It is like it just vanished.

Is there a way to force an output from shell?

All the paths have been checked and when it runs in php4 it works flawless. In php5 I am befuddled.
Mar 6 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Rob Ristroph | last post by:
I have tried out PHP 5 for the first time (with assistance from this group -- thanks!). The people I was working with have a site that uses lots of php objects. They are having problems with...
0
by: Jesus | last post by:
I downloaded and installed EasyPHP some time ago. Now I would like to upgrade to PHP5, but have no idea on how to do it. Anyone mind sharing this info?
0
by: Berislav Lopac | last post by:
Has anyone thought of developing a library aimed for PHP4 which would give the kind of functionality that PHP5 has when it comes to working with XML...
2
by: Joe | last post by:
After i have succesfully installed php5 on my installation (win2000,apache1.3.31) I get the following error when i try to connect to my database: DB Error: extension not found any ideas whats...
2
by: John Murtari | last post by:
Folks, We are slow in rolling out PHP 5 to our users because it won't live as a module with PHP 4 in Apache 1.3.x/Linux. I have seen many workaround like running it as CGI or using a reverse...
0
by: Unknown User | last post by:
Yesterday I did a fresh install of Apache 2, PHP5 as CGI and MySQL 4 on WinXP. Apache and PHP work fine, MySQL works fine in the command line, but I can't have PHP to find the MySQL extensions. ...
9
by: Martin Plechsmid | last post by:
Hello. I've got IIS5, both at work and in my home, and I use JScript as the primary scripting language in ASP. When a function is defined in an included file, say inc_dosth.asp: <SCRIPT...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
3
by: jmark | last post by:
I am currently running php 4.4.7 in windows xp and apache 2. If I enter php in command line. I get the following error The application has failed to start because php5ts.dll was not found" I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.