Re: [PHP] Weird sessions problem

2004-11-29 Thread steve
Andre Dubuc wrote:

 I gather that all of the script occurs on one page, and that the page is
 'refreshed' by some action of the user (i.e. that the user has
 clicked/entered login info on some other page, and that this page then
 needs to detect that change.)

No, it's when moving from one page/script to another.
 
 What may be happening is that the refresh action triggers the script
 twice: once for the initial loading and again for the reset values. Hence,
 $ref_page gets reset by line 53 ($ref_page = get_ref_page();

Nope. There's no 'refresh' as such.

 Another question, by
 any chance, are you switching into https by any chance?

Nope.

Ah well. As I mentioned earlier, I have a workaround now - not ideal, but as
it's working it'll do. I don't make money from web programming so I'll
leave it at that and get on with my day job :-)

-- 
@+
Steve

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



Re: [PHP] Problem with self join

2004-11-29 Thread Raditha Dissanayake
suneel wrote:
Hi...
   Please take a look at the following...
   I'm using MySQL 4.0.15
 

And what makes you think this is a mysql list?
--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 

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


[PHP] Problem with self join

2004-11-29 Thread suneel
Hi...
Please take a look at the following...

I'm using MySQL 4.0.15
I have the database like this

   Id name Owner
1Top Menu0
2File   1
3Open1
4Text File   2
5Dot Net2
6ASP.Net   5
7C#.Net  5

  In the above data the Id's 6  7  are not owner to any one.So,I
want to retrieve those Id's which are not owner to any one.

Thanks in advance,

With Cheers,
Sun.

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



php-general Digest 29 Nov 2004 08:35:51 -0000 Issue 3140

2004-11-29 Thread php-general-digest-help

php-general Digest 29 Nov 2004 08:35:51 - Issue 3140

Topics (messages 203024 through 203053):

Re: Weird sessions problem
203024 by: Jason Wong
203031 by: steve
203032 by: Andre Dubuc
203049 by: Jason Wong

Re: Mass MySQL INSERT
203025 by: Jason Wong

Re: buffer
203026 by: Greg Donald

Re: Getting static member for a class which name is stored
203027 by: Greg Beaver
203035 by: Jake Press

Re: Overriding static members?
203028 by: Greg Beaver

sql insert into 2 tables
203029 by: Dustin Krysak
203030 by: Larry E. Ullman

php 4 to  5
203033 by: Travis Conway
203034 by: Greg Beaver
203037 by: Travis Conway
203039 by: Curt Zirzow
203040 by: Michael Leung
203051 by: ShenKong
203052 by: Lester Caine

exclude - mysql query
203036 by: Brad Ciszewski
203046 by: David Robley

Help with DB.php in PHP5
203038 by: Info.Best-IT
203050 by: ShenKong

and statement
203041 by: Brad Ciszewski
203042 by: Brad Ciszewski
203043 by: Larry E. Ullman
203044 by: Robert Cummings
203047 by: John Nichel

similar function like getimagesize for Quicktime?
203045 by: Dustin Krysak

newbie web services
203048 by: Andras Kende

Problem with self join
203053 by: suneel

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
---BeginMessage---
On Sunday 28 November 2004 22:46, steve wrote:

 I tried printing out the values before and after each of those lines. After
 line 53, $ref_page is an array containing precisely the values I expect, so
 the function is working. After line 54, the session var has been reset, as
 expected, to match the current page - but $ref_page has also changed and is
 now equal to $_SESSION['ref_page'], which is what I found very weird - ie,
 resetting $_SESSION['ref_page'] simultaneously reset $ref_page.

Is $ref_page getting set to what the _previous_ value of $_SESSION['ref_page'] 
was? If so, it sounds like you have register_globals enabled.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I think we're in trouble.
  -- Han Solo
*/
---End Message---
---BeginMessage---
Jason Wong wrote:

 On Sunday 28 November 2004 22:46, steve wrote:
 
 I tried printing out the values before and after each of those lines.
 After line 53, $ref_page is an array containing precisely the values I
 expect, so the function is working. After line 54, the session var has
 been reset, as expected, to match the current page - but $ref_page has
 also changed and is now equal to $_SESSION['ref_page'], which is what I
 found very weird - ie, resetting $_SESSION['ref_page'] simultaneously
 reset $ref_page.
 
 Is $ref_page getting set to what the _previous_ value of
 $_SESSION['ref_page'] was? If so, it sounds like you have register_globals
 enabled.

No to both. When I arrive at the new page, the sessions vars (as expected)
contain the values set by the previous page. $ref_page is not set. The
values are transferred to $ref_page by the function. That works as planned.
I then reset the value of the session vars, at which point, $ref_page also
gets set. From printing out the values after each line, I find this:

Let's say we've come from the page /community.php and have arrived
at /market.php. Here are the values at each stage:

$_SESSION['ref_page] = '/community.php'
$_SESSION['ref_pagequery'] = 'pagemode=index' // as an example
53. $ref_page = get_ref_page();
$ref_page['name'] =  '/community.php'
$ref_page['query'] = 'pagemode=index'
$_SESSION['ref_page] = '/community.php'
$_SESSION['ref_pagequery'] = 'pagemode=index'
54. $_SESSION['ref_page'] = THIS_PAGE;
$ref_page =  '/community.php' // now a scalar
$_SESSION['ref_page] = '/market.php'

register_globals is off (in php.ini and there are no .htaccess files). 

-- 
@+
Steve
---End Message---
---BeginMessage---
On Sunday 28 November 2004 05:46 pm, steve wrote:
 Jason Wong wrote:
  On Sunday 28 November 2004 22:46, steve wrote:
  I tried printing out the values before and after each of those lines.
  After line 53, $ref_page is an array containing precisely the values I
  expect, so the function is working. After line 54, the session var has
  been reset, as expected, to match the current page - but $ref_page has
  also changed and is now equal to 

Re: [PHP] similar function like getimagesize for Quicktime?

2004-11-29 Thread Marek Kilimajer
Dustin Krysak wrote:
Hi there - I was wondering if there was some kind of PHP function to 
determine hte pixel size of a quicktime movie. Something like what 
GetImageSize() is to images, but for quicktime.
Not in php. Search for programs that you can execute from command line 
for your platform.

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


Re: [PHP] Problem with self join

2004-11-29 Thread Robin Vickery
On Mon, 29 Nov 2004 14:12:23 +0530, suneel
[EMAIL PROTECTED] wrote:
 Hi...
 Please take a look at the following...
 
 I'm using MySQL 4.0.15
 I have the database like this
 
Id name Owner
 1Top Menu0
 2File   1
 3Open1
 4Text File   2
 5Dot Net2
 6ASP.Net   5
 7C#.Net  5
 
   In the above data the Id's 6  7  are not owner to any one.So,I
 want to retrieve those Id's which are not owner to any one.

This should really go to a MySQL list, but...

If your table is called menus, this should do the job.

SELECT a.* 
  FROM menus a LEFT JOIN menus b ON a.Id = b.Owner 
  WHERE b.Owner IS NULL

-robin

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



[PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Octavian Rasnita
Hi all,

I use the  following program:

?php

print_form();
print_quotes ();

function print_form () {
ob_start();

output_add_rewrite_var(sort, sorting);

echo EOF
form
...
/form
EOF;

ob_flush();
}

function print_quotes () {
output_reset_rewrite_vars();

echo EOF
table
...
/table
EOF;
}

?


The result printed is:

Content-type: text/html
X-Powered-By: PHP/4.3.4

forminput type=hidden name=sort value=sorting /
...
/table
...
/table

Well, do you have any idea why PHP prints:

/table

...instead of:

/formtable

I have tried this program under Fedora Core 2 in command line mode and on an
Apache web server with the same results.

Do you have suggestions for making this program work and why does this
happen?

Thank you.

Teddy

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



Re: [PHP] Go Back Problem

2004-11-29 Thread Philip Thompson
On Nov 26, 2004, at 7:59 PM, Cyrus wrote:
Dear All,
I have a problem of back to the previous page in php.
I need to create a form let people to fill in .It can let user to 
preview the form, if information is not correct , user can back to 
previous page and correct it,
I have used the javascript  :  OnClick='history.go(-1)'   and  
OnClick='history.back()'  in php , but it can not workspls help 
me.

Thanks and Regards,
Cyrus Chan
What I do is store all the fields in $_SESSION variables, so when you 
go back to the page, if they filled that particular field out, it 
should show what they have already completed.

--
?php
session_start();
if ($_POST[submitted] == 1) {
$_SESSION[field1] = $_POST[something];
$_SESSION[field2] = $_POST[pizza];
}
?
form action=wherever.php method=post
input type=text name=something value=? echo $_SESSION[field1]; 
?/
input type=text name=pizza value=? echo $_SESSION[field2]; 
?/
input type=submit value=GO/
input type=hidden name=submitted value=1/
/form
--

So, there's no need to use javascript or to actually go back. You can 
just redirect to that page and have it remember the variables. To 
redirect back to it, use header(location: 
http://mysite.com/wherever.php;); It is not *always* necessary to use 
the absolute path to indicate that particular page in the header() 
function, but it doesn't hurt.

Sorry if I have rambled on or confused you - it's late and I'm sleepy. 
Good luck with that.

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


Re: [PHP] Problem with self join

2004-11-29 Thread Raditha Dissanayake
Robin Vickery wrote:
On Mon, 29 Nov 2004 14:12:23 +0530, suneel
[EMAIL PROTECTED] wrote:
 

Hi...
   Please take a look at the following...
   I'm using MySQL 4.0.15
   I have the database like this
   

This should really go to a MySQL list, but...
 

please keep the discussion on topic.

--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 

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


[PHP] SELECT problem..Need urgent help !!!!

2004-11-29 Thread Phpu
Hi,

I have an array named $ex_array.

I want to search the database and find those ids that are different from the 
values in $ex_array.

I use this but didn't work

$sql = SELECT product_id FROM products WHERE product_id  '$ex_array'  ; 


Thanks for any help 

Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Raditha Dissanayake
Octavian Rasnita wrote:
Hi all,
I use the  following program:
 


function print_quotes () {
output_reset_rewrite_vars();
echo EOF
table
...
/table
EOF;
}
I have tried this program under Fedora Core 2 in command line mode and on an
Apache web server with the same results.
Do you have suggestions for making this program work and why does this
happen?
 

I think the problem is with your 'here document' this is the traditional 
way of doing things in perl but in php you could  'go back into HTML. by 
using the '?' sequence. Thus your program might become

function print_quotes () {
output_reset_rewrite_vars();
?
table
...
/table
?
}
There are pros and cons of both approach but the bit of code i have 
given will produce the expected result.

 


--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 

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


Re: [PHP] SELECT problem..Need urgent help !!!!

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 17:27:26 +0200, Phpu [EMAIL PROTECTED] wrote:
 I have an array named $ex_array.
 
 I want to search the database and find those ids that are different from the 
 values in $ex_array.
 
 I use this but didn't work
 
 $sql = SELECT product_id FROM products WHERE product_id  '$ex_array'  ;

$sql = 
SELECT
product_id
FROM
products
WHERE
product_id NOT IN ( 
. implode( ', ', $ex_array )
.  ) ;

This question would be more appropriate for the php-db list.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Octavian Rasnita
Thank you. I will try that solution if it works, but the question still
remains...
Is PHP so buggy? The 'here document' should work without a problem in PHP
also.

My code works fine with PHP 5 (fortunately) under Windows, but it doesn't
work with PHP 4.3.4 under Linux.

I think I need to upgrade php under Linux also...

Teddy

- Original Message - 
From: Raditha Dissanayake [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 5:29 PM
Subject: Re: [PHP] Is this a bug in PHP 4.3.4?


Octavian Rasnita wrote:

Hi all,

I use the  following program:




function print_quotes () {
output_reset_rewrite_vars();

echo EOF
table
...
/table
EOF;
}


I have tried this program under Fedora Core 2 in command line mode and on
an
Apache web server with the same results.

Do you have suggestions for making this program work and why does this
happen?


I think the problem is with your 'here document' this is the traditional
way of doing things in perl but in php you could  'go back into HTML. by
using the '?' sequence. Thus your program might become

function print_quotes () {
output_reset_rewrite_vars();
 ?
 table
 ...
 /table
?

}


There are pros and cons of both approach but the bit of code i have
given will produce the expected result.

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



Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 17:58:27 +0200, Octavian Rasnita [EMAIL PROTECTED] wrote:
 Is PHP so buggy? The 'here document' should work without a problem in PHP
 also.

The latest stable PHP 4 is rock solid from where I'm sitting.  We have
a bunch of Debian servers running 4.3.9 with no issues.

 My code works fine with PHP 5 (fortunately) under Windows, but it doesn't
 work with PHP 4.3.4 under Linux.
 
 I think I need to upgrade php under Linux also...

I would defiantly upgrade.  Hundreds of bugs have been fixed from
4.3.4 - 4.3.9.

http://www.php.net/ChangeLog-4.php


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 10:28:57 -0600, Greg Donald [EMAIL PROTECTED] wrote:
 I would defiantly upgrade.

Definitely too.  :)


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



Re: [PHP] Is this a bug in PHP 4.3.4?

2004-11-29 Thread Raditha Dissanayake
Octavian Rasnita wrote:
Thank you. I will try that solution if it works, but the question still
remains...
Is PHP so buggy? The 'here document' should work without a problem in PHP
also.
 

It probably wasn't a bug in php 4.3.4 but as greg has pointed out you 
probably should upgrade anyway. Here documents are pretty hard to work 
with at the best of times and it's quite easy to make a teeny weeny hard 
to detect typo.,

My code works fine with PHP 5 (fortunately) under Windows, but it doesn't
work with PHP 4.3.4 under Linux.
I think I need to upgrade php under Linux also...
 

--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 

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


[PHP] UNDEFINED VARIABLE ON LOCALHOST

2004-11-29 Thread Ross Hulford
I have a porblem with undefined variables on loacalhost. Any ideas why? I 
have turned registed variables on.


R. 

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



[PHP] Problems with headers and downloading file

2004-11-29 Thread Christian Johansson
Hello.

 

I have a problem with downloads with the use of header()

I have this code at the start at the download site:

 

Header(Content-Type: application/download);

Header(Content-Disposition: attachment; filename=export.txt);

 

My problem is that the file which is downloaded contains HTML code which I
don't need, and don't want to have there.

Is there some way to take control on what should be written to the file?

I am almost there, I have all the data I want do generate on the file, but
in the start of the file HTML code are written.

Anyone who can help me?

 

I can't store a file on the server, and then download it, because of some
government rules.

 

 

 

Regards

 

Christian Johansson

 



Re: [PHP] UNDEFINED VARIABLE ON LOCALHOST

2004-11-29 Thread John Nichel
Ross Hulford wrote:
I have a porblem with undefined variables on loacalhost. Any ideas why? I 
have turned registed variables on.

R. 
Without seeing any code, I'm going to guess that you haven't defined a 
variable before trying to use it.  Wanna make it go away?  Turn off 
'notices' in your error reporting, or make sure your variables are 
defined before you try to use them.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] UNDEFINED VARIABLE ON LOCALHOST

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 17:11:47 -, Ross Hulford [EMAIL PROTECTED] wrote:
 I have a porblem with undefined variables on loacalhost. Any ideas why? I
 have turned registed variables on.

Where's the code?



-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



[PHP] Turck mm_cache problem

2004-11-29 Thread Mirek Novak
Hello people,
I've got into problem with compilation of turck mm_cache module.
Usual steps for mm_cache compilation were:
phpize
./configure
make
but now, when I run phpize (appropriate one from right directory) I've 
got this error:

[EMAIL PROTECTED] turck-mmcache]# phpize
NONE:0: /usr/bin/m4: ERROR: EOF in string
[EMAIL PROTECTED] turck-mmcache]#
PHP 4.3.9 no Linux
MM_CACHE latest from CVS (latest stable from SF was the same problem)
is there anyone who have ever seen this?
Can anyone help?
thanks
Mirek
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Problems with headers and downloading file

2004-11-29 Thread John Nichel
Christian Johansson wrote:
Hello.
 

I have a problem with downloads with the use of header()
I have this code at the start at the download site:
 

Header(Content-Type: application/download);
Header(Content-Disposition: attachment; filename=export.txt);
 

My problem is that the file which is downloaded contains HTML code which I
don't need, and don't want to have there.
Is there some way to take control on what should be written to the file?
I am almost there, I have all the data I want do generate on the file, but
in the start of the file HTML code are written.
Anyone who can help me?
 

I can't store a file on the server, and then download it, because of some
government rules.
http://us4.php.net/striptags
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Line breaks in form

2004-11-29 Thread Chris Farrugia
Greetings,

 

On one of my forms to send email, I have multiple line breaks with different
paragraphs.  I looked up the nl2br function and that looks like an option,
but I would ideally like to wrap these paragraphs inside p/p tags.  Is
there a way to do this easily?  Any advice would be greatly appreciated.

 

Thanks,

Chris

 



Re: [PHP] Problems with headers and downloading file

2004-11-29 Thread David Dickson
Christian Johansson wrote:
I have a problem with downloads with the use of header()
I have this code at the start at the download site:
 
Header(Content-Type: application/download); 
Header(Content-Disposition: attachment; filename=export.txt);  

My problem is that the file which is downloaded contains HTML code which I
don't need, and don't want to have there.
Is there some way to take control on what should be written to the file?
I am almost there, I have all the data I want do generate on the file, but
in the start of the file HTML code are written.
Christian Johansson
Anything you echo after sending the headers will be inserted into the 
downloaded file. For example:

?php
header(Content-Type: application/download);
header(Content-Disposition: attachment; filename=export.txt);
echo This is the first line\n;
echo This is the second line.;
?
Will cause the users browser to download a text document that contains 
two lines of text. All you need to do is write your php code after the 
headers that generates your text file contents.

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


Re: [PHP] Line breaks in form

2004-11-29 Thread John Nichel
Chris Farrugia wrote:
Greetings,
 

On one of my forms to send email, I have multiple line breaks with different
paragraphs.  I looked up the nl2br function and that looks like an option,
but I would ideally like to wrap these paragraphs inside p/p tags.  Is
there a way to do this easily?  Any advice would be greatly appreciated.
I'm sure somebody will have a 'cleaner' way, but...
$text = preg_split ( /\n/, $inputText );
for ( $i = 0; $i  sizeof ( $text ); $i++ ) {
if ( $text[$i] !=  ) {
$text[$i] = p . $text[$i] . /p;
}
}
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Line breaks in form

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 12:29:59 -0500, Chris Farrugia
[EMAIL PROTECTED] wrote:
 On one of my forms to send email, I have multiple line breaks with different
 paragraphs.  I looked up the nl2br function and that looks like an option,
 but I would ideally like to wrap these paragraphs inside p/p tags.  Is
 there a way to do this easily?  Any advice would be greatly appreciated.

explode() the text by the \n character, this will give you an array.
 Iterate over the array and add your p tags there.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



[PHP] [Off] - A way for PHP sites to get extreme Google rankings

2004-11-29 Thread Brian Dunning
Check it out, in 2 weeks I got to #4 on Google for ebay motors - 
which, as you may know, translates into major affiliate dollars.

Completely free and easy to do (as long as your site is in PHP). It's 
all about backlinks generated from this free ad network:

  http://www.digitalpoint.com/tools/ad-network/?s=174
And now, back to our regularly scheduled programming.
Brian Dunning
http://www.briandunning.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] [Off] - A way for PHP sites to get extreme Google rankings

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 11:20:21 -0800, Brian Dunning
[EMAIL PROTECTED] wrote:
 It's all about backlinks generated from this free ad network:

In other news, scientists discovered wheels are indeed round.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



Re: [PHP] [Off] - A way for PHP sites to get extreme Google rankings

2004-11-29 Thread John Nichel
Brian Dunning wrote:
Check it out, in 2 weeks I got to #4 on Google for ebay motors - 
which, as you may know, translates into major affiliate dollars.

Completely free and easy to do (as long as your site is in PHP). It's 
all about backlinks generated from this free ad network:

  http://www.digitalpoint.com/tools/ad-network/?s=174
I'm guessing s=174 is your referral ID.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] [Off] - A way for PHP sites to get extreme Google rankings

2004-11-29 Thread Brian Dunning
I'm guessing s=174 is your referral ID.
Yes it is. Try it, you'll find it was well worth it.  :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP arrays and javascript

2004-11-29 Thread Nick Peters
Marek Kilimajer wrote:

 Nick Peters wrote:
 Hey,
 
 i know this probally a simple question, but it has been stumping me for
 quite some time now. How do i pass a php array to a javascript?
 
 i tryed:
 script language=javascript
 var myarray = new Array(?PHP echo $myarray; ?);
 /script
 
 but it didn't work. Anybody got any ideas?
 
 thanks in advance.
 
 For integers and floats:
 
 var myarray = new Array(?PHP echo implode(', ', $myarray); ?);
 
 For strings:
 
 var myarray = new Array(?PHP echo ''. implode(', ', $myarray) .'';
 ?);

Would this work the same for multidimensional arrays?

-- 
-Nick Peters

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



[PHP] PHP log 2 Apache log

2004-11-29 Thread David Zejda
Hi!
Is there any way to order the PHP (mod_php) to log everything to 
ErrorLog defined by Apache in VirtualHost section? In php.ini I see only 
the possibility to specify the concrete global logfile or syslog, but a 
such setup doesn't fit to virtual host scenario...

Thanks for your advice and excuse me, If i missed something trivial.
With regards
David
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


php-general Digest 29 Nov 2004 20:38:01 -0000 Issue 3141

2004-11-29 Thread php-general-digest-help

php-general Digest 29 Nov 2004 20:38:01 - Issue 3141

Topics (messages 203054 through 203083):

Re: Weird sessions problem
203054 by: steve

Re: Problem with self join
203055 by: Raditha Dissanayake
203057 by: Robin Vickery
203060 by: Raditha Dissanayake

Re: similar function like getimagesize for Quicktime?
203056 by: Marek Kilimajer

Is this a bug in PHP 4.3.4?
203058 by: Octavian Rasnita
203062 by: Raditha Dissanayake
203064 by: Octavian Rasnita
203065 by: Greg Donald
203066 by: Greg Donald
203067 by: Raditha Dissanayake

Re: Go Back Problem
203059 by: Philip Thompson

SELECT problem..Need urgent help 
203061 by: Phpu
203063 by: Greg Donald

UNDEFINED VARIABLE ON LOCALHOST
203068 by: Ross Hulford
203070 by: John Nichel
203071 by: Greg Donald

Problems with headers and downloading file
203069 by: Christian Johansson
203073 by: John Nichel
203075 by: David Dickson

Turck mm_cache problem
203072 by: Mirek Novak

Line breaks in form
203074 by: Chris Farrugia
203076 by: John Nichel
203077 by: Greg Donald

[Off] - A way for PHP sites to get extreme Google rankings
203078 by: Brian Dunning
203079 by: Greg Donald
203080 by: John Nichel
203081 by: Brian Dunning

Re: PHP arrays and javascript
203082 by: Nick Peters

PHP log 2 Apache log
203083 by: David Zejda

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
---BeginMessage---
Andre Dubuc wrote:

 I gather that all of the script occurs on one page, and that the page is
 'refreshed' by some action of the user (i.e. that the user has
 clicked/entered login info on some other page, and that this page then
 needs to detect that change.)

No, it's when moving from one page/script to another.
 
 What may be happening is that the refresh action triggers the script
 twice: once for the initial loading and again for the reset values. Hence,
 $ref_page gets reset by line 53 ($ref_page = get_ref_page();

Nope. There's no 'refresh' as such.

 Another question, by
 any chance, are you switching into https by any chance?

Nope.

Ah well. As I mentioned earlier, I have a workaround now - not ideal, but as
it's working it'll do. I don't make money from web programming so I'll
leave it at that and get on with my day job :-)

-- 
@+
Steve
---End Message---
---BeginMessage---
suneel wrote:
Hi...
   Please take a look at the following...
   I'm using MySQL 4.0.15
 

And what makes you think this is a mysql list?
--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 
---End Message---
---BeginMessage---
On Mon, 29 Nov 2004 14:12:23 +0530, suneel
[EMAIL PROTECTED] wrote:
 Hi...
 Please take a look at the following...
 
 I'm using MySQL 4.0.15
 I have the database like this
 
Id name Owner
 1Top Menu0
 2File   1
 3Open1
 4Text File   2
 5Dot Net2
 6ASP.Net   5
 7C#.Net  5
 
   In the above data the Id's 6  7  are not owner to any one.So,I
 want to retrieve those Id's which are not owner to any one.

This should really go to a MySQL list, but...

If your table is called menus, this should do the job.

SELECT a.* 
  FROM menus a LEFT JOIN menus b ON a.Id = b.Owner 
  WHERE b.Owner IS NULL

-robin
---End Message---
---BeginMessage---
Robin Vickery wrote:
On Mon, 29 Nov 2004 14:12:23 +0530, suneel
[EMAIL PROTECTED] wrote:
 

Hi...
   Please take a look at the following...
   I'm using MySQL 4.0.15
   I have the database like this
   

This should really go to a MySQL list, but...
 

please keep the discussion on topic.

--
Raditha Dissanayake.
--
http://www.radinks.com/print/card-designer/ | Card Designer Applet
http://www.radinks.com/upload/  | Drag and Drop Upload 
---End Message---
---BeginMessage---
Dustin Krysak wrote:
Hi there - I was wondering if there was some kind of PHP function to 
determine hte pixel size of a quicktime movie. Something like what 
GetImageSize() is to images, but for quicktime.
Not in php. Search for programs that you can execute from command line 
for your platform.
---End Message---
---BeginMessage---
Hi all,

I use the  following program:

?php

[PHP] [SPAM] RE: [PHP] [Off] - A way for PHP sites to get extreme Google rankings

2004-11-29 Thread Gryffyn, Trevor
Well, there is a 'briandunning.com' as #4 on Google searching for 'ebay motors'.

Now the trick would be to get listed under awesome php scripts or something 
relevant to your site.

If anyone sees it necessary to try this, try going to:
http://www.digitalpoint.com/tools/ad-network/

Sorry Brian.. Thanks for the tip and all, but when it's obvious that you 
benefit from it somehow and your message is essentially spam meant to create 
status, money, etc for you, it's good for people (who may be legitimately 
interested in such things) to know how they can do it without giving spammers 
(like yourself) incentive to continue spamming.

The bitch about spam though, is that enough people will click on the link 
without thinking to make it worth even this much attention.

Please don't take offense by me calling you a spammer, but no matter how 
helpful you're attempting to be, this is spam. Plain and simple.  You're 
benefitting from it in some way... Or have potential to do so.. And it's 
incredibly off-topic (I don't see how Completely free and easy to do (as long 
as your site is in PHP) is accurate in relation to PHP being required for any 
of this to happen.

I'd recommend to the moderators to set your posting status to moderate to 
prevent further spamming.

It would have come off a bit more altruistic if it didn't have a referred ID 
attached to the URL.

-TG

 -Original Message-
 From: John Nichel [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 29, 2004 2:46 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] [Off] - A way for PHP sites to get extreme 
 Google rankings
 
 
 Brian Dunning wrote:
  Check it out, in 2 weeks I got to #4 on Google for ebay motors - 
  which, as you may know, translates into major affiliate dollars.
  
  Completely free and easy to do (as long as your site is in 
 PHP). It's 
  all about backlinks generated from this free ad network:
  
http://originalurldeleted
  
 
 I'm guessing s=174 is your referral ID.
 
 -- 
 John C. Nichel
 ÜberGeek
 KegWorks.com
 716.856.9675
 [EMAIL PROTECTED]
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 

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



Re: [PHP] [SPAM] RE: [PHP] [Off] - A way for PHP sites to get extreme Google rankings

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 12:57:43 -0800, Brian Dunning
[EMAIL PROTECTED] wrote:
 Well, you're entitled to your opinion, of course; but (a) I clearly put
 [Off] in the subject

Next time try the standard [OT] label instead.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



[PHP] apache2 php stability

2004-11-29 Thread Anthony Gauda
I have read at various places on the web that Apache 2 and PHP running 
as a module isn't recommended for production sites. Does anyone here run 
PHP 4/5 and Apache2 in a high load production environment with success? 
If so, whats your configuration?

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


Re: [PHP] PHP log 2 Apache log

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 21:35:00 +0100, David Zejda [EMAIL PROTECTED] wrote:
 Hi!
 Is there any way to order the PHP (mod_php) to log everything to
 ErrorLog defined by Apache in VirtualHost section? In php.ini I see only
 the possibility to specify the concrete global logfile or syslog, but a
 such setup doesn't fit to virtual host scenario...
 
 Thanks for your advice and excuse me, If i missed something trivial.

You can override much of the php.ini with ini_set().

http://www.php.net/manual/en/ref.errorfunc.php#ini.error-log


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



Re: [PHP] apache2 php stability

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 15:55:31 -0600, Anthony Gauda
[EMAIL PROTECTED] wrote:
 I have read at various places on the web that Apache 2 and PHP running
 as a module isn't recommended for production sites. Does anyone here run
 PHP 4/5 and Apache2 in a high load production environment with success?
 If so, whats your configuration?

I don't have any experiences to share with you about PHP5 and Apache2
except that I'm using them on a server at home so I can play with
Mojavi 3.

But I got a question for you..  What does Apache2 have that you need
feature-wise that Apache doesn't have already?  Just curious is all. 
:)


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



[PHP] Re: apache2 php stability

2004-11-29 Thread Ben Ramsey
Anthony Gauda wrote:
I have read at various places on the web that Apache 2 and PHP running 
as a module isn't recommended for production sites. Does anyone here run 
PHP 4/5 and Apache2 in a high load production environment with success? 
If so, whats your configuration?
Take a look at the following:
http://us2.php.net/install.unix.apache2
http://us2.php.net/manual/en/faq.installation.php#faq.installation.apache2
This might be where you're getting the notion that it's not recommended 
for production sites. However, the last paragraph in that FAQ states 
that using the prefork mpm with Apache 2 to avoid the threading is 
possible.

Any RPM of Apache 2 on RedHat/Fedora systems uses the prefork mpm by 
default because these systems also ship with the PHP RPMs. I would 
imagine that many Apache 2 RPMs (or other package types) are configured 
similarly.

I have been running PHP using --with-apxs2 and Apache 2 in production 
environments without problems.

--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
---
Atlanta PHP - http://www.atlphp.org/
The Southeast's premier PHP community.
---
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Fwd: [PHP] Go Back Problem

2004-11-29 Thread Philip Thompson
Begin forwarded message:
From: Sandy Keathley [EMAIL PROTECTED]
Date: November 29, 2004 3:23:47 PM CST
To: Philip Thompson [EMAIL PROTECTED]
Subject: Re: [PHP] Go Back Problem
Reply-To: [EMAIL PROTECTED]
I have a problem of back to the previous page in php.
I need to create a form let people to fill in .It can let user to
preview the form, if information is not correct , user can back to
previous page and correct it,

The problem is the cache setting in your php.ini file.  It defaults to
private.  You have to change it and restart Apache.
Regards,
   SK
--
Sandy Keathley
Systems Administrator
Lorentz Consulting Group, LLC
Dallas, TX
--


Re: [PHP] apache2 php stability

2004-11-29 Thread Anthony Gauda
Apache2 is multithreaded and works better under higher loads with a 
smaller memory footprint. If you have 300 simul connections under apache 
1.3 you need 300 forks. The same load under apache 2 runs under 300 
threads. With Linux 2.6 threads are very lightweight and in terms of 
system resources very inexpensive to start.

Under a high load spike Apache 2 would, in theory, respond better.
Greg Donald wrote:
On Mon, 29 Nov 2004 15:55:31 -0600, Anthony Gauda
[EMAIL PROTECTED] wrote:
I have read at various places on the web that Apache 2 and PHP running
as a module isn't recommended for production sites. Does anyone here run
PHP 4/5 and Apache2 in a high load production environment with success?
If so, whats your configuration?

I don't have any experiences to share with you about PHP5 and Apache2
except that I'm using them on a server at home so I can play with
Mojavi 3.
But I got a question for you..  What does Apache2 have that you need
feature-wise that Apache doesn't have already?  Just curious is all. 
:)


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


[PHP] PHP with GD library setup

2004-11-29 Thread MKEP09
Hello,

I have PHP on Windows XP Pro, running Apache 1.3. The
server works fine and I can run basic php scripts.
Problem is aftermodifying my php.ini file to  load the extension  php_gd2.dll 
it cant find it at all. I have tried all possible ways.

my php.ini

extension=php_gd2.dll  I REMOVED THE ;

extension_dir =./ext also haves used c:\php\extensions and c:\php\ext 
etc...

When running Apache 1.3 server it uses the correct address and is unable to 
load the file:  php_gd2.dll

What do I do?

Hope you can help.

Michael Porter



Re: [PHP] [SPAM] RE: [PHP] [Off] - A way for PHP sites to get extreme Google rankings

2004-11-29 Thread Brian Dunning
Well, you're entitled to your opinion, of course; but (a) I clearly put 
[Off] in the subject, and (b) this is something that only works for PHP 
sites, so it's not completely irrelevant. My experience has been that 
it works great, as I proved, and that took only 2 weeks. I'm sure I'm 
not the only one on the list to whom high Google ranking is important.

I'm not sure why you deem my post to be so damaging to the list that 
you feel it necessary to advise anyone who takes advantage of my 
recommendation to go out of their way to see that I *not* receive the 
affiliate credit, but I'm sure you have your reasons. I'm delighted 
that I gave affiliate credit to the guy who recommended it to me, it 
was well worth it especially since it's FREE. It costs nothing to give 
credit where credit is due.


On Nov 29, 2004, at 12:47 PM, Gryffyn, Trevor wrote:
Well, there is a 'briandunning.com' as #4 on Google searching for 
'ebay motors'.

Now the trick would be to get listed under awesome php scripts or 
something relevant to your site.

If anyone sees it necessary to try this, try going to:
http://www.digitalpoint.com/tools/ad-network/
Sorry Brian.. Thanks for the tip and all, but when it's obvious that 
you benefit from it somehow and your message is essentially spam meant 
to create status, money, etc for you, it's good for people (who may be 
legitimately interested in such things) to know how they can do it 
without giving spammers (like yourself) incentive to continue 
spamming.

The bitch about spam though, is that enough people will click on the 
link without thinking to make it worth even this much attention.

Please don't take offense by me calling you a spammer, but no matter 
how helpful you're attempting to be, this is spam. Plain and simple.  
You're benefitting from it in some way... Or have potential to do so.. 
And it's incredibly off-topic (I don't see how Completely free and 
easy to do (as long as your site is in PHP) is accurate in relation 
to PHP being required for any of this to happen.

I'd recommend to the moderators to set your posting status to 
moderate to prevent further spamming.

It would have come off a bit more altruistic if it didn't have a 
referred ID attached to the URL.

-TG
-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 2:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] [Off] - A way for PHP sites to get extreme
Google rankings
Brian Dunning wrote:
Check it out, in 2 weeks I got to #4 on Google for ebay motors -
which, as you may know, translates into major affiliate dollars.
Completely free and easy to do (as long as your site is in
PHP). It's
all about backlinks generated from this free ad network:
  http://originalurldeleted
I'm guessing s=174 is your referral ID.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

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

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


Re: [PHP] apache2 php stability

2004-11-29 Thread Greg Donald
On Mon, 29 Nov 2004 16:21:22 -0600, Anthony Gauda
[EMAIL PROTECTED] wrote:
 The same load under apache 2 runs under 300
 threads. With Linux 2.6 threads are very lightweight and in terms of

Are distros shipping with NPTL already?  I saw a Gentoo thread on how
to convert a system to use NPTL but peeps were having lots of glibc
issues at the time.  :(

I'm using 2.6 in a couple places, desktops and dev servers, but have
not tried NPTL yet.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

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



[PHP] PHP XSLT question

2004-11-29 Thread Lists
I'm presently reading Using XSLT and have created their examples 
using PHP and sablotron to render HTML from XML and an XSL template.

I understand the value of using XSLT to render XML, but what is the 
advantage or reasons for generating XML from a database and rendering 
it to HTML using XSLT over using templates in PHP to render the 
information directly from the database?  Is it faster to read from 
written XSL files in some cases?  Couldn't HTML includes be written and 
saved in the same way?

-dg
http://www.rexruff.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP and Frames?

2004-11-29 Thread Jake McHenry
Hi everyone,
Was just wondering if it is possible to create dynamic frames within a page.
Like have 3 output sequences, one for frame source, then 2 for actual pages?
Or do frames have to have an actual page to load? I guess I could output the
html to a file, then have just the src in the php code? I'm kind of
experimenting with a new design, so if this exists, or something close to
it, could someone point me in the right direction?
What I want to do is have links on the left, a header with our logo, then
the right frame will load pdf, doc, or html files depending on which link
the person clicks on. This is simple if it's just html, but I need to have
the person logged in, and the php file is generating the list of links based
on the files contained in the directory. So when the person uploads files,
they are immediatly in the list.
Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
(570) 748-6611 x108
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] How to ensure cookies are turned on.

2004-11-29 Thread Gary Reimer
Hello;
Im working on a website that uses sessions as an integral part of the 
site. If cookies are not turned on in the browser, my site will not 
work. Ive been searching unsuccessfully to find the way to determine 
if the browser has cookies enabled.  I want to warn the user that the 
site wont work if they have cookies turned off. There must be some 
global variable that tells me. Could someone help me out?

Thanks in advance,
Gary
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] How to ensure cookies are turned on.

2004-11-29 Thread Marek Kilimajer
Gary Reimer wrote:
Hello;
Im working on a website that uses sessions as an integral part of the 
site. If cookies are not turned on in the browser, my site will not 
work. Ive been searching unsuccessfully to find the way to determine if 
the browser has cookies enabled.  I want to warn the user that the site 
wont work if they have cookies turned off. There must be some global 
variable that tells me. Could someone help me out?
If the cookie you set is not send back, the cookies are turned off 
(unless you screwed up). You can redirect user to a turn on your 
cookies page at a point where cookies are really required and none is send.

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


Re: [PHP] apache2 php stability

2004-11-29 Thread Anthony Gauda
actually any distro with a 2.6 kernel should already have it. You can 
check by doing a

getconf GNU_LIBPTHREAD_VERSION
if it says NPTL .xx you have it...
Greg Donald wrote:
On Mon, 29 Nov 2004 16:21:22 -0600, Anthony Gauda
[EMAIL PROTECTED] wrote:
The same load under apache 2 runs under 300
threads. With Linux 2.6 threads are very lightweight and in terms of

Are distros shipping with NPTL already?  I saw a Gentoo thread on how
to convert a system to use NPTL but peeps were having lots of glibc
issues at the time.  :(
I'm using 2.6 in a couple places, desktops and dev servers, but have
not tried NPTL yet.

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


RE: [PHP] PHP and Frames?

2004-11-29 Thread Chris W. Parker
Jake McHenry mailto:[EMAIL PROTECTED]
on Monday, November 29, 2004 2:41 PM said:

 Was just wondering if it is possible to create dynamic frames within
 a page. Like have 3 output sequences, one for frame source, then 2
 for actual pages?

Frames and PHP are not interdependent on eachother. Each frame within
the frameset can be a PHP page if you need them to be.

 Or do frames have to have an actual page to load?

I'm sorry but I don't understand what you mean by an actual page to
load. A frame within a frameset can load anything the regular browser
window can load.

Also, since this is not really PHP related (unless I'm missing the
point) you might like to try an a general web design list instead. Or
you could email me off list.



Chris.

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



Re: [PHP] PHP and Frames?

2004-11-29 Thread Jake McHenry
- Original Message - 
From: Chris W. Parker [EMAIL PROTECTED]
To: Jake McHenry [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 6:26 PM
Subject: RE: [PHP] PHP and Frames?


Jake McHenry mailto:[EMAIL PROTECTED]
   on Monday, November 29, 2004 2:41 PM said:
Was just wondering if it is possible to create dynamic frames within
a page. Like have 3 output sequences, one for frame source, then 2
for actual pages?
Frames and PHP are not interdependent on eachother. Each frame within
the frameset can be a PHP page if you need them to be.
Or do frames have to have an actual page to load?
I'm sorry but I don't understand what you mean by an actual page to
load. A frame within a frameset can load anything the regular browser
window can load.
Also, since this is not really PHP related (unless I'm missing the
point) you might like to try an a general web design list instead. Or
you could email me off list.

Chris.

Right now I only have 1 php file, which is outputing all of the html. Is 
there a way I can have that 1 php file output the frame source page, along 
with the links, header, and target page? As I said, I could have the php 
file output the html to the actual files, but is there a way I have have all 
this in 1 php file? That's what I'm asking I guess

Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
(570) 748-6611 x108
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] How to ensure cookies are turned on.

2004-11-29 Thread M. Sokolewicz
Marek Kilimajer wrote:
Gary Reimer wrote:
Hello;
Im working on a website that uses sessions as an integral part of the 
site. If cookies are not turned on in the browser, my site will not 
work. Ive been searching unsuccessfully to find the way to determine 
if the browser has cookies enabled.  I want to warn the user that the 
site wont work if they have cookies turned off. There must be some 
global variable that tells me. Could someone help me out?

If the cookie you set is not send back, the cookies are turned off 
(unless you screwed up). You can redirect user to a turn on your 
cookies page at a point where cookies are really required and none is 
send.
and how would you know that? unless you specify an alternative string 
using GET ofcourse

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


Re: [PHP] PHP and Frames?

2004-11-29 Thread M. Sokolewicz
Jake McHenry wrote:
- Original Message - From: Chris W. Parker [EMAIL PROTECTED]
To: Jake McHenry [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 6:26 PM
Subject: RE: [PHP] PHP and Frames?

Jake McHenry mailto:[EMAIL PROTECTED]
   on Monday, November 29, 2004 2:41 PM said:
Was just wondering if it is possible to create dynamic frames within
a page. Like have 3 output sequences, one for frame source, then 2
for actual pages?

Frames and PHP are not interdependent on eachother. Each frame within
the frameset can be a PHP page if you need them to be.
Or do frames have to have an actual page to load?

I'm sorry but I don't understand what you mean by an actual page to
load. A frame within a frameset can load anything the regular browser
window can load.
Also, since this is not really PHP related (unless I'm missing the
point) you might like to try an a general web design list instead. Or
you could email me off list.

Chris.

Right now I only have 1 php file, which is outputing all of the html. Is 
there a way I can have that 1 php file output the frame source page, 
along with the links, header, and target page? As I said, I could have 
the php file output the html to the actual files, but is there a way I 
have have all this in 1 php file? That's what I'm asking I guess

Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
(570) 748-6611 x108
sure, but you'd need to somehow distinguis between situations. The 
easiest would be using a GET var. eg:
frameset src=page.php?id=topframeset src=page.php?id=left

and in the page.php:
switch($_GET['id']) {
case 'top':
// html for top
break;
case 'left':
// html for left
break;
}
etc.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: off list RE: [PHP] PHP and Frames?

2004-11-29 Thread Jake McHenry
- Original Message - 
From: Chris W. Parker [EMAIL PROTECTED]
To: Jake McHenry [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 6:36 PM
Subject: off list RE: [PHP] PHP and Frames?


Jake McHenry mailto:[EMAIL PROTECTED]
   on Monday, November 29, 2004 3:30 PM said:
Right now I only have 1 php file, which is outputing all of the html.
Is there a way I can have that 1 php file output the frame source
page, along with the links, header, and target page? As I said, I
could have the php file output the html to the actual files, but is
there a way I have have all this in 1 php file? That's what I'm
asking I guess
Oh yeah sure. That's easy.
(mind you, i haven't written a proper frameset in a long time so my tags
might be wrong.)
?php
echo QQQ
frameset
frame name=header ... /
frame name=nav ... /
frame name=content ... /
/frameset
QQQ;
?
You say you want the 'content' frame to load different pages right? Well
then you'll have to pass a value to the frameset page to determine which
page should be loaded.
http://www.yourdomain.com/frameset.php?content=products.pdf
?php
// Remember to always validate input and
// not blindly display any page like I am
// doing here in my example.
$content_page = $_GET['content'];
echo QQQ
frameset
frame name=header ... /
frame name=nav ... /
frame name=content src=$content_page ... /
/frameset
QQQ;
?
Does this help?
Chris.

I think so, I'll work with it.. and see what I come up with.. thanks for the 
help..

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


Re: [PHP] PHP and Frames?

2004-11-29 Thread Jake McHenry
- Original Message - 
From: M. Sokolewicz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 6:34 PM
Subject: Re: [PHP] PHP and Frames?


Jake McHenry wrote:
- Original Message - From: Chris W. Parker 
[EMAIL PROTECTED]
To: Jake McHenry [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 6:26 PM
Subject: RE: [PHP] PHP and Frames?


Jake McHenry mailto:[EMAIL PROTECTED]
   on Monday, November 29, 2004 2:41 PM said:
Was just wondering if it is possible to create dynamic frames within
a page. Like have 3 output sequences, one for frame source, then 2
for actual pages?

Frames and PHP are not interdependent on eachother. Each frame within
the frameset can be a PHP page if you need them to be.
Or do frames have to have an actual page to load?

I'm sorry but I don't understand what you mean by an actual page to
load. A frame within a frameset can load anything the regular browser
window can load.
Also, since this is not really PHP related (unless I'm missing the
point) you might like to try an a general web design list instead. Or
you could email me off list.

Chris.

Right now I only have 1 php file, which is outputing all of the html. Is 
there a way I can have that 1 php file output the frame source page, 
along with the links, header, and target page? As I said, I could have 
the php file output the html to the actual files, but is there a way I 
have have all this in 1 php file? That's what I'm asking I guess

Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
(570) 748-6611 x108
sure, but you'd need to somehow distinguis between situations. The easiest 
would be using a GET var. eg:
frameset src=page.php?id=topframeset src=page.php?id=left

and in the page.php:
switch($_GET['id']) {
case 'top':
// html for top
break;
case 'left':
// html for left
break;
}
etc.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



ok, this helps on what I just emailed.. missed this... I'll try it and let 
you know.

Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
(570) 748-6611 x108
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Pasting text from MS Word into PHPmyAdmin

2004-11-29 Thread Graham Anderson
I am copy/pasting text from a microsoft word doc into phpmyadmin
are there any special tricks to avoid strange characters...most of my 
text is in Spanish
The only thing that seems to work is converting the text to ASCII which 
ditches all the Spanish formatting :(
is there some process to make this a painless process ?

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


Re: [PHP] PHP and Frames? solved

2004-11-29 Thread Jake McHenry
- Original Message - 
From: Jake McHenry [EMAIL PROTECTED]
To: M. Sokolewicz [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 6:46 PM
Subject: Re: [PHP] PHP and Frames?


- Original Message - 
From: M. Sokolewicz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 6:34 PM
Subject: Re: [PHP] PHP and Frames?


Jake McHenry wrote:
- Original Message - From: Chris W. Parker 
[EMAIL PROTECTED]
To: Jake McHenry [EMAIL PROTECTED]; 
[EMAIL PROTECTED]
Sent: Monday, November 29, 2004 6:26 PM
Subject: RE: [PHP] PHP and Frames?


Jake McHenry mailto:[EMAIL PROTECTED]
   on Monday, November 29, 2004 2:41 PM said:
Was just wondering if it is possible to create dynamic frames within
a page. Like have 3 output sequences, one for frame source, then 2
for actual pages?

Frames and PHP are not interdependent on eachother. Each frame within
the frameset can be a PHP page if you need them to be.
Or do frames have to have an actual page to load?

I'm sorry but I don't understand what you mean by an actual page to
load. A frame within a frameset can load anything the regular browser
window can load.
Also, since this is not really PHP related (unless I'm missing the
point) you might like to try an a general web design list instead. Or
you could email me off list.

Chris.

Right now I only have 1 php file, which is outputing all of the html. Is 
there a way I can have that 1 php file output the frame source page, 
along with the links, header, and target page? As I said, I could have 
the php file output the html to the actual files, but is there a way I 
have have all this in 1 php file? That's what I'm asking I guess

Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
(570) 748-6611 x108
sure, but you'd need to somehow distinguis between situations. The 
easiest would be using a GET var. eg:
frameset src=page.php?id=topframeset src=page.php?id=left

and in the page.php:
switch($_GET['id']) {
case 'top':
// html for top
break;
case 'left':
// html for left
break;
}
etc.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



ok, this helps on what I just emailed.. missed this... I'll try it and let 
you know.

Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
(570) 748-6611 x108
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Thanks for the help everyone. I got it working the way I wanted. the links 
on the left are auto generated by the php file, which outputs them to the 
content frame, all in one php file. Wasn't as hard as I thought.. like I 
said.. it's been a long day. Probably could have figured it out after some 
sleep

Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
(570) 748-6611 x108 

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


RE: [PHP] How to ensure cookies are turned on.

2004-11-29 Thread Thomas S. Crum - AAA Web Solution, Inc.
There is no global variable.

Set a cookie the when they hit the login page and then check to be sure that
cookie isset when they post to it.

Example for login.php:

?
setcookie(cookie_check,1);

if ($LoginButton == Login){

if ($cookie_check != 1){
header (Location: no_cookies.php);
exit;
}
# THE BALANCE OF YOUR SCRIPT - If they got here they have cookies enabled.
}
?
form method=post action=?= $PHP_SELF ?
!-- THE BALANCE OF YOUR FORM --
/form

Best,

Thomas S. Crum


-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 29, 2004 6:40 PM
To: M. Sokolewicz
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] How to ensure cookies are turned on.

M. Sokolewicz wrote:
 Marek Kilimajer wrote:
 
 Gary Reimer wrote:

 Hello;

 I'm working on a website that uses sessions as an integral part of 
 the site. If cookies are not turned on in the browser, my site will 
 not work. I've been searching unsuccessfully to find the way to 
 determine if the browser has cookies enabled.  I want to warn the 
 user that the site won't work if they have cookies turned off. There 
 must be some global variable that tells me. Could someone help me out?



 If the cookie you set is not send back, the cookies are turned off 
 (unless you screwed up). You can redirect user to a turn on your 
 cookies page at a point where cookies are really required and none is 
 send.
 
 and how would you know that? unless you specify an alternative string 
 using GET ofcourse
 

By where cookies are really required I meant for example login page. 
If you find out that session cookie is not set while handling login 
form, you know that cookies are off.

The alternative you are talking about is also possible, but you have to 
be carefull so that these pages are not indexed by search engines.

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

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



Re: [PHP] How to ensure cookies are turned on.

2004-11-29 Thread Marek Kilimajer
M. Sokolewicz wrote:
Marek Kilimajer wrote:
Gary Reimer wrote:
Hello;
Im working on a website that uses sessions as an integral part of 
the site. If cookies are not turned on in the browser, my site will 
not work. Ive been searching unsuccessfully to find the way to 
determine if the browser has cookies enabled.  I want to warn the 
user that the site wont work if they have cookies turned off. There 
must be some global variable that tells me. Could someone help me out?

If the cookie you set is not send back, the cookies are turned off 
(unless you screwed up). You can redirect user to a turn on your 
cookies page at a point where cookies are really required and none is 
send.
and how would you know that? unless you specify an alternative string 
using GET ofcourse

By where cookies are really required I meant for example login page. 
If you find out that session cookie is not set while handling login 
form, you know that cookies are off.

The alternative you are talking about is also possible, but you have to 
be carefull so that these pages are not indexed by search engines.

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


[PHP] Re: off list RE: [PHP] PHP and Frames?

2004-11-29 Thread Jake McHenry
- Original Message - 
From: Chris W. Parker [EMAIL PROTECTED]
To: Jake McHenry [EMAIL PROTECTED]
Sent: Monday, November 29, 2004 6:36 PM
Subject: off list RE: [PHP] PHP and Frames?


Jake McHenry mailto:[EMAIL PROTECTED]
   on Monday, November 29, 2004 3:30 PM said:
Right now I only have 1 php file, which is outputing all of the html.
Is there a way I can have that 1 php file output the frame source
page, along with the links, header, and target page? As I said, I
could have the php file output the html to the actual files, but is
there a way I have have all this in 1 php file? That's what I'm
asking I guess
Oh yeah sure. That's easy.
(mind you, i haven't written a proper frameset in a long time so my tags
might be wrong.)
?php
echo QQQ
frameset
frame name=header ... /
frame name=nav ... /
frame name=content ... /
/frameset
QQQ;
?
You say you want the 'content' frame to load different pages right? Well
then you'll have to pass a value to the frameset page to determine which
page should be loaded.
http://www.yourdomain.com/frameset.php?content=products.pdf
?php
// Remember to always validate input and
// not blindly display any page like I am
// doing here in my example.
$content_page = $_GET['content'];
echo QQQ
frameset
frame name=header ... /
frame name=nav ... /
frame name=content src=$content_page ... /
/frameset
QQQ;
?
Does this help?
Chris.




What about the links? what do I assign the frame src of the links to if the 
php file is generating the output?

right now the php file is generating the links, I want to turn that into 
frames, but all in one php file. So if I put the frame src before the html 
output that I have now, how can I output the links in the same php file? and 
the header? I get what you said about the target frame, but not sure how I'm 
going to get the output into the right frames. It's been a long day, maybe 
I'm just not seeing this right?

Thanks,
Jake McHenry
Nittany Travel MIS Coordinator
http://www.nittanytravel.com
(570) 748-6611 x108 

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


[PHP] Do i have to recompile php?

2004-11-29 Thread newbin shang
Hi all.
I am now using mysql-5.0.0-alpha, recently I have encountered some
error when I create tables, so I want to degrade to the latest stable
version of mysql(say 4.1.7)
I want to know that once I have recompiled mysql, do I have to
recompile php too(php is compiled as a module of apache)?

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



Re: [PHP] UNDEFINED VARIABLE ON LOCALHOST

2004-11-29 Thread Ross Hulford
It was my error reporting.forgot I replaced my ini file.
John Nichel [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Ross Hulford wrote:
 I have a porblem with undefined variables on loacalhost. Any ideas why? I 
 have turned registed variables on.


 R.

 Without seeing any code, I'm going to guess that you haven't defined a 
 variable before trying to use it.  Wanna make it go away?  Turn off 
 'notices' in your error reporting, or make sure your variables are defined 
 before you try to use them.

 -- 
 John C. Nichel
 ÜberGeek
 KegWorks.com
 716.856.9675
 [EMAIL PROTECTED] 

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



[PHP] Re: Do i have to recompile php?

2004-11-29 Thread Matthew Weier O'Phinney
* Newbin Shang [EMAIL PROTECTED]:
 I am now using mysql-5.0.0-alpha, recently I have encountered some
 error when I create tables, so I want to degrade to the latest stable
 version of mysql(say 4.1.7)
 I want to know that once I have recompiled mysql, do I have to
 recompile php too(php is compiled as a module of apache)?

Typically, the answer is yes -- you have to compile PHP with the version
of mysql you are using.  (When I say version of mysql, I mean 3.x,
4.0.x, 4.1.x, 5.0.x). In rare cases where the client API did not change,
you can get away without recompiling.

Since you're downgrading from mysql 5.0 to 4.1, however, you may be
okay. My understanding is that 5.0 is a superset of 4.1 when it comes to
the API; as long as you don't try to use mysql 5.0 features, it may
work.

Best way to know is probably to try it out. Are you having issues? If
not, don't recompile. However, if you start having issues at all with
mysql from PHP, recompile.

-- 
Matthew Weier O'Phinney   | mailto:[EMAIL PROTECTED]
Webmaster and IT Specialist   | http://www.garden.org
National Gardening Association| http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org

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



[PHP] cannot send mail through localhost

2004-11-29 Thread Ross Hulford
I am trying to test my form locally, however it doesn't get picked up  my
mailbox.

The form is fine and I even set the access in IIS to 127.0.0.1 so the relay
error is not a porblem anymore. This must be a setup problem.

The mail is a standard mailform. I just use IIS thought a mail server is in
place when Iinstalled it.

I get no errors. Telnet is working on port 23 microsofts esmtp service
ready...


Do I have to start the mail server as a service? If so how do Ido this?


Ross


Help please,


Ross

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



Re: [PHP] similar function like getimagesize for Quicktime?

2004-11-29 Thread Dustin Krysak
On 29-Nov-04, at 3:54 AM, Marek Kilimajer wrote:
Dustin Krysak wrote:
Hi there - I was wondering if there was some kind of PHP function to 
determine hte pixel size of a quicktime movie. Something like what 
GetImageSize() is to images, but for quicktime.
Not in php. Search for programs that you can execute from command line 
for your platform.
Just for everyone's reference, here is a pretty cool package for 
parsing media files (various video and audio) for common information. 
Works great.

http://www.getid3.org/
d
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP arrays and javascript

2004-11-29 Thread Marek Kilimajer
Nick Peters wrote:
Marek Kilimajer wrote:

Nick Peters wrote:
Hey,
i know this probally a simple question, but it has been stumping me for
quite some time now. How do i pass a php array to a javascript?
i tryed:
script language=javascript
var myarray = new Array(?PHP echo $myarray; ?);
/script
but it didn't work. Anybody got any ideas?
thanks in advance.
For integers and floats:
var myarray = new Array(?PHP echo implode(', ', $myarray); ?);
For strings:
var myarray = new Array(?PHP echo ''. implode(', ', $myarray) .'';
?);

Would this work the same for multidimensional arrays?
no
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP arrays and javascript

2004-11-29 Thread Hodicska Gergely
Hi!
 Would this work the same for multidimensional arrays?
Encoding was a special feature needed by me, maybe you don't need it.
Usage:
myArray = array(...);
echo 'script'.arrayToJsArray($myArray, 'myArray').'/script';
Felho
--- 8 --- arrayToJsArray.php --- 8 ---
?
function valueToJsValue($value, $encoding = false)
{
if (!is_numeric($value)) {
$value = str_replace('\\', '', $value);
$value = str_replace('', '\', $value);
$value = ''.$value.'';
}
if ($encoding) {
switch ($encoding) {
case 'utf8' :
return iconv(ISO-8859-2, UTF-8, $value);
break;
}
} else {
return $value;
}
}
function arrayToJsArray( $array, $name, $nl = \n, $encoding = 
false ) {
if (is_array($array)) {
$jsArray = $name . ' = new Array();'.$nl;
foreach($array as $key = $value) {
switch (gettype($value)) {
case 'unknown type':
case 'resource':
case 'object':
break;
case 'array':
$jsArray .= arrayToJsArray($value, 
$name.'['.valueToJsValue($key, $encoding).']', $nl);
break;
case 'NULL':
$jsArray .= $name.'['.valueToJsValue($key, 
$encoding).'] = null;'.$nl;
break;
case 'boolean':
$jsArray .= $name.'['.valueToJsValue($key, 
$encoding).'] = '.($value ? 'true' : 'false').';'.$nl;
break;
case 'string':
$jsArray .= $name.'['.valueToJsValue($key, 
$encoding).'] = '.valueToJsValue($value, $encoding).';'.$nl;
break;
case 'double':
case 'integer':
$jsArray .= $name.'['.valueToJsValue($key, 
$encoding).'] = '.$value.';'.$nl;
break;
default:
trigger_error('Hoppa, egy új típus a PHP-ben? 
'.__CLASS__.'::'.__FUNCTION__.'()!', E_USER_WARNING);
}
}
return $jsArray;
} else {
return false;
}
}
?
--- 8 --- arrayToJsArray.php --- 8 ---

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


[PHP] HTTP Authenticate via PHP

2004-11-29 Thread Jeffery Fernandez
Hi,
I am trying to find out if its possible to authenticate a page against 
an HTTP authentication. Basically what I am trying to do is make 
available the stats page of the Cpanel to the admin interface of a site. 
When accessing the stats via the cpanel the user needs to login via http 
authentication.

Is it possible for me to store the username password credentials within 
the php page and pass that across via headers to authenticate the page 
for viewing the stats. The main purpose is to make the webstats 
transparent to the admin user so they don't have to enter any 
username/password. I tried putting the username:[EMAIL PROTECTED] into the 
url of an iframe page(session controlled) but stupid IE spits the 
authentication as a pop-up (login window). Hope I have explained well 
enough.

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


[PHP] RE: [Lamp-user] [PHP] Pasting text from MS Word into PHPmyAdmin

2004-11-29 Thread Giz
I think by default phpmyadmin wants to use the iso-8859-1 character set.
This matches the typical mysql Latin-1 character set which is also 8859-1.

So I think where the issue may be is that Word is not using 8859-1.
Figuring this out is not easy, but the basic idea is that you are probably
having the default Western European (Windows) character set, which is
Windows character set Windows-1252.  

Although this is supposed to be *mostly* Latin-1 compatible, it's actually
different in some ways. So when you are cutting your 1252 code page snippets
and pasting em to the 8859-1 page, you're losing some stuff.  You can *try*
this but I have no way of replicating the experiment on my end.

In Word:

Tools|Options|General

Find the Web Options button

Use encoding tab, and change your character set to Western European (ISO).
If that doesn't wreck the original document, then perhaps you'll be able to
cut and paste as you expect.  

Best of luck with it.  If nothing else, this discussion might hopefully
point you in a direction that will lead to to solving your garbled chars
mystery.



-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
Graham Anderson
Sent: Monday, November 29, 2004 4:54 PM
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Subject: [Lamp-user] [PHP] Pasting text from MS Word into PHPmyAdmin


I am copy/pasting text from a microsoft word doc into 
phpmyadmin are there any special tricks to avoid strange 
characters...most of my 
text is in Spanish
The only thing that seems to work is converting the text to 
ASCII which 
ditches all the Spanish formatting :(
is there some process to make this a painless process ?

g

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


___
Lamp-user mailing list
[EMAIL PROTECTED] 
http://maillist.lampsig.org/mailman/listinfo/lamp-user_maillist
.lampsig.org

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