Re: [PHP] opening link in new window

2010-07-23 Thread Shreyas Agasthya
I am not sure how PHP can help here. I am sure there must be a way out.

With JavaScript, it s certainly possible. You can try window.open() to make
this happen. It can accept a lot of parameters and a google search should
give you a lot of answers.

--Shreyas

On Fri, Jul 23, 2010 at 10:58 AM, David Mehler dave.meh...@gmail.comwrote:

 Hello,
 I've got a page with an external link. I'd like to open it in a new
 window, but i'm using the xhtml 1.0 strict dtd so this isn't possible.
 I was wondering if php could pull this off? Failing that, and not
 really wanting to go there, would javascript work for this?
 Thanks.
 Dave.

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




-- 
Regards,
Shreyas Agasthya


Re: [PHP] opening link in new window

2010-07-23 Thread Peter Lind
On 23 July 2010 12:23, Shreyas Agasthya shreya...@gmail.com wrote:
 I am not sure how PHP can help here. I am sure there must be a way out.

 With JavaScript, it s certainly possible. You can try window.open() to make
 this happen. It can accept a lot of parameters and a google search should
 give you a lot of answers.

 --Shreyas

PHP is serverside so no, it can't help here. When using xhtml strict,
your only option is to use JS for opening links in new windows.

Regards
Peter

-- 
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
/hype

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



[PHP] Retaining scroll position after asynchronous refresh

2010-07-23 Thread Larry Martell
Hello all-

I have a php script that generates a web page with a bunch of
scrollable frames, and then asynchronously refreshes the page. If the
user has scrolled down in any of the frames, when the refresh occurs
it has scrolled back to the top of all the frames. Is there a way I
can retain the scroll position so after the refresh the frames are
shown at the same location as before the refresh? I have googled and
googled for this, but everything I find is ASP or C# or Java. My stuff
is straight php/html. How can I do this with that?

TIA!
-larry

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



[PHP] Re: php array in different OS

2010-07-23 Thread Colin Guthrie

'Twas brillig, and fyang at 22/07/10 03:34 did gyre and gimble:

Dear Bob McConnell,
Thank you for your reply.
I really post the same message eight times because of the first e-mail 
authentication.please remove the extra e-mail in your free time.
There are two servers ,the first installation of 32-bit linux(RHEL),the 
second installlation 64-bit linux(CENTOS).
PHP version on 32-bit linux(RHEL):5.2.7
PHP version on 64-bit linux(CENTOS):5.2.13
   I found this problem,because the software transplantation.In the 64-bit 
systems,the array seems to always have limited capacity. I'm not sure that is 
php version problem or need other configurations.


I suspect it's just different configuration.

That said, I've generally found that 64bit versions of PHP need more 
memory than their 32bit equivs, so perhaps all you need to do is 
something like:


ini_set('memory_limit', '50M');

and you'll be fine.

Col


--

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mandriva Linux Contributor [http://www.mandriva.com/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]


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



Re: [PHP] Retaining scroll position after asynchronous refresh

2010-07-23 Thread Hans Åhlin
I't was a long time ago when i programed in js but the first thin that pops
up in my mind is that there is a function where you can read and set the
values of the scrollbars.

I found this when I googled it:
http://www.eggheadcafe.com/community/aspnet/3/10002280/scroll-positions.aspx

http://www.eggheadcafe.com/community/aspnet/3/10002280/scroll-positions.aspx
http://www.daniweb.com/forums/thread60189.html


**
 Hans Åhlin
   Tel: +46761488019
   icq: 275232967
   http://www.kronan-net.com/
   irc://irc.freenode.net:6667 - TheCoin
**


2010/7/23 Larry Martell larry.mart...@gmail.com

 Hello all-

 I have a php script that generates a web page with a bunch of
 scrollable frames, and then asynchronously refreshes the page. If the
 user has scrolled down in any of the frames, when the refresh occurs
 it has scrolled back to the top of all the frames. Is there a way I
 can retain the scroll position so after the refresh the frames are
 shown at the same location as before the refresh? I have googled and
 googled for this, but everything I find is ASP or C# or Java. My stuff
 is straight php/html. How can I do this with that?

 TIA!
 -larry

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




[PHP] Tutte le soluzioni per recuperare un RAID

2010-07-23 Thread RDNewsLetter
Per venire incontro alle diverse esigenze del mercato è stata realizzata la 
promozione EcoRAID, che include ispezione gratuita. Infatti se i files
vengono recuperati pagherete solo 600,00€ per ogni disco che compone il RAID 
(mirror e spare inclusi).

E' proprio così se non recuperiamo nulla non si paga nulla, anche per un RAID.
( Percentuale di recuperi positivi sui RAID è di oltre il 90 % )

Per ulteriori informazioni contattaci:

- 800.031.677 (Italia)
- 091.68.20.545 (Svizzera)

Il servizio EcoRAID ha una durata limitata nel tempo, a discrezione della 
direzione di RD data Rescue Sagl che ne comunicherà il termine con una
nuova comunicazione.

__

Cogliamo l'occasione per comunicare i nuovi costi di ispezione per i servizi 
classici:

* Standard  80,00€per ogni HD che compone il RAID
* Priorità 120,00€per ogni HD che compone il RAID
* Emergenza240,00€per ogni HD che compone il RAID

__

 
Cambia la tua sottoscrizione (
http://lnx.rddatarescue.it/joomla/index.php?option=com_acajoomItemid=999act=changesubscriber=88083cle=7c921edaf253c451737bf94d12a5b3bclistid=45
 )
Cancellati (
http://lnx.rddatarescue.it/joomla/index.php?option=com_acajoomItemid=999act=unsubscribesubscriber=88083cle=7c921edaf253c451737bf94d12a5b3bclistid=45
)

Powered by Joobi ( http://www.ijoobi.com )


Re: [PHP] Retaining scroll position after asynchronous refresh NOT PHP

2010-07-23 Thread tedd

At 6:31 AM -0600 7/23/10, Larry Martell wrote:

Hello all-

I have a php script that generates a web page with a bunch of
scrollable frames, and then asynchronously refreshes the page. If the
user has scrolled down in any of the frames, when the refresh occurs
it has scrolled back to the top of all the frames. Is there a way I
can retain the scroll position so after the refresh the frames are
shown at the same location as before the refresh? I have googled and
googled for this, but everything I find is ASP or C# or Java. My stuff
is straight php/html. How can I do this with that?

TIA!
-larry


-larry:

This not really a PHP problem, but rather a javascript problem. After 
all, the problem surfaces client-side, right?


So, to not offend this list with a non-PHP solution, I am sending you 
the code privately.


Cheers,

tedd

--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] Retaining scroll position after asynchronous refresh NOT PHP

2010-07-23 Thread Daniel P. Brown
On Fri, Jul 23, 2010 at 12:09, tedd tedd.sperl...@gmail.com wrote:

 This not really a PHP problem, but rather a javascript problem. After all,
 the problem surfaces client-side, right?

 So, to not offend this list with a non-PHP solution, I am sending you the
 code privately.

Well, it *is* Friday

P.S. - Tedd, when you get a chance, call my cell phone really quick, please.

-- 
/Daniel P. Brown
UNADVERTISED DEDICATED SERVER SPECIALS
SAME-DAY SETUP
Just ask me what we're offering today!
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/

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



Re: [PHP] Retaining scroll position after asynchronous refresh

2010-07-23 Thread tedd

At 6:31 AM -0600 7/23/10, Larry Martell wrote:

Hello all-

I have a php script that generates a web page with a bunch of
scrollable frames, and then asynchronously refreshes the page. If the
user has scrolled down in any of the frames, when the refresh occurs
it has scrolled back to the top of all the frames. Is there a way I
can retain the scroll position so after the refresh the frames are
shown at the same location as before the refresh? I have googled and
googled for this, but everything I find is ASP or C# or Java. My stuff
is straight php/html. How can I do this with that?

TIA!
-larry



I forgot, this *is* Friday (as Daniel reminded me) -- so everyone 
here's the code I provided to Larry.



-larry:

This is a problem that can be solved via javascript. The process is 
that you create a cookie containing the scroll position value before 
the operation (whatever that may be) and then you restore the page 
back to where it was after the operation.


The following is the javascript code I wrote several years ago -- it 
works for me.


Cheers,

tedd

--- javascript ---

addLoadListener(init);

function init()
{
window.onscroll = function()
{
var scrollpos = getScrollingPosition();
document.title = 'left=' + scrollpos[0] + ' top=' + scrollpos[1];

//--create a cookie named scrollPosition and put the vertical 
scroll amount in the value

var cookieName = scrollPosition;
var cookieValue = scrollpos[1];
var theCookie = cookieName + = + cookieValue;
document.cookie = theCookie;   


};

return true;
}

function getScrollingPosition()
{
var position = [0, 0];

if (typeof window.pageYOffset != 'undefined')
{
position = [
window.pageXOffset,
window.pageYOffset
];
}

else if (typeof document.documentElement.scrollTop != 'undefined'
 (document.documentElement.scrollTop  0 ||
document.documentElement.scrollLeft  0))
{
position = [
document.documentElement.scrollLeft,
document.documentElement.scrollTop
];
}

else if (typeof document.body.scrollTop != 'undefined')
{
position = [
document.body.scrollLeft,
document.body.scrollTop
];
}

return position;
}

function addLoadListener(fn)
{
if (typeof window.addEventListener != 'undefined')
{
window.addEventListener('load', fn, false);
}
else if (typeof document.addEventListener != 'undefined')
{
document.addEventListener('load', fn, false);
}
else if (typeof window.attachEvent != 'undefined')
{
window.attachEvent('onload', fn);
}
else
{
var oldfn = window.onload;
if (typeof window.onload != 'function')
{
window.onload = fn;
}
else
{
window.onload = function()
{
oldfn();
fn();
};
}
}
}

function getCookie(searchName)
{
var cookies = document.cookie.split(;);

for (var i = 0; i  cookies.length; i++)
{
var cookieCrumbs = cookies[i].split(=);
var cookieName = cookieCrumbs[0];
var cookieValue = cookieCrumbs[1];

if (cookieName == searchName)
{
return cookieValue;
}
}
return false;
}

function myscroll()
{
// on load the cookie scrollPosition's value is read and scrolled to
var scrollValue = getCookie(scrollPosition);
window.scrollTo(0, scrollValue);
}



--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

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



Re: [PHP] Retaining scroll position after asynchronous refresh NOT PHP

2010-07-23 Thread Nathan Nobbe
On Fri, Jul 23, 2010 at 10:09 AM, tedd tedd.sperl...@gmail.com wrote:

 At 6:31 AM -0600 7/23/10, Larry Martell wrote:

 Hello all-

 I have a php script that generates a web page with a bunch of
 scrollable frames, and then asynchronously refreshes the page. If the
 user has scrolled down in any of the frames, when the refresh occurs
 it has scrolled back to the top of all the frames. Is there a way I
 can retain the scroll position so after the refresh the frames are
 shown at the same location as before the refresh? I have googled and
 googled for this, but everything I find is ASP or C# or Java. My stuff
 is straight php/html. How can I do this with that?


how are you doing the refresh?  a location header or http meta tag?  both of
those are gross imo - try ajax and i bet your problem goes away.

-nathan


[PHP] SOAP ERROR - Encoding

2010-07-23 Thread Augusto Flavio
Hi guys,


I created a simple wsdl web service. Everything works fine, but when I
fill the fields with accents and send the soap request, the PHP
returns me an error:


Fatal error: Uncaught SoapFault exception: [Client] SOAP-ERROR:
Encoding: string 'ol\xe1...' is not a valid utf-8 string in
PATH\cilent.php 16 Stack trace: #0 [internal function]:
SoapClient-__call('Send', Array) #1 PATH\cilent.php(16):
SoapClient-Send(Array) #2 {main} thrown in PATH\cilent.php on line 16


I tested this same request using the eclipse web service explorer(It's
a java client web service inside the eclipse IDE) and the response was
ok.


I found few topics about this issue on the google. One related
solution to this problem is use the utf8_encode() function. I tried
add this function before to send the soap request but didnt worked.


I think that this problem is in the PHP soap client because using the
eclipse web service explorer it works fine.


Here is my php soap client:


$client = new SoapClient('http://app/webservice.wsdl');
$return = $client-Send(array('token' = '123123', 'message' = array(
'text' = 'This is a string with special characters á é í ó ú', 'dest'
= 'John', 'sender' = 'Augusto')));

As I said I tried to use the utf8_encode() here:

$return = $client-Send(array('token' = '123123', 'message' = array(
'text' = utf8_encode('This is a string with special characters á é í
ó ú'), 'dest' = 'John', 'sender' = 'Augusto')));

But the problem still.

I tried also add the propertie defencoding in the soap server:

$server-soap_defencoding = 'UTF-8';

But still not working.


What I'm missing?



Thanks



Augusto Morais

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



Re: [PHP] Video lessons

2010-07-23 Thread Dan Joseph
On Thu, Jul 22, 2010 at 10:04 AM, Jordan Jovanov jovanovj...@gmail.comwrote:

 Im thing that I'm little layse, Do you somebody know PHP VIDEO LESSONS?


I'm not sure exactly what you're meaning there, but check out www.lynda.com

-- 
-Dan Joseph

http://www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month.
Promo Code NEWTHINGS for 10% off initial order -- Reseller Plans also
available!

http://www.facebook.com/canishosting
http://www.facebook.com/originalpoetry
http://www.facebook.com/teaserleaguehttp://www.facebook.com/apps/application.php?id=135491833139465


Re: [PHP] Video lessons

2010-07-23 Thread David Hutto
On Fri, Jul 23, 2010 at 2:35 PM, Dan Joseph dmjos...@gmail.com wrote:
 On Thu, Jul 22, 2010 at 10:04 AM, Jordan Jovanov jovanovj...@gmail.comwrote:

 Im thing that I'm little layse, Do you somebody know PHP VIDEO LESSONS?


 I'm not sure exactly what you're meaning there, but check out www.lynda.com

 --
 -Dan Joseph

 http://www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month.
 Promo Code NEWTHINGS for 10% off initial order -- Reseller Plans also
 available!

 http://www.facebook.com/canishosting
 http://www.facebook.com/originalpoetry
 http://www.facebook.com/teaserleaguehttp://www.facebook.com/apps/application.php?id=135491833139465

Have you tried searching at youtube, or google. I'd suggest 'php video
tutorials lessons' as the search term without out even trying it first
myself.

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



Re: [PHP] Video lessons

2010-07-23 Thread David Hutto
On Fri, Jul 23, 2010 at 8:13 PM, David Hutto smokefl...@gmail.com wrote:
 On Fri, Jul 23, 2010 at 2:35 PM, Dan Joseph dmjos...@gmail.com wrote:
 On Thu, Jul 22, 2010 at 10:04 AM, Jordan Jovanov 
 jovanovj...@gmail.comwrote:

 Im thing that I'm little layse, Do you somebody know PHP VIDEO LESSONS?


 I'm not sure exactly what you're meaning there, but check out www.lynda.com

 --
 -Dan Joseph

 http://www.canishosting.com - Unlimited Hosting Plans start @ $3.95/month.
 Promo Code NEWTHINGS for 10% off initial order -- Reseller Plans also
 available!

 http://www.facebook.com/canishosting
 http://www.facebook.com/originalpoetry
 http://www.facebook.com/teaserleaguehttp://www.facebook.com/apps/application.php?id=135491833139465

 Have you tried searching at youtube, or google. I'd suggest 'php video
 tutorials lessons' as the search term without out even trying it first
 myself.

I you want, you can copy and paste my suggestion into the search box,
that way it eliminates any excess activity on your part.

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



[PHP] Re: php array in different OS

2010-07-23 Thread Yang Fei
Dear Colin Guthrie ,

 Thanks for your help very much.
 According to your suggestion, I have solved the question.

best wish,
Yang Fei
2010-7-24


Re: [PHP] opening link in new window

2010-07-23 Thread Paul M Foster
On Fri, Jul 23, 2010 at 01:28:23AM -0400, David Mehler wrote:

 Hello,
 I've got a page with an external link. I'd like to open it in a new
 window, but i'm using the xhtml 1.0 strict dtd so this isn't possible.
 I was wondering if php could pull this off? Failing that, and not
 really wanting to go there, would javascript work for this?
 Thanks.
 Dave.

I take it

A HREF=newwindow.html TARGET=_blanka new window/A

is not part of the xhtml 1.0 strict dtd? Because I recently solved this
problem using the above syntax.

Paul

-- 
Paul M. Foster

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



Re: [PHP] opening link in new window

2010-07-23 Thread Robert Cummings

On 10-07-24 12:58 AM, Paul M Foster wrote:

On Fri, Jul 23, 2010 at 01:28:23AM -0400, David Mehler wrote:


Hello,
I've got a page with an external link. I'd like to open it in a new
window, but i'm using the xhtml 1.0 strict dtd so this isn't possible.
I was wondering if php could pull this off? Failing that, and not
really wanting to go there, would javascript work for this?
Thanks.
Dave.


I take it

A HREF=newwindow.html TARGET=_blanka new window/A

is not part of the xhtml 1.0 strict dtd? Because I recently solved this
problem using the above syntax.


The GP is correct, target=_blank is not valid XHTML 1.0 strict.

Here's some JavaScript to put in your page and run once the page 
completes loading. It looks for anchors having rel=nofollow and 
rel=external attributes in anchors and adds a target=_blank attribute.


function bahHumbugExternalLinks()
{
if( !document.getElementsByTagName )
{
return;
}

var anchor  = null;
var anchors = document.getElementsByTagName( 'a' );

for( var i = 0; i  anchors.length; i++ )
{
anchor = anchors[i];

if( anchor.getAttribute( 'href' ) )
{
if( anchor.getAttribute( 'rel' ) == 'nofollow'
||
anchor.getAttribute( 'rel' ) == 'external' )
{
anchor.target = _blank;
}
}
}
}


Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

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