|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general-digest-help
lists.php.net
Date: Mon Mar 03 2008 - 09:28:12 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php-general Digest 3 Mar 2008 15:28:12 -0000 Issue 5327
Topics (messages 270841 through 270858):
Re: Importing and exporting from MySQL, escape slash problem
270841 by: Chris
270843 by: Jed Reynolds
Weird Zend IDE Issue
270842 by: Steve Finkelstein
270844 by: Bojan Tesanovic
270852 by: Jochem Maas
270854 by: Steve Finkelstein
Re: Anyone jump from Studio 5.5.x -> Zend Eclipse?
270845 by: Bojan Tesanovic
270850 by: Nuno Mendes
270855 by: Thiago Pojda
270856 by: Edward Kay
Can PHP do this? -- w/o using event handler
270846 by: Louie Miranda
270848 by: Brice
270857 by: Bastien Koert
Re: Making sure an include file works
270847 by: Aschwin Wesselius
270849 by: Aschwin Wesselius
Re: Pear
270851 by: David Robley
Re: Get country from Phone number
270853 by: Dani Castaños
Re: Pear => Host?
270858 by: movies.biblescramble.com
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Richard Lynch wrote:
> It's possible that there is an .htaccess file in phpMyAdmin that has
> Magic Quotes on that is messing you up...
>
> Other than that, it's specific to phpMyAdmin, so maybe ask those guys
> what they did...
Also make sure you are running the latest version, in case it's
something they've addressed recently (depending on how long ago you
downloaded it of course :P).
--
Postgresql & php tutorials
http://www.designmagick.com/
attached mail follows:
Dave M G wrote:
> PHP List, MySQL List
>
> In my PHP environment, I have "Magic Quotes" turned off, and I use the
> mysql_real_escape_string() function clean strings of SQL syntax before
> inserting them into my database.
>
> So the data stored in my database does not have escape characters in
> it. Particularly, double and single quotes don't have slashes in front
> of them.
>
> This seems to work fine so long as I'm reading data into and out of
> the database from within my scripts.
>
> However, when I backup and import databases - I use the phpMyAdmin
> interface - they have escape slashes in front of every double and
> single quote characters. I'm not sure if it's on the export or import
> where they get added in.
It probably depends on what you mean by "exporting"...if you do a select
* into outfile it might remove them. If you're doing a mysql dump, it
will add them because it's constructing sql statements, and they have
to be escaped.
I would take phpMyAdmin out of the equation and just use mysqldump. You
should have no problem doing something like creating a scratch table,
dumping it, and re-importing from the dump.
mysql> create table B like table A;
mysql> insert into table B select * from A where c like "%'%" limit 10;
bash$ mysqldump --opt frumble B > b.sql
bash$ mysql -u -p frumble < b.sql
This should replace table B in database frumble without incident. If
you're having trouble importing a mysql dump using phpMyAdmin, it might
be simpler not to use it, and use mysqldump instead.
HTH
Jed
attached mail follows:
Hi all,
I know this isn't a forum for Zend IDE, but since there's probably a
decent population here using it, I figured I'd ask away.
I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that
all left brackets, (eg: [ ) are not showing up in the code editor. I
have a screenshot of it here: http://catalyst.httpd.org/zend.png
Has anyone ever experienced anything similar?
Thank you,
/sf
attached mail follows:
Did you try to restart Zend studio, I am using same setup as you are
except that my zend is 5.5.0 I never had problem with [ . though
sometimes editor goes crazy and (doesnt show all lines or hides some
characters at end of line ) but restarting Zend solves the problem,
if this issues continues with your setup you can report problem to
Zend ....
On Mar 3, 2008, at 6:07 AM, Steve Finkelstein wrote:
> Hi all,
>
> I know this isn't a forum for Zend IDE, but since there's probably a
> decent population here using it, I figured I'd ask away.
>
> I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that
> all left brackets, (eg: [ ) are not showing up in the code editor. I
> have a screenshot of it here: http://catalyst.httpd.org/zend.png
>
> Has anyone ever experienced anything similar?
>
> Thank you,
>
> /sf
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Bojan Tesanovic
http://www.carster.us/
attached mail follows:
Steve Finkelstein schreef:
> Hi all,
>
> I know this isn't a forum for Zend IDE, but since there's probably a
> decent population here using it, I figured I'd ask away.
>
> I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that
> all left brackets, (eg: [ ) are not showing up in the code editor. I
> have a screenshot of it here: http://catalyst.httpd.org/zend.png
>
> Has anyone ever experienced anything similar?
yes. choose a different font - at least that worked for me (you might
have to fiddle with font-size too).
>
> Thank you,
>
> /sf
>
attached mail follows:
I've tried both restarting the IDE and changing font type + size in my
preferences however this does not seem to render any effect on the
code editor.
Mind if I ask where you are changing the font so that we are on the same page?
Thanks,
/sf
On 3/3/08, Jochem Maas <jochem
iamjochem.com> wrote:
> Steve Finkelstein schreef:
> > Hi all,
> >
> > I know this isn't a forum for Zend IDE, but since there's probably a
> > decent population here using it, I figured I'd ask away.
> >
> > I'm using 5.5.1 Professional on Mac OSX 10.5.2. My issue here is that
> > all left brackets, (eg: [ ) are not showing up in the code editor. I
> > have a screenshot of it here: http://catalyst.httpd.org/zend.png
> >
> > Has anyone ever experienced anything similar?
>
> yes. choose a different font - at least that worked for me (you might
> have to fiddle with font-size too).
>
> >
> > Thank you,
> >
> > /sf
> >
>
>
attached mail follows:
I agree with Ray
Eclipse has more extensibility than Z. Studio , but the question is
do you need it, I preffer doing PHP coding in Studio, I learned a lot
of shortcuts and doing coding is so much faster and less frustrating
than doing it in Eclipse though et the end of the day it is up to
you, in my ream 12 of us, 50% is using eclipse and 50% is using Zend
(those one that are using Eclipse are PHP coders that know Java or C+
+ so they feel more comfortable with Eclipse ... ) , I alos know Java
and I am using Eclipse for that , for me one of the most useful thing
in Zend is (CTRL+D X,C or Apple+D , X, C) which duplicates copies and
paste lines in Studio , switching to Eclipse I just miss those
shortcuts so I am always finding myself going back to Z. Studio
On Mar 2, 2008, at 4:32 PM, Ray Hauge wrote:
> Steve Finkelstein wrote:
>> Hi all,
>> I've tried googling around to find some blogs with decent information
>> on whether Zend Eclipse is mature enough to make the jump over from
>> 5.5.x just yet.
>> Admittedly, I've dropped Zend Studio as of late and been writing all
>> of my code in TextMate -- but at the end of the day when a project is
>> complex enough, Zend Studio is much more powerful than TextMate with
>> all of its features and remote debugging capabilities.
>> Anyhow, I'm curious if it's worth it to check out Zend Eclipse yet.
>> We're a team of about 5-6 developers and I've been getting asked by a
>> few colleagues if I've tried it out yet since I'm usually the one to
>> try out the newer technologies.
>> I'd love to hear some feedback.
>> Thanks!
>> /sf
>
> I've recently switched. On my machine (which hasn't been updated
> for a long time...) Eclipse runs a lot slower. I only have 1 GB of
> RAM. Zend Studio has been running faster for me after I turned off
> the SVN integration. I just use the CLI for SVN anyway.
>
> Sometimes in Eclipse it'll slow down so much that I have to slow
> down my typing. Mostly that's in CSS files. I don't know if it's
> Eclipse in general, but Shift+Tab rarely works, and it drives me
> nuts. I've tried to mess with the key bindings to no avail.
> Debugging is a lot slower in Eclipse. Some of the default key
> bindings in Zend Studio are different in Zend Eclipse as well, but
> that was somewhat expected and hasn't bothered me too much.
>
> I've been using the official Zend Eclipse now since the day it came
> out. Next week I'm going to switch back to regular Zend Studio.
> It was nicer on the RAM and for the most part "Just Worked"(TM).
>
> That's my experience. I'd be interested to hear other people's
> experiences.
>
> --
> Ray Hauge
> www.primateapplications.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
Bojan Tesanovic
http://www.classicio.com/
attached mail follows:
Hi,
I switched to phpEd some time ago and no I'm happy with the move.
Nuno Mendes
Ray Hauge wrote:
> <div class="moz-text-flowed" style="font-family: -moz-fixed">Steve
> Finkelstein wrote:
>> Hi all,
>>
>> I've tried googling around to find some blogs with decent information
>> on whether Zend Eclipse is mature enough to make the jump over from
>> 5.5.x just yet.
>>
>> Admittedly, I've dropped Zend Studio as of late and been writing all
>> of my code in TextMate -- but at the end of the day when a project is
>> complex enough, Zend Studio is much more powerful than TextMate with
>> all of its features and remote debugging capabilities.
>>
>> Anyhow, I'm curious if it's worth it to check out Zend Eclipse yet.
>> We're a team of about 5-6 developers and I've been getting asked by a
>> few colleagues if I've tried it out yet since I'm usually the one to
>> try out the newer technologies.
>>
>> I'd love to hear some feedback.
>>
>> Thanks!
>>
>> /sf
>>
>
> I've recently switched. On my machine (which hasn't been updated for a
> long time...) Eclipse runs a lot slower. I only have 1 GB of RAM. Zend
> Studio has been running faster for me after I turned off the SVN
> integration. I just use the CLI for SVN anyway.
>
> Sometimes in Eclipse it'll slow down so much that I have to slow down my
> typing. Mostly that's in CSS files. I don't know if it's Eclipse in
> general, but Shift+Tab rarely works, and it drives me nuts. I've tried
> to mess with the key bindings to no avail. Debugging is a lot slower in
> Eclipse. Some of the default key bindings in Zend Studio are different
> in Zend Eclipse as well, but that was somewhat expected and hasn't
> bothered me too much.
>
> I've been using the official Zend Eclipse now since the day it came out.
> Next week I'm going to switch back to regular Zend Studio. It was
> nicer on the RAM and for the most part "Just Worked"(TM).
>
> That's my experience. I'd be interested to hear other people's
> experiences.
>
--
Dataworks, Lda
R. Dr. Orlando de Oliveira, 30 1º - Sala D
3800-004 Aveiro
Portugal
http://www.dataworks.pt
info
dataworks.pt
attached mail follows:
De: Bojan Tesanovic [mailto:btesanovic
gmail.com]
<snip>
I agree with Ray
Eclipse has more extensibility than Z. Studio , but the
question is do you need it, I preffer doing PHP coding in
Studio, I learned a lot of shortcuts and doing coding is so
much faster and less frustrating than doing it in Eclipse
though et the end of the day it is up to
you, in my ream 12 of us, 50% is using eclipse and 50% is using Zend
(those one that are using Eclipse are PHP coders that know Java or C+
+ so they feel more comfortable with Eclipse ... ) , I alos know Java
and I am using Eclipse for that , for me one of the most useful
thing in Zend is (CTRL+D X,C or Apple+D , X, C) which
duplicates copies and paste lines in Studio , switching to
Eclipse I just miss those shortcuts so I am always finding
myself going back to Z. Studio
On Mar 2, 2008, at 4:32 PM, Ray Hauge wrote:
> Steve Finkelstein wrote:
>> Hi all,
>> I've tried googling around to find some blogs with decent
information
>> on whether Zend Eclipse is mature enough to make the jump over from
>> 5.5.x just yet.
>> Admittedly, I've dropped Zend Studio as of late and been writing all
>> of my code in TextMate -- but at the end of the day when a
project is
>> complex enough, Zend Studio is much more powerful than TextMate with
>> all of its features and remote debugging capabilities.
>> Anyhow, I'm curious if it's worth it to check out Zend Eclipse yet.
>> We're a team of about 5-6 developers and I've been getting
asked by a
>> few colleagues if I've tried it out yet since I'm usually the one to
>> try out the newer technologies.
>> I'd love to hear some feedback.
>> Thanks!
>> /sf
</snip>
I've been trying it since Beta1. Beta1 was like Eclipse PDT (PHP Development
Tools) + Zend products support.
Beta2 fixed some very frustrating bugs but still left some around.
On the QA release (aka Zend Studio for Eclipse 6.0) I did not see much
difference and I'm still really disappointed they took this move instead of
releasing another Beta (perhaps business area was pushing them).
Most of their bugs are actually Eclipse ones, things like the shift+tab
support has something to do with whitespaces and tabs for indents and I've
no idea when it will be fixed.
I've been using Neon (ZS4E)
work and Zend Studio 5.5
home and I have to
say, even Neon having a lot more resources than ZS5.5 it's still a bit messy
and I'll be staying with 5.5 for a while. Yes, there are tons of good new
stuff. But if you really intend to use many of those, you'll have to get
used with "workarounds".
What's nice about this is, a lot of the bugs they're finding and fixing, are
going to original Eclipse project :)
As said, give it a respectful try before making a choice. Once you get used
to Eclipse's interface you rarely switch back (expect when you get annoyed
with code editor bugs :)
attached mail follows:
>... for me one of the most useful
> thing in Zend is (CTRL+D X,C or Apple+D , X, C) which
> duplicates copies and paste lines in Studio , switching to
> Eclipse I just miss those shortcuts so I am always finding
> myself going back to Z. Studio
To duplicate the current line in Eclipse, just use Ctrl+Alt+Up Arrow.
To see a list of Eclipse short-cuts, use Ctrl+Alt+L
HTH,
Edward
attached mail follows:
Could PHP do..
1. Connect and send a parameter to a remote host
2. Wait for the host to reply -- not using event handler
3. Send XML data to the host
--
Louie Miranda (lmiranda
gmail.com)
http://www.axishift.com
Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)
attached mail follows:
On Mon, Mar 3, 2008 at 8:57 AM, Louie Miranda <lmiranda
gmail.com> wrote:
> Could PHP do..
>
> 1. Connect and send a parameter to a remote host
> 2. Wait for the host to reply -- not using event handler
> 3. Send XML data to the host
Probably with a socket :
http://php.net/manual/en/ref.sockets.php
> --
> Louie Miranda (lmiranda
gmail.com)
> http://www.axishift.com
>
> Security Is A Series Of Well-Defined Steps
> chmod -R 0 / ; and smile :)
>
attached mail follows:
sure, user curl (www.php.net/curl)
bastien
> Date: Mon, 3 Mar 2008 15:57:19 +0800> From: lmiranda
gmail.com> To: php-general
lists.php.net> Subject: [PHP] Can PHP do this? -- w/o using event handler> > Could PHP do..> > 1. Connect and send a parameter to a remote host> 2. Wait for the host to reply -- not using event handler> 3. Send XML data to the host> > -- > Louie Miranda (lmiranda
gmail.com)> http://www.axishift.com> > Security Is A Series Of Well-Defined Steps> chmod -R 0 / ; and smile :)
_________________________________________________________________
attached mail follows:
Chris wrote:
>
>> have you considered installing a local copy of php (and suitable
>> webserver)
>> so you can test it there?
>
> I'd also suggest using a revision control system (subversion or git)
> and have pre-commit hooks to check the syntax.
>
> It's a bit of work to set up but once it's done you'll notice a
> difference - just knowing how often you're changing things can be
> surprising.
Hi,
Do you mind sharing a source where I can find more information about
pre-commit hooks (and especially about syntax checking hooks)?
We use subversion here and it would be great to use such hooks.
Thanks.
Aschwin Wesselius
attached mail follows:
Aschwin Wesselius wrote:
> Chris wrote:
>>
>>> have you considered installing a local copy of php (and suitable
>>> webserver)
>>> so you can test it there?
>>
>> I'd also suggest using a revision control system (subversion or git)
>> and have pre-commit hooks to check the syntax.
>>
>> It's a bit of work to set up but once it's done you'll notice a
>> difference - just knowing how often you're changing things can be
>> surprising.
>
> Hi,
>
> Do you mind sharing a source where I can find more information about
> pre-commit hooks (and especially about syntax checking hooks)?
>
> We use subversion here and it would be great to use such hooks.
>
> Thanks.
>
> Aschwin Wesselius
Ah, never mind, I've found an howto myself:
http://www.gmta.info/publications/php-syntax-check-through-subversion-pre-commit-hook
Cheers,
Aschwin Wesselius
attached mail follows:
movies
biblescramble.com wrote:
> Dear PHP List Experts,
>
> I'm trying to use Pear at my host, Leadhoster.
>
> This line:
>
> require_once('DB.php');
>
> Gets this error:
>
> Warning: main(DB.php): failed to open stream: No such file or directory in
> /home/www/everoriginal.onlinewebshop.net/connect04.php on line 4
>
> Fatal error: main(): Failed opening required 'DB.php'
> (include_path='.:/usr/local/php4/share/pear') in
> /home/www/everoriginal.onlinewebshop.net/connect04.php on line 4
>
> I suspect I need to set up a path to Pear. If so, any help would be
> appreciated.
>
> This program:
> <?php
> phpinfo();
> ?>
> seems to indicate that Pear is there.
>
> This is my first post to this list, so please let me know if I'm not doing
> it right. I couldn't find the archive, so I guess consider that my second
> question.
>
> Thanks in advance!
>
> Jerry Kassebaum
Do you know for sure that your host actually has PEAR installed? It might be
worth you asking them, via support ticket or forum (if thay have one)
whether it is installed and where.
Cheers
--
David Robley
A cat is nobody's fool.
Today is Boomtime, the 62nd day of Chaos in the YOLD 3174.
attached mail follows:
> As a little project, I took the link provided by "the other" Rob and
> make this little search tool.
>
> It only looks at the beginning numbers. It does no number
> validation. I don't validate the length of the number. ie: I would
> have to know the min/max lenth of each phone number for that given
> country/region, and I didn't search for that information.
>
> Let me know what you'll think.
>
> http://www.cmsws.com/examples/php/areacodes/countrycodes.php
>
It's enough for me... Can you send me the code please?
attached mail follows:
>yikes, php4 !? if they dont host php5 that could be reason enough to
switch, >*ducks*.
My host would charge $60 for a year, which includes PHP and MySQL. I am
VERY open to suggestions. It would be handy to be at the same place as one
or more of you guys. That would sure eliminate one layer of obscurity when
I have a question.
By the way, THANKS FOR THE HELP!!
Jerry Kassebaum
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]