[PHP] PHP editor

2004-04-15 Thread Arthur Radulescu
Hello!


This might sound like a stupid question but could anyone recommand a good
PHP editor...
I have used some editors until now but each one has some problems...

Right now I am using PHPed which is pretty good but oine of the major
problems is that it does fills the tabs with spaces which will increase a
lot the size of pages specially the templates...

Also using Zend which is very good but this is extremly slowly and some
times it is almost crashing the computer so it is not very good for fast
editing...

What I am looking for is something to work pretty fast, have code
autocompletion (even for functions defined in the included files like zend
does) and also code ident in a similar manner with zend studio



Arthur




Looking for a job!? Use the smart search engine!!
Find a Job from Millions WorldWide...
http://search.jobsgrabber.com


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



Re: [PHP] PHP editor

2004-04-15 Thread Arthur Radulescu
It might be a directive for good programming but as long as this might
double the size of a resulted page this is not good for me. Thanks anyway.


Arthur



> Filling tabs with spaces is a directive for good programming - see
> http://pear.php.net
>
> If you want a good editor you can try EditPlus - almost as fast as
> notepad :)

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



Re: [PHP] PHP editor

2004-04-15 Thread Arthur Radulescu
Not exactly... I was not reffering to PHP files... The white spaces from a
template file will make double the size of certain files when they are sent
to the browser... So a page of 50 k might have 100 K because of those white
spaces instead of tabs... For a dial up connection this means a lot even if
you are not google...

> Sounds like you suffer from no-accelerator-itis. Using one of the PHP
> accelerators will make whitespace concerns pointless since they operate
> on cached bytecode. At any rate, whitespace and comment parsing is
> pretty much negilible... you might shave a millionth of a second off
> your page time, but really, is that point for contention? If you're
> running Google then it might be, but I doubt that's the case.

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



Re: [PHP] PHP editor

2004-04-15 Thread Arthur Radulescu

> Remove all whitespace from the final HTML, then all this doesn't matter.
>
> function cleanFinalOutput($html){
>   $return = eregi_replace("\n", "", $html);
>   $return = eregi_replace("\r", "", $return);
>   return eregi_replace("\t", "", $return);
> }

Have already thought about this but would this not be too time consuming to
process this replacement on evey hit?
I am using a version of fast template much improved on a site which is
already very overloaded so this would mean additional processing and
replacements seems to be resources consuming sometimes...




Looking for a job!? Use the smart search engine!!
Find a Job from Millions WorldWide...
http://search.jobsgrabber.com


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



Re: Re[2]: [PHP] PHP editor

2004-04-15 Thread Arthur Radulescu
I fully agree with you but as I have mentioned the first time Zend seems to
be to slow for fast editing... And sometimes it really takes too much from
the computer resources...

> I spend around 8 to 10 hours a day inside of Zend Studio (it's open
> behind this email window as I type) and I couldn't live without it
> now. I'm not going to list all of it's good points, there are just too
> many - but I personally love the full function insight and
> auto-complete. Not just for PHP functions, but for your own too -
> works perfectly across classes, etc. Same goes for variable
> completion. The code Profiler and Debugger are a god-send as well,
> being able to step through the code of a page, inserting break points,
> adding variable watches and modifying the results *on the fly* is
> brilliant.
>
> I have a few issues with it from a user-interface level though - it
> would be useful to have bookmarks (that can be saved with your code),
> the drop-down menus sometimes flicker or just roll-up instantly - this
> I feel is a side-effect of the Java runtime. You also need a monster
> PC for it to run happily (read: quickly). I'm using it on a P4 3GHz.
>
> For the HTML side of things it is useless, so I have Homesite 5 open
> alongside it nearly all of the time, but then I rarely mix my PHP code
> with raw HTML anyway, so this isn't a big issue for me.

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



Re: [Re: [PHP] PHP editor]

2004-04-15 Thread Arthur Radulescu
PHP is one thing and HTML is another thing.. Check the google source code
and you'll that this is how they have it... I assume the reason is to reduce
the size of the page...

---

> That is not correct. Since PHP and HTML engines all ignore white space
> and comments it does not matter how much of either you put in a file.
> Your arguement is specious at best. If you really believed it was a
> problem you would eliminate new lines as well. Your code would begin to
> look like ...

I Am A Code Genious, NOTTons of stuff in a long line

or

\n";
for($i=0;$<100;$i++){if(4==$i/2){echo "I am still a genious,
NOT!\n";}else{exit();}?>

Readable?

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



Re: [Re: [PHP] PHP editor]

2004-04-15 Thread Arthur Radulescu
What I meant was that it is obiously that eliminating the spaces but not by
a blind replacement, the new lines characters and even the tabs will reduce
the size of the page which will result in a faster loading and less
bandwidth consumed... And the example was google... Am I wrong with anything
here?



[snip]
PHP is one thing and HTML is another thing.. Check the google source
code
and you'll that this is how they have it... I assume the reason is to
reduce
the size of the page...
[snip]

Your assumption about Google would be incorrect, it has nothing to do
with page size as most of their pages are predominately text.

See http://www.w3.org/TR/html401/struct/text.html#whitespace for a more
detailed dissertation on white space in HTML.

-- 
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: [Re: [PHP] PHP editor]

2004-04-15 Thread Arthur Radulescu
> You are correct, but I believe the bandwidth savings is small.
>
> What I usually do for my apps is allow the admin to configure whitespace
> trimming.  If configured, I only remove whitespace from the beginning of
the
> line to the first non-whitespace character.  This reduces the code size
> somewhat, while still leaving the HTML human-readable (newlines are
intact).

I have checked on some pages and this is reduced with 15% to 40% usually...

But the discussion started from the PHP editor... I have forgot to mention
that another serious problem with the previous editors I have used was that
I have to develop a website in traditional chinese and it give me lot of
problmes with html editing... In fact I had no chances using Zend or
dreamweaver or homesite or phpeditor
The only chance was using notepad or dreamweaver MX... All the others were
messing the template files... I have even tried with Visuyal Studio and had
the same problems
Since I am developing another website in arabique at this moment I thought
that I should ask if anyone knows an editor to handle this kind of editing
in good conditions...




Looking for a job!? Use the smart search engine!!
Find a Job from Millions WorldWide...
http://search.jobsgrabber.com


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



Re: [PHP] Array Problem

2004-04-17 Thread Arthur Radulescu
> That's how you could do it ...
> 
> $ar = array();
> 
> $len = strlen($a);
> for ($i = 0; $i < $len; ++$i) {
> $ar[] = $a{$i};
> }

If I remember well strlen is used for checking the length of a string...


Arthur



Looking for a job!? Use the smart search engine!!
Find a Job from Millions WorldWide... 
http://search.jobsgrabber.com


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



[PHP] searching trough doc and pdf files

2004-04-22 Thread Arthur Radulescu
Hello!

I need to search on the disk trough doc and pdf files. What would you
suggest me to use for reading and indexing those kind of files?


Thanks,
Arthur




Looking for a job!? Use the smart search engine!!
Find a Job from Millions WorldWide...
http://search.jobsgrabber.com


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



Re: [PHP] searching trough doc and pdf files

2004-04-22 Thread Arthur Radulescu
> I've heard of some doc->html/text and pdf->html/text converters. You could
> convert them to that format (since you're just after the text, right?),
and
> then search them that way. Might be able to use COM if you're on a Windows
> system, also.

Any ideea what the name was? I am on a Linux system, unfortunatelly... I
know pdf will be not a problem but I was more interested in doc files
conversion


Arthur




Looking for a job!? Use the smart search engine!!
Find a Job from Millions WorldWide...
http://search.jobsgrabber.com


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



[PHP] converting movies

2004-05-06 Thread Arthur Radulescu
Hello!

Does anyone know how I can convert movies from a format to another or how I
could get a screenshot of the movie (the first scene) using PHP or at least
something running on a linux system.


Thanks,
Arthur

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



[PHP] ImageMagick

2004-06-15 Thread Arthur Radulescu
Hello!

Does anyone knows if PHP library for ImageMagick has multilanguage support? I am 
planning to use it but I have not found anything related to this on their site


Thanks,
Arthur

[PHP] large file uploads

2004-04-07 Thread Arthur Radulescu
Hello!


Does any one now how I can handle large file uploads (around 10-20 MB) with PHP.  I 
need this functionality into an intranet but I cannot figure out what I must configure 
to handle this. 



Thanks,
Arthur





Looking for a job!? Use the smart search engine!!
Find a Job from Millions WorldWide... 
http://search.jobsgrabber.com


Re: [PHP] large file uploads

2004-04-07 Thread Arthur Radulescu
I have forgot to mention that I have tried this and modified the php.ini on
a windows system but had no success. There is no error but the file does not
get uploaded either.


Arthur


- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "John Nichel" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 5:05 PM
Subject: RE: [PHP] large file uploads


[snip]
...fried...

And it is served with a heaping serving of home fries, and covered with
a delicious white country gravy. (Low calorie fried manuals available
upon request).

Sorry...couldn't resist.  ;)
[/snip]

Thanks, I needed that!

-- 
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] large file uploads

2004-04-07 Thread Arthur Radulescu
Yes I restarted the server and then the computer... No success... The page
timeouts after a while but the file does not gets uploaded


Arthur





Looking for a job!? Use the smart search engine!!
Find a Job from Millions WorldWide...
http://search.jobsgrabber.com

- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Arthur Radulescu" <[EMAIL PROTECTED]>; "John Nichel" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 5:12 PM
Subject: RE: [PHP] large file uploads


> [snip]
> I have forgot to mention that I have tried this and modified the php.ini
> on
> a windows system but had no success. There is no error but the file does
> not
> get uploaded either.
> [/snip]
>
> Did you restart your web server?
>
>
>
> !DSPAM:40740ae1152691248315722!
>
>
>
>

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



Re: [PHP] large file uploads

2004-04-07 Thread Arthur Radulescu
The code is below (pieces of it). The folders have write permissions. It
works just fine with smaller files but nothing happens with larger files


if(!is_uploaded_file($_FILES['file']['tmp_name'])){
$ERR['file']=1;
}

if(!sizeof($ERR)){
$try=copy_file($_FILES['file']['tmp_name'],
$TO_FILE);
// copy_file makes the upload using copy or
move_uploaded_file

if($try=="copy_err"){
echo "copy_err";
}
else{
echo "copy_success";
}

}

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



Re: [PHP] Auto-acks on posting.

2004-04-08 Thread Arthur Radulescu
Yes I get the same emails here

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