Jump to content

cluce

Members
  • Posts

    354
  • Joined

  • Last visited

    Never

Posts posted by cluce

  1. OK, when I type in phpinfo(); it pulls up php 4.

     

    Does this guarantee me I am running php 4 or could I be running php 5 on the side??  Because the guy running the web server says his sysadmin shows 4 and 5 side by side but I pull php 4 from the domain.  I am starting  to think this guy dont know what he is doing and he has php 4 running but I am still learning this so I am not sure. can someone help me with this?

  2. I am trying to run some php code on our web hosting company's server but I keep getting blank pages. He says, "According to my sysadmin it's running both 4 and 5 side by side and will display the earlier version in the phpinfo() which is php 4."  All my php pages works on my loacl machine just not the company's web server.  The guy that runs the company says he dont know what esle to do in troubleshooting.  He says it is usually the syntax error that gives blank pages but I cant see that to be because it works fine locally.  Can someone give me any ideas?

     

    I keep getting a blank page when I try to run a simple databse connection string that should definiely redirect to the error page but it wont. Which also works on my local machine.

    <?php

    $mysqli = @mysqli_connect("server", "username", "password", "database") or die(header("Location: error.html"));

    ?>

     

    But when I use Dreamweaver to connect to the database it connects just this connection string seems to not work and other php code ddealing with the database.  But I did get an error to display when it was  ttime to execute the mysqli funtion.  "Fatal error: Call to undefined function: mysqli_real_escape_string() in /home/content/L/a/n/Langley/html/userlogin_e.php on line 12"

    Can someone tell me this error is happening becasue mysqli functions is disabled or the $mysqli connection string is not getting executed which it wasn't? Or it could be both reasons?

     

    Do you think he is actually running php 5 or mysqli functions and/or disabled? Is it possible to run 4 and 5 at the sametime?

  3. this may help

    <?php
    
    // Turn off all error reporting
    error_reporting(0);
    
    // Report simple running errors
    error_reporting(E_ERROR | E_WARNING | E_PARSE);
    
    // Reporting E_NOTICE can be good too (to report uninitialized
    // variables or catch variable name misspellings ...)
    error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
    
    // Report all errors except E_NOTICE
    // This is the default value set in php.ini
    error_reporting(E_ALL ^ E_NOTICE);
    
    // Report all PHP errors (bitwise 63 may be used in PHP 3)
    error_reporting(E_ALL);
    
    // Same as error_reporting(E_ALL);
    ini_set('error_reporting', E_ALL);
    
    ?> 
    

     

    not usre, what to do with that code

  4. no, because we have someone else hosting the site and I never done that before(turn error checking off).

    I am not asking if the code is correct that was posted previously.

     

    My problem is I keep getting theses blank pages when I host the php pages through someone elses web server but when I host it locally they run fine??? He says he has php 5 installed same as me. and he insist its my syntax which I doubt it.  But I think it may be my connection string? not sure I am troubleshooting that right now. Unless someone else here thinks it can be something else?

  5. Finally.........I have three of my websites somewhat working with the multiple directory way.  I have 4 websites. They all have an index page.

     

    One of them pulls up like a normal website. two of them list the contents/web files and you have to click on the index file to start previewing the website like you normally would.  But one website lists the contents and when you click on the index page the links within that index page dont work they seem to be broken.

     

    I am not sure why?

  6. yea, my netwrok admin says something like that we needed to point to each website.  well when I use directories for each website they all dont view properly, only my default website does. 

     

    The websites that are not the default shows each web file in a list through the browser like a file server and when I click on that web file the page does show but the links on that page get broken and does not show up at all when I click on them.

  7. I have a stand alone PC that is running apache and the computer name is osiweb.  I have this server on a local domain so we can test the websites via web on our internal network.

    I have virtual hosts set up on three websites but only my default/virtual website shows up.

    here are my settings:C:\Documents and Settings\Administrator.DOMAIN1>httpd -S

     

    VirtualHost configuration:

    Syntax OK

     

    C:\Documents and Settings\Administrator.DOMAIN1>httpd -S

    VirtualHost configuration:

    wildcard NameVirtualHosts and _default_ servers:

    *:80                  is a NameVirtualHost

            default server kilopak.com (C:/www/Apache22/conf/httpd.conf:193)

            port 80 namevhost kilopak.com (C:/www/Apache22/conf/httpd.conf:193)

            port 80 namevhost awi.com (C:/www/Apache22/conf/httpd.conf:212)

            port 80 namevhost reagan.com (C:/www/Apache22/conf/httpd.conf:231)

    Syntax OK

     

    C:\Documents and Settings\Administrator.DOMAIN1>

    ----------------------------------------------

    Can I access these websites like this?  If so, this is not working. only kilopak shows up which seems to be the default server.

     

    http://osiweb/www/vhosts/kilopak

    http://osiweb/www/vhosts/reagan

    http://osiweb/www/vhosts/awi

     

    Or do I need to give them local domain names so I can access them?

  8. well could you please tell me if this is right because I am getting a forbidden error when I try to access my localhost....

     

    ###*********************************************************

    ###*  Web-Developer Server Suite                          *

    ###*  http://sourceforge.net/projects/webdeveloper        *

    ###*  devside_net@users.sourceforge.net                    *

    ###*  v1.95-httpd22-ssl                                    *

    ###*********************************************************

     

     

    ThreadsPerChild 250

    MaxRequestsPerChild  0

     

    Listen 80

     

    ServerRoot "/www/Apache22"

    DocumentRoot "/www/webroot"

     

    ServerName localhost:80

    ServerAdmin admin@localhost

     

    ErrorLog logs/error.log

    LogLevel error

     

    ###

    # Note that the following LoadModule lines only represent the minimum 'Web-Developer' Suite configuration.

    #

    # Also note that some of the following LoadModule lines, which are commented out, are still loaded under...

    # conf\Suite-extra\*.conf

    # conf\extra\*.conf

    # ...configuration files -- for modular reasons.

    #

    # For example:

    # mod_deflate is loaded under conf\Suite-extra\mod_deflate_logio.conf and NOT under httpd.conf

    # status_module is loaded under conf\extra\httpd-info.conf and NOT under httpd.conf

    #

    # Check last part of httpd.conf for the Apache base and 'Web-Developer' *.conf files that are included.

    ###

     

    #LoadModule actions_module modules/mod_actions.so

    LoadModule alias_module modules/mod_alias.so

    #LoadModule asis_module modules/mod_asis.so

    #LoadModule auth_basic_module modules/mod_auth_basic.so

    #LoadModule auth_digest_module modules/mod_auth_digest.so

    #LoadModule authn_anon_module modules/mod_authn_anon.so

    #LoadModule authn_dbm_module modules/mod_authn_dbm.so

    #LoadModule authn_default_module modules/mod_authn_default.so

    #LoadModule authn_file_module modules/mod_authn_file.so

    #LoadModule authz_dbm_module modules/mod_authz_dbm.so

    #LoadModule authz_default_module modules/mod_authz_default.so

    #LoadModule authz_groupfile_module modules/mod_authz_groupfile.so

    LoadModule authz_host_module modules/mod_authz_host.so

    #LoadModule authz_user_module modules/mod_authz_user.so

    LoadModule autoindex_module modules/mod_autoindex.so

    #LoadModule cern_meta_module modules/mod_cern_meta.so

    #LoadModule cgi_module modules/mod_cgi.so

    #LoadModule dav_module modules/mod_dav.so

    #LoadModule dav_fs_module modules/mod_dav_fs.so

    #LoadModule deflate_module modules/mod_deflate.so

    LoadModule dir_module modules/mod_dir.so

    #LoadModule env_module modules/mod_env.so

    #LoadModule expires_module modules/mod_expires.so

    #LoadModule file_cache_module modules/mod_file_cache.so

    #LoadModule headers_module modules/mod_headers.so

    #LoadModule imagemap_module modules/mod_imagemap.so

    #LoadModule include_module modules/mod_include.so

    #LoadModule info_module modules/mod_info.so

    #LoadModule isapi_module modules/mod_isapi.so

    LoadModule log_config_module modules/mod_log_config.so

    LoadModule mime_module modules/mod_mime.so

    #LoadModule mime_magic_module modules/mod_mime_magic.so

    #LoadModule proxy_module modules/mod_proxy.so

    #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so

    #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so

    #LoadModule proxy_connect_module modules/mod_proxy_connect.so

    #LoadModule proxy_http_module modules/mod_proxy_http.so

    #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

    #LoadModule negotiation_module modules/mod_negotiation.so

    LoadModule rewrite_module modules/mod_rewrite.so

    LoadModule setenvif_module modules/mod_setenvif.so

    #LoadModule speling_module modules/mod_speling.so

    #LoadModule status_module modules/mod_status.so

    #LoadModule unique_id_module modules/mod_unique_id.so

    #LoadModule userdir_module modules/mod_userdir.so

    #LoadModule usertrack_module modules/mod_usertrack.so

    #LoadModule vhost_alias_module modules/mod_vhost_alias.so

    <IfDefine SSL>

    LoadModule ssl_module modules/mod_ssl.so

    </IfDefine>

     

     

    DefaultType text/plain

     

    <IfModule dir_module>

        DirectoryIndex index.html index.php index.aspx

    </IfModule>

     

    IndexIgnore .htaccess

    <FilesMatch "^\.ht">

        Order allow,deny

        Deny from all

    </FilesMatch>

     

    <Directory />

        Options FollowSymLinks

        AllowOverride None

        Order deny,allow

        Deny from all

        Satisfy all

    </Directory>

     

    <Directory "/www/webroot">

        Options Indexes FollowSymLinks

        AllowOverride None

        Order allow,deny

        Allow from all

    </Directory>

     

    <IfModule mime_module>

        TypesConfig conf/mime.types

        AddType application/x-compress .Z

        AddType application/x-gzip .gz .tgz

    </IfModule>

     

    # Apache base configuration

    #

    # The configuration files in the conf/extra/ directory can be

    # included to add extra features or to modify the default configuration of

    # the server.

     

    # Server-pool management (MPM specific)

    #Include conf/extra/httpd-mpm.conf

     

    # Multi-language error messages

    #Include conf/extra/httpd-multilang-errordoc.conf

     

    # Fancy directory listings

    Include conf/extra/httpd-autoindex.conf

     

    # Language settings

    Include conf/extra/httpd-languages.conf

     

    # User home directories

    #Include conf/extra/httpd-userdir.conf

     

    # Real-time info on requests and configuration

    #Include conf/extra/httpd-info.conf

     

    # Virtual hosts

    NameVirtualHost *:80

     

    <VirtualHost *:80>

      ServerName  host1.net

      ServerAlias www.host1.net

      DocumentRoot /www/vhosts/host1.net

      ErrorLog /www/Apache22/logs/error.log

     

            <Directory "/www/vhosts/host1.net">

                    Options All

                    AllowOverride All

                    order allow,deny

                    allow from all

     

          AddType text/html .php .phps

          AddHandler application/x-httpd-php .php

          AddHandler application/x-httpd-php-source .phps

     

            </Directory>

    </VirtualHost>

     

    <VirtualHost *:80>

      ServerName  host2.net

      ServerAlias www.host2.net

      DocumentRoot /www/vhosts/host2.net

      ErrorLog /www/Apache22/logs/error.log

     

            <Directory "/www/vhosts/host2.net">

                    Options All

                    AllowOverride All

                    order allow,deny

                    allow from all

     

          AddType text/html .php .phps

          AddHandler application/x-httpd-php .php

          AddHandler application/x-httpd-php-source .phps

     

            </Directory>

    </VirtualHost>

     

     

    # Local access to the Apache HTTP Server Manual

    Include conf/extra/httpd-manual.conf

     

    # Distributed authoring and versioning (WebDAV)

    #Include conf/extra/httpd-dav.conf

     

    # Various default settings

    Include conf/extra/httpd-default.conf

     

    # DeveloperSide.NET Server-Suite Configuration

    #

    # The configuration files in the conf/Suite-extra/ directory can be

    # included to add extra features or to modify the default configuration of

    # the server.

    #

    # The specifics are loaded under components.conf...

     

    Include conf/Suite-extra/components.conf

     

    # Security check -- if no php module is loaded, Apache should return 'permissions denied' on php(4,5) all URL requests

    <IfModule !php5_module>

    <IfModule !php4_module>

    <Location />

    <FilesMatch "\.php[45]?$">

    Order allow,deny

    Deny from all

    </FilesMatch>

    </Location>

    </IfModule>

    </IfModule>

     

    <IfModule ssl_module>

    Include conf/extra/httpd-ssl.conf

    SSLRandomSeed startup builtin

    SSLRandomSeed connect builtin

    </IfModule>

  9. yes, I just uploaded my first website to that folder with no problem and it is there but it doesnt view properly because it is not exactly in the root folder.

     

    So I do not know how to host one website but I am having a problem hosting more than one site.  Maybe you can help me? 

     

    Under my INDEX OF/ folder I have two folders one AWI and the other Reagan and I have two websites I would like to publish and host under each folder in the root but obviously that will not work;  So the problem is I only know how to publish one webiste and host it under the INDEX OF/ folder properly without the links getting broken by the root directory.

     

    Do I have to set up a virtual host to do this? If so do you know where there are some easy instructions on how to do this? I have tried to set up virtual hosts but had some  Forbidden errors?  Or is there another way?

     

    here is how my parent directory looks:

     

    AWI/  07-Aug-2007 08:26  -  //one website

    Reagan/  07-Aug-2007 08:23  -  //the other website.but I now  know this wont work

    apache_pb.gif  20-Nov-2004 16:16  2.3K

    apache_pb.png  20-Nov-2004 16:16  1.4K

    apache_pb22.gif  14-Dec-2005 12:25  2.4K

    apache_pb22.png  14-Dec-2005 12:25  1.5K

    apache_pb22_ani.gif  14-Dec-2005 12:25  2.2K

    aspsample/  06-Aug-2007 15:38  - 

    phpinfo.php  13-Dec-2006 23:37  21 

    webdeveloper.php  15-Dec-2006 12:12  83

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.