<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1016544" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1016544</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/problems-require-include#comment-1096115</link>
    <description> &lt;p&gt;i wish to use the vBulletin login to verify my identity in the exam script..&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.certifyexpress.com/exam/bea/1.php&quot; class=&quot;bb-url&quot;&gt;http://www.certifyexpress.com/exam/bea/1.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;the problem i&#039;m facing now is, after i&#039;ve login, the page won&#039;t redirect back to the page where i can choose exam...instead..i was brought to another page. how am i suppose to solve that??&lt;/p&gt;
&lt;p&gt;i belief that vbulletin use these few lines to redirect pages after login. &lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;!=\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;\&quot; and &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;!=\&quot;index.php\&quot; and &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_REFERER&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;) {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (strpos(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;,\&quot;?\&quot;)&amp;gt;0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.=\&quot;&amp;amp;s=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$session&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;dbsessionhash&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;.=\&quot;?s=&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$session&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;dbsessionhash&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //header(\&quot;Location: &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = str_replace(\&quot;\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;, \&quot;\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; eval(\&quot;standardredirect(\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;.gettemplate(\&quot;redirect_login\&quot;).\&quot;\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;);&lt;br /&gt;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$bbuserinfo&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;=getuserinfo(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$userid&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; eval(\&quot;standardredirect(\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;.gettemplate(\&quot;redirect_login\&quot;).\&quot;\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,\\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_REFERER&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\\&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);\&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;for my part, what i need to add in order to make it redirect to the exam page after login??&lt;/p&gt;
 </description>
     <pubDate>Thu, 13 Dec 2001 06:12:17 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1096115 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/problems-require-include#comment-1096112</link>
    <description> &lt;p&gt;require_once() does simply that.  It will include the file one time, and any additional calls to include that file will be ignored.&lt;br /&gt;
This is great for lib files that contain function definitions, so you don&#039;t get errors saying that you cannot redeclare a function.&lt;/p&gt;
&lt;p&gt;I think your path to global.php is incorrect (from the little diagram you showed me).  Try this:&lt;br /&gt;
require (&quot;../../forum/global.php&quot;);&lt;/p&gt;
&lt;p&gt;IMHO, require (&quot;../forum/global.php&quot;) is undesired.  I prefer to alter my &lt;a href=&quot;http://www.php.net/manual/en/configuration.php#ini.include-path&quot; class=&quot;bb-url&quot;&gt;include_path&lt;/a&gt; in my .htaccess.&lt;br /&gt;
Then I can just say require (&quot;global.php&quot;), and it will always work no matter where I call it from.&lt;br /&gt;
You would add a line like this to your .htaccess file:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;php_value include_path .:/usr/local/plesk/apache/vhosts/certifyexpress.com/httpdocs/forum&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 13 Dec 2001 05:32:44 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1096112 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/problems-require-include#comment-1096090</link>
    <description> &lt;p&gt;why do i need all this for?? well, pls go to this page...then u will understand what am i trying to do.. &lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.certifyexpress.com/exam/bea/1.php&quot; class=&quot;bb-url&quot;&gt;http://www.certifyexpress.com/exam/bea/1.php&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;if i&#039;m login and i choose one of the exam and click:&#039;take the quiz&#039;, then i will be brought to those questions....but if i&#039;m not login..i will prompt something (like vbuletin) to let me login..&lt;/p&gt;
&lt;p&gt;my problem is...i got that login page prompt..but with errors..and when i login, it goes to page not found....&lt;/p&gt;
 </description>
     <pubDate>Thu, 13 Dec 2001 02:04:28 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1096090 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/problems-require-include#comment-1096039</link>
    <description> &lt;p&gt;Your declaring that function somewhere.  Check all your included files to make sure that none of them have any function definitions for it.&lt;/p&gt;
&lt;p&gt;You may also want to think about using &lt;a href=&quot;http://www.php.net/manual/en/function.require-once.php&quot; class=&quot;bb-url&quot;&gt;require_once()&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 12 Dec 2001 17:53:10 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1096039 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
