php-general Digest 1 Aug 2010 04:32:47 -0000 Issue 6874

Topics (messages 307267 through 307275):

Re: Text  editor for Ubuntu with FTP
        307267 by: Ashley Sheridan
        307268 by: Robert Cummings
        307275 by: David Robley

Need help calling multiple functions with if_is
        307269 by: Vince Leibowitz
        307270 by: Jason Pruim
        307271 by: Vince Leibowitz
        307272 by: Jason Pruim
        307273 by: Peter Lind
        307274 by: Vince Leibowitz

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]


----------------------------------------------------------------------
--- Begin Message ---
On Sat, 2010-07-31 at 13:03 +0200, Jordan Jovanov wrote:

> Hello to All,
> 
> I only whant to star discussion for who is the best programm to write 
> php and html script. I use dreamweaver, but now I change my OS to ubuntu
> and I want some suggestions for some Text editor for FTP for Ubuntu
> 
> 
> Thanks A lot
> Jordan Jovanov
> 


If you want a text editor on Linux, then I've found Kate pretty good.
However, if you're looking for something a bit more like Dreamweaver
without the WYSIWG editor, then I strongly recommend Netbeans for PHP. I
use it myself, and it has amazing code hinting features.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--- End Message ---
--- Begin Message ---
On 10-07-31 07:03 AM, Jordan Jovanov wrote:
Hello to All,

I only whant to star discussion for who is the best programm to write
php and html script. I use dreamweaver, but now I change my OS to ubuntu
and I want some suggestions for some Text editor for FTP for Ubuntu

Just mount the FTP connection to a local directory and use any text editor as if the file was on your local system. Use autofs and the connection will mount/unmount as you need it.

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.

--- End Message ---
--- Begin Message ---
Jordan Jovanov wrote:

> Hello to All,
> 
> I only whant to star discussion for who is the best programm to write
> php and html script. I use dreamweaver, but now I change my OS to ubuntu
> and I want some suggestions for some Text editor for FTP for Ubuntu
> 
> 
> Thanks A lot
> Jordan Jovanov

Ah, it's the time of year for an editor thread again :-) Have a look at
http://www.php-editors.com/ or
http://en.wikipedia.org/wiki/List_of_PHP_editors or even google "php
editor"

As for "best" that can be very subjective depending on what _you_ want the
editor to do.


Cheers
-- 
David Robley

System going down at 1:45 p.m. for disk crashing.
Today is Pungenday, the 67th day of Confusion in the YOLD 3176. 


--- End Message ---
--- Begin Message ---
Hello,

This is my first time to post to the list. I've been working with PHP
for several years as a WordPress user, but I've come upon a problem I
can't solve.
I am trying to call up a specific php function (a plugin that displays
ads) if the page is the home page, another specific function if the
page is a specific page number, and another specific function if the
page is another page. So far, this is what I have come up with, but it
doesn't work. I suspect it is because I am using the wrong syntax or
something. If anyone can help, it would be appreciated:

<?php if (is_home(<?php wpads('728leaderboard'); ?>)
(is_page(42)(<?php wpads('leaderboard1'); ?> (is_page(10)(<php?
wpads('leaderboard5);?>) >?

I suspect I am either not using the appropriate number of spaces, or
am not using the right syntax when trying to call different objects or
functions if the page is different. I've manipulated php code before,
but never to this extent.

If anyone can help me out, I'd really appreciate it.

Vince

--- End Message ---
--- Begin Message ---
Hi Vince,


On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote:

<?php if (is_home(<?php wpads('728leaderboard'); ?>)
(is_page(42)(<?php wpads('leaderboard1'); ?> (is_page(10)(<php?
wpads('leaderboard5);?>) >?

Try:


<?php

if (is_home(wpads('728leaderboard');)

(is_page(42)( wpads('leaderboard1')

(is_page(10)(wpads('leaderboard5))

?>

All I did was pull out all the jumps into PHP since the whole thing is a php if statement I didn't see the need to keep opening and closing php... Unless I'm not understanding why you are :)



--- End Message ---
--- Begin Message ---
That looks like it should work, but it doesn't. There isn't a reason
to close the embedded php statements, but I suspect wpads isn't
recognizing the call when it is embedded like this. It just brings up
a blank page in all instances, which is the same issue I was having
with the original code string.

On Sat, Jul 31, 2010 at 2:25 PM, Jason Pruim <[email protected]> wrote:
> Hi Vince,
>
>
> On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote:
>>
>> <?php if (is_home(<?php wpads('728leaderboard'); ?>)
>> (is_page(42)(<?php wpads('leaderboard1'); ?> (is_page(10)(<php?
>> wpads('leaderboard5);?>) >?
>
> Try:
>
>
>> <?php
>
>> if (is_home(wpads('728leaderboard');)
>
>> (is_page(42)( wpads('leaderboard1')
>
>> (is_page(10)(wpads('leaderboard5))
>
> ?>
>
> All I did was pull out all the jumps into PHP since the whole thing is a php
> if statement I didn't see the need to keep opening and closing php... Unless
> I'm not understanding why you are :)
>
>
>



-- 
~~~~~~~~~~~~~~
Vince Leibowitz
CapitolAnnex.com
twitter.com/CapitolAnnex
myspace.com/capitolannex facebook.com/profile.php?id=501233189
[email protected]
AOL, MSN, Yahoo: vpltz || ICQ: 118433437

--- End Message ---
--- Begin Message ---

On Jul 31, 2010, at 3:34 PM, Vince Leibowitz wrote:

That looks like it should work, but it doesn't. There isn't a reason
to close the embedded php statements, but I suspect wpads isn't
recognizing the call when it is embedded like this. It just brings up
a blank page in all instances, which is the same issue I was having
with the original code string.

On Sat, Jul 31, 2010 at 2:25 PM, Jason Pruim <[email protected] > wrote:
Hi Vince,


On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote:

<?php if (is_home(<?php wpads('728leaderboard'); ?>)
(is_page(42)(<?php wpads('leaderboard1'); ?> (is_page(10)(<php?
wpads('leaderboard5);?>) >?

Try:


<?php

if (is_home(wpads('728leaderboard');)

(is_page(42)( wpads('leaderboard1')

I just noticed right here... You're missing a ' which would cause problems... Very possibly what would fix it in fact

(is_page(10)(wpads('leaderboard5))

?>

All I did was pull out all the jumps into PHP since the whole thing is a php if statement I didn't see the need to keep opening and closing php... Unless
I'm not understanding why you are :)






--
~~~~~~~~~~~~~~
Vince Leibowitz
CapitolAnnex.com
twitter.com/CapitolAnnex
myspace.com/capitolannex facebook.com/profile.php?id=501233189
[email protected]
AOL, MSN, Yahoo: vpltz || ICQ: 118433437


--- End Message ---
--- Begin Message ---
On 31 July 2010 21:34, Vince Leibowitz <[email protected]> wrote:
> That looks like it should work, but it doesn't. There isn't a reason
> to close the embedded php statements, but I suspect wpads isn't
> recognizing the call when it is embedded like this. It just brings up
> a blank page in all instances, which is the same issue I was having
> with the original code string.
>
> On Sat, Jul 31, 2010 at 2:25 PM, Jason Pruim <[email protected]> 
> wrote:
>> Hi Vince,
>>
>>
>> On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote:
>>>
>>> <?php if (is_home(<?php wpads('728leaderboard'); ?>)
>>> (is_page(42)(<?php wpads('leaderboard1'); ?> (is_page(10)(<php?
>>> wpads('leaderboard5);?>) >?
>>
>> Try:
>>
>>
>>> <?php
>>
>>> if (is_home(wpads('728leaderboard');)
>>
>>> (is_page(42)( wpads('leaderboard1')
>>
>>> (is_page(10)(wpads('leaderboard5))
>>
>> ?>
>>
>> All I did was pull out all the jumps into PHP since the whole thing is a php
>> if statement I didn't see the need to keep opening and closing php... Unless
>> I'm not understanding why you are :)
>>
>>
>>
>

<?php
    if (is_home) wpads('728leaderboard');
    elseif (is_page(42)) wpads('leaderboard1');
    elseif (is_page(10)) wpads('leaderboard5);
?>

That's assuming you just want to call wpads. If you want to output the
return of wpads, stick echos in there.

And might I kindly ask of you to please read
http://dk2.php.net/manual/en/control-structures.if.php and
http://dk2.php.net/manual/en/language.basic-syntax.phpmode.php

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>

--- End Message ---
--- Begin Message ---
Peter,

That works like a dream! Thanks very much for your help and pointing
me to those pages. I've already noticed something over there that will
fix another problem I've been having.

You folks are great for offering the assistance. Have a good weekend.

Vince

On Sat, Jul 31, 2010 at 2:50 PM, Peter Lind <[email protected]> wrote:
> On 31 July 2010 21:34, Vince Leibowitz <[email protected]> wrote:
>> That looks like it should work, but it doesn't. There isn't a reason
>> to close the embedded php statements, but I suspect wpads isn't
>> recognizing the call when it is embedded like this. It just brings up
>> a blank page in all instances, which is the same issue I was having
>> with the original code string.
>>
>> On Sat, Jul 31, 2010 at 2:25 PM, Jason Pruim <[email protected]> 
>> wrote:
>>> Hi Vince,
>>>
>>>
>>> On Jul 31, 2010, at 3:15 PM, Vince Leibowitz wrote:
>>>>
>>>> <?php if (is_home(<?php wpads('728leaderboard'); ?>)
>>>> (is_page(42)(<?php wpads('leaderboard1'); ?> (is_page(10)(<php?
>>>> wpads('leaderboard5);?>) >?
>>>
>>> Try:
>>>
>>>
>>>> <?php
>>>
>>>> if (is_home(wpads('728leaderboard');)
>>>
>>>> (is_page(42)( wpads('leaderboard1')
>>>
>>>> (is_page(10)(wpads('leaderboard5))
>>>
>>> ?>
>>>
>>> All I did was pull out all the jumps into PHP since the whole thing is a php
>>> if statement I didn't see the need to keep opening and closing php... Unless
>>> I'm not understanding why you are :)
>>>
>>>
>>>
>>
>
> <?php
>    if (is_home) wpads('728leaderboard');
>    elseif (is_page(42)) wpads('leaderboard1');
>    elseif (is_page(10)) wpads('leaderboard5);
> ?>
>
> That's assuming you just want to call wpads. If you want to output the
> return of wpads, stick echos in there.
>
> And might I kindly ask of you to please read
> http://dk2.php.net/manual/en/control-structures.if.php and
> http://dk2.php.net/manual/en/language.basic-syntax.phpmode.php
>
> 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>
>



-- 
~~~~~~~~~~~~~~
Vince Leibowitz
CapitolAnnex.com
twitter.com/CapitolAnnex
myspace.com/capitolannex facebook.com/profile.php?id=501233189
[email protected]
AOL, MSN, Yahoo: vpltz || ICQ: 118433437

--- End Message ---

Reply via email to