[PHP-DB] PHP script execution - display issue

2003-03-12 Thread Petre NICOARA
Hello,
I have a display problem with one of my sites.
Because there is an big amount of information in the pages, which is
extracted from database, using IE browser I see only the background of
the site, and then, after a time, the whole page. 
My client has recently requested to make something to improve the site
speed and display time. 
So because all the site is done using the classes, and the information
is extracted through them, I reduced the instruction numbers, and I
compacted as much as I could the classes. But I still have the display
problem using IE browser : I see the background, and just after that I
see the whole site.
I mention that the classes are included, and the class function is
called through $this_class->function($parameters); Not all the classes
used in the page are called In the beginning; and another mention is
that the site pages contains 4 sections. Top, left, middle, & right.
 
My question is:
Is there a way to display sequentially the site. After the background,
to display the first section (top), then left part, middle part and
right part after that ?
Again, the site loads like this : the background, then the whole page.
This doesn't matter if I use dial-up or T1. 
My client saw, for example, that cnn or yahoo site loads sequentially.
Knowing that yahoo is done in php, I'm wondering how they did it.
 
Thanks
Petre Nicoara
 


[PHP-DB] Screen size, browser on php

2003-02-27 Thread Petre NICOARA
Hi
I have a small problem.
I'm working on a traffic and banner xchange application, and my client
asked me to retrieve as info, for each banner that is displayed or for
each traffic entry the user's screen size, operating system, browser
type and original language. 
I've found this stuff into a javascript, but I need to be able to
retrieve it through php, only in one file. The javascript is doing this
through 2 file, one get the info, and passes it to a form in the other.
So, my dilemma is if
Is there a way of getting from php the screen size? (The rest are
revealed through the server variable user
agent($HTTP_SERVER_VARS['HTTP_USER_AGENT']) &
language-($HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE']))
Or, do you have knowledge of some script like that that's on the web ?
 
Thank you for your help.
Petre Nicoara


[PHP-DB] image size

2002-12-27 Thread Petre NICOARA
Hi guys,
Do you know any methods or code for finding out the images width &
height either with php or javascript
I have a little trouble manipulating the big images. Also, I don't keep
the images in the database, are files on a server.

Thanks,
Petre NICOARA



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Cannot add header information error

2002-12-25 Thread Petre NICOARA
Hi guys
I have this error when I tried to use a sign-up form.
The thing is that I use some classes for database interaction, and I
respond by 
return "Values"; 
to the functions.
Also, in line 18 in  page.php I have this 
Header("Location: page1.php?string=value");
The Line 363 marks the class end ?>

Warning: Cannot add header information - headers already sent by (output
started at classes/member_class.php:363) in F:\Web Applications\My
work\site\page.php on line 18

Could someone explain what is happening, the code is clear.

Thanks



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Please Help

2002-12-16 Thread Petre NICOARA
Hi, guys
I have a small and delicate problem. This I think, involves using the
rewriterule from apache server, but I don't know where to post it Here's
my situation : 
Until recently, my client had his site on a stack server. In this way,
all his pages where addressed by :
http://www.sitename.com/sitename/page.php
also, google and all other search engines indexed his pages regarding
his old location now, the problem is that, he's moved from the last
host, and now he have pages in the root folder, not on a stack,
addressed by http://www.sitename.com/pagename.extension
for the php pages, I made a redirect in a sitename folder, in order to
get, by redirect, to the new location. Now, some new facts on revealed
that google, which is his reference tool regarding web placing, google
doesn't like long addresses and also doesn't like php parameters. So,
here's my new job I have to find a way of transforming the requests (
http://www.sitename.com/sitename/page.extension?parameters ) into new
web addresses (
http://www.sitename.com/parameter1/value/parameter2/value/phppagename.ht

ml )
So, I have to modify .htaccess file, to use a RewirteRule
And, here's the content of .htaccess file 
 
ErrorDocument 404 http://www.sitename.com/index.php
 
RewriteEngine on
RewriteBase /
RewriteRule /sitename/([a-z0-9]+).htm$ /$1.php [R] ( these are for the
1st problem)
 
Some people recommended using rewrite module, and alias, but I have no
idea how this is done. When I use the code above the only think I see
when I click on a search result link is :
 
Forbidden
You don't have permission to access.../sitename/..
 
Now I have to make the parameter modification. So if the user come to
this address :
http://www.sitename.com/zone/1/country/31/city/2/location.html in fact
the server will access this page
http://www.sitename.com/location.php?zone=1

&country=31&city=2
 
Do you have any idea how this is done ? Can you give me some link, or
point me to some direction . Thank you
 
 
 
 
 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php