Re: [PHP] Dennis Ritchie, Father of Unix and C programming language, dead at 70

2011-10-15 Thread Ricardo Martinez
int main()
{
   printf("R.I.P. Dennis Ritchie: 1941-2011\n");
   return 0
}


sad notice...  RIP




On Fri, Oct 14, 2011 at 10:01 PM, tamouse mailing lists <
tamouse.li...@gmail.com> wrote:

> On Thu, Oct 13, 2011 at 5:08 PM, Daevid Vincent  wrote:
> > #include 
> >
> > int main()
> > {
> >   printf("R.I.P. Dennis Ritchie: 1941-2011\n");
> >   return 0;
> > }
> >
> >
> > http://www.networkworld.com/news/2011/101311-ritchie-251936.html
> >
> >
>
> dmr--; /* :-( */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


Re: [PHP] Introducting CRUDsader : a new PHP ORM Framework

2011-10-14 Thread Ricardo Martinez
great :) i think take a look ;)

On Fri, Oct 14, 2011 at 1:08 PM, jean-baptiste verrey <
jeanbaptiste.ver...@gmail.com> wrote:

> yes it's open source, it's under LGPL license!
>
> On 14 October 2011 03:52, Sharl.Jimh.Tsin  wrote:
>
> > 在 2011-10-13四的 19:06 +0100,jean-baptiste verrey写道:
> > > hi everyone,
> > >
> > > I have been developing an ORM framework for the last year (at least)
> and
> > I
> > > have finally released a beta that is worth of being on internet^^
> > > so if you have some time to spare have a look at
> > http://www.crudsader.com/.
> > >
> > > The novelty of the framework lies in object automatic forms,
> > configuration
> > > and the Object query language (which is very simple and uses string
> > instead
> > > of object methods).
> > > It's missing cache and performance improvement at the moment but I'm
> > working
> > > on it.
> > >
> > > I will gladly appreciate any comments to make it better, or about
> > anything
> > > that the framework is missing or where I could have been completely
> > wrong!
> > >
> > > Regards,
> > >
> > > Jean-Baptiste Verrey
> > >
> > > ps: I'm working hard on checking that the examples of the doc are
> > actually
> > > working, and to add more content to the docs
> >
> > Great job,thanks a lot.is it open source?
> >
> > --
> > Best regards,
> > Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)
> >
> > Using Gmail? Please read this important notice:
> > http://www.fsf.org/campaigns/jstrap/gmail?10073.
> >
>



-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


Re: [PHP] Re: files outside of documentRoot

2011-10-14 Thread Ricardo Martinez
Mmm i'm trying to show a .flv but i dont know if i'm using the correct
headers and method.

$name = $file;
$fp = fopen($name, 'rb');

// send the right headers
header("Content-Type: video/x-flv");
header("Content-Length: " . filesize($name));

// dump the picture and stop the script
fpassthru($fp);
exit;

i'm getting all time the player black.

all idea are welcome!!! :)

thx!!!

On Wed, Oct 12, 2011 at 12:46 PM, Ricardo Martinez wrote:

> It works thx a lot =)
>
>
>
> On Tue, Oct 11, 2011 at 5:26 PM, Bastien Koert  wrote:
>
>> On Tue, Oct 11, 2011 at 11:00 AM, Ricardo Martinez 
>> wrote:
>> > Hi!
>> >
>> > i'm was checking, readfile(); and fpassthru();
>> >
>> > With easy examples, i can use it for show a pic in the screen and
>> download a
>> > file, from outside of documentRoot. It works fine.
>> >
>> > The problem that i have now, is, i need can work with it, inside of
>> other
>> > documents, but i'm getting all time error by the headers. ( already
>> sendt
>> > ... )
>> >
>> > Anyone knows how to use it for can call the files and work together with
>> > other page ¿?
>> >
>> > Thanks
>> >
>> > On Sun, Oct 9, 2011 at 6:57 PM, Sean Greenslade > >wrote:
>> >
>> >>
>> >> On Sun, Oct 9, 2011 at 9:52 AM, Ricardo Martinez > >wrote:
>> >>
>> >>> The files are, png, pdf and flv.
>> >>>
>> >>> Only users login can see or download it.
>> >>>
>> >>> thx ;>
>> >>>
>> >>> On Sat, Oct 8, 2011 at 11:16 PM, Shawn McKenzie > >>> >wrote:
>> >>>
>> >>> > On 10/08/2011 03:40 PM, Ricardo Martinez wrote:
>> >>> > > Hi List!
>> >>> > >
>> >>> > > I need to access files outside the DocumentRoot.
>> >>> > >
>> >>> > > I've been looking for info and documentation, and I've read that
>> it
>> >>> can
>> >>> > be
>> >>> > > done using symbolic links and another way is by using headers.
>> >>> > >
>> >>> > > I want to know, what do you think, what is the best way, and if
>> anyone
>> >>> > knows
>> >>> > > a good doc about of it.
>> >>> > >
>> >>> > > Thanks!!!
>> >>> > >
>> >>> >
>> >>> > It depends on what you mean by "files".  Are they PHP files that
>> need to
>> >>> > be run, or images, or files that need to be downloaded by the user?
>> >>> >
>> >>> > For PHP, you would add the external dir to your include path.
>> >>> >
>> >>> > For images you can use a php file as the img src and that file sets
>> the
>> >>> > appropriate headers and uses readfile() to get and echo the image
>> data:
>> >>> > getimage.php?image=someimage.gif
>> >>> >
>> >>> > For download files you would do it in the same manner as for images:
>> >>> > download.php?file=somefile.zip
>> >>> >
>> >>> >
>> >>> > --
>> >>> > Thanks!
>> >>> > -Shawn
>> >>> > http://www.spidean.com
>> >>> >
>> >>>
>> >>> --
>> >>> Ricardo
>> >>> ___
>> >>> IT Architect
>> >>> website: http://www.pulsarinara.com
>> >>>
>> >>
>> >>
>> >> Sounds like the downloader php script would be perfect (what Shawn
>> >> suggested). Have the script check the login status, then (if valid)
>> send the
>> >> proper headers for the file and read out the data with the script.
>> >>
>> >> --
>> >> --Zootboy
>> >>
>> >> Sent from my PC.
>> >>
>> >>
>> >
>> >
>> > --
>> > Ricardo
>> > ___
>> > IT Architect
>> > website: http://www.pulsarinara.com
>> >
>>
>> For images and the like, I have a separate page that is called that
>> handles the image and the headers needed
>>
>> In the page I have some thing like
>>
>> echo "";
>>
>> Then in the get-image.php page i have the code that gets the image
>> from the db, outputs the appropriate headers and then outputs the
>> image
>>
>> --
>>
>> Bastien
>>
>> Cat, the other other white meat
>>
>
>
>
> --
> Ricardo
> ___
> IT Architect
> website: http://www.pulsarinara.com
>



-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


Re: [PHP] Re: files outside of documentRoot

2011-10-12 Thread Ricardo Martinez
It works thx a lot =)



On Tue, Oct 11, 2011 at 5:26 PM, Bastien Koert  wrote:

> On Tue, Oct 11, 2011 at 11:00 AM, Ricardo Martinez 
> wrote:
> > Hi!
> >
> > i'm was checking, readfile(); and fpassthru();
> >
> > With easy examples, i can use it for show a pic in the screen and
> download a
> > file, from outside of documentRoot. It works fine.
> >
> > The problem that i have now, is, i need can work with it, inside of other
> > documents, but i'm getting all time error by the headers. ( already sendt
> > ... )
> >
> > Anyone knows how to use it for can call the files and work together with
> > other page ¿?
> >
> > Thanks
> >
> > On Sun, Oct 9, 2011 at 6:57 PM, Sean Greenslade  >wrote:
> >
> >>
> >> On Sun, Oct 9, 2011 at 9:52 AM, Ricardo Martinez  >wrote:
> >>
> >>> The files are, png, pdf and flv.
> >>>
> >>> Only users login can see or download it.
> >>>
> >>> thx ;>
> >>>
> >>> On Sat, Oct 8, 2011 at 11:16 PM, Shawn McKenzie  >>> >wrote:
> >>>
> >>> > On 10/08/2011 03:40 PM, Ricardo Martinez wrote:
> >>> > > Hi List!
> >>> > >
> >>> > > I need to access files outside the DocumentRoot.
> >>> > >
> >>> > > I've been looking for info and documentation, and I've read that it
> >>> can
> >>> > be
> >>> > > done using symbolic links and another way is by using headers.
> >>> > >
> >>> > > I want to know, what do you think, what is the best way, and if
> anyone
> >>> > knows
> >>> > > a good doc about of it.
> >>> > >
> >>> > > Thanks!!!
> >>> > >
> >>> >
> >>> > It depends on what you mean by "files".  Are they PHP files that need
> to
> >>> > be run, or images, or files that need to be downloaded by the user?
> >>> >
> >>> > For PHP, you would add the external dir to your include path.
> >>> >
> >>> > For images you can use a php file as the img src and that file sets
> the
> >>> > appropriate headers and uses readfile() to get and echo the image
> data:
> >>> > getimage.php?image=someimage.gif
> >>> >
> >>> > For download files you would do it in the same manner as for images:
> >>> > download.php?file=somefile.zip
> >>> >
> >>> >
> >>> > --
> >>> > Thanks!
> >>> > -Shawn
> >>> > http://www.spidean.com
> >>> >
> >>>
> >>> --
> >>> Ricardo
> >>> ___
> >>> IT Architect
> >>> website: http://www.pulsarinara.com
> >>>
> >>
> >>
> >> Sounds like the downloader php script would be perfect (what Shawn
> >> suggested). Have the script check the login status, then (if valid) send
> the
> >> proper headers for the file and read out the data with the script.
> >>
> >> --
> >> --Zootboy
> >>
> >> Sent from my PC.
> >>
> >>
> >
> >
> > --
> > Ricardo
> > ___
> > IT Architect
> > website: http://www.pulsarinara.com
> >
>
> For images and the like, I have a separate page that is called that
> handles the image and the headers needed
>
> In the page I have some thing like
>
> echo "";
>
> Then in the get-image.php page i have the code that gets the image
> from the db, outputs the appropriate headers and then outputs the
> image
>
> --
>
> Bastien
>
> Cat, the other other white meat
>



-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


Re: [PHP] Re: files outside of documentRoot

2011-10-11 Thread Ricardo Martinez
Hi!

i'm was checking, readfile(); and fpassthru();

With easy examples, i can use it for show a pic in the screen and download a
file, from outside of documentRoot. It works fine.

The problem that i have now, is, i need can work with it, inside of other
documents, but i'm getting all time error by the headers. ( already sendt
... )

Anyone knows how to use it for can call the files and work together with
other page ¿?

Thanks

On Sun, Oct 9, 2011 at 6:57 PM, Sean Greenslade wrote:

>
> On Sun, Oct 9, 2011 at 9:52 AM, Ricardo Martinez wrote:
>
>> The files are, png, pdf and flv.
>>
>> Only users login can see or download it.
>>
>> thx ;>
>>
>> On Sat, Oct 8, 2011 at 11:16 PM, Shawn McKenzie > >wrote:
>>
>> > On 10/08/2011 03:40 PM, Ricardo Martinez wrote:
>> > > Hi List!
>> > >
>> > > I need to access files outside the DocumentRoot.
>> > >
>> > > I've been looking for info and documentation, and I've read that it
>> can
>> > be
>> > > done using symbolic links and another way is by using headers.
>> > >
>> > > I want to know, what do you think, what is the best way, and if anyone
>> > knows
>> > > a good doc about of it.
>> > >
>> > > Thanks!!!
>> > >
>> >
>> > It depends on what you mean by "files".  Are they PHP files that need to
>> > be run, or images, or files that need to be downloaded by the user?
>> >
>> > For PHP, you would add the external dir to your include path.
>> >
>> > For images you can use a php file as the img src and that file sets the
>> > appropriate headers and uses readfile() to get and echo the image data:
>> > getimage.php?image=someimage.gif
>> >
>> > For download files you would do it in the same manner as for images:
>> > download.php?file=somefile.zip
>> >
>> >
>> > --
>> > Thanks!
>> > -Shawn
>> > http://www.spidean.com
>> >
>>
>> --
>> Ricardo
>> ___
>> IT Architect
>> website: http://www.pulsarinara.com
>>
>
>
> Sounds like the downloader php script would be perfect (what Shawn
> suggested). Have the script check the login status, then (if valid) send the
> proper headers for the file and read out the data with the script.
>
> --
> --Zootboy
>
> Sent from my PC.
>
>


-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


[PHP] Re: files outside of documentRoot

2011-10-09 Thread Ricardo Martinez
The files are, png, pdf and flv.

Only users login can see or download it.

thx ;>

On Sat, Oct 8, 2011 at 11:16 PM, Shawn McKenzie wrote:

> On 10/08/2011 03:40 PM, Ricardo Martinez wrote:
> > Hi List!
> >
> > I need to access files outside the DocumentRoot.
> >
> > I've been looking for info and documentation, and I've read that it can
> be
> > done using symbolic links and another way is by using headers.
> >
> > I want to know, what do you think, what is the best way, and if anyone
> knows
> > a good doc about of it.
> >
> > Thanks!!!
> >
>
> It depends on what you mean by "files".  Are they PHP files that need to
> be run, or images, or files that need to be downloaded by the user?
>
> For PHP, you would add the external dir to your include path.
>
> For images you can use a php file as the img src and that file sets the
> appropriate headers and uses readfile() to get and echo the image data:
> getimage.php?image=someimage.gif
>
> For download files you would do it in the same manner as for images:
> download.php?file=somefile.zip
>
>
> --
> Thanks!
> -Shawn
> http://www.spidean.com
>



-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


[PHP] files outside of documentRoot

2011-10-08 Thread Ricardo Martinez
Hi List!

I need to access files outside the DocumentRoot.

I've been looking for info and documentation, and I've read that it can be
done using symbolic links and another way is by using headers.

I want to know, what do you think, what is the best way, and if anyone knows
a good doc about of it.

Thanks!!!

-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


Re: [PHP] Best editor?

2011-08-03 Thread Ricardo Martinez
hi!
" > Notepad!!!  LOL..  I use netbeans but eclipse is nice.  A lot of it is
> personal opinion. "

i was using notepad a lot of years, nowdays i use gedit (@linux ) i think
that gedit is avaible for windows too.

Greetings!!!

On Wed, Aug 3, 2011 at 5:43 PM, Andre Polykanine  wrote:

> Hi,
>
> > Notepad!!!  LOL..  I use netbeans but eclipse is nice.  A lot of it is
> > personal opinion.
>
>I have been using Notepad since... oh, since 2007, I believe). And it's
> my editor of choice :-). Actually now I'm using AkelPad because of the
> unicode issues (I need to save without a bit order mark).
>
> --
> With best regards from Ukraine,
> Andre
> Skype: Francophile
> My blog: http://oire.org/menelion (mostly in Russian)
> Twitter: http://twitter.com/m_elensule
> Facebook: http://facebook.com/menelion
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


Re: [PHP] upload big files

2011-04-17 Thread Ricardo Martinez
thanks guys for answer,

i'm thinking in use FTP with PHP, never did it before, but don't must be
dificult.
I'll tell to you as finished it ;)

thanks!

On Sat, Apr 16, 2011 at 3:54 PM, Ashley Sheridan
wrote:

>  On Sat, 2011-04-16 at 15:47 +0200, Daniel Jost wrote:
>
> okay, sorry, you are right. i thought it would be purely javascript but
> forgot the flash component.
>
>
>
>  but if you don't want your user to blindly upload 300mb over hours
> (depending on his internet connection) there are no other possibilities than
> using one of that components. or does anyone have another solution?
>
>  2011/4/16 Ashley Sheridan 
>
>
>   On Sat, 2011-04-16 at 15:36 +0200, Daniel Jost wrote:
>
> hi!
>
> this form would not really be a nice solution to upload 300mb. there would
> be no progress bar and no other possibility for the user to get feedback.
>
> you should consider to use a java uploaded - or a bit nicer - a javascript
> based solution like this: http://www.uploadify.com/
>
> <http://www.uploadify.com/>daniel
>
> 2011/4/14 Ricardo Martinez 
>
> > Hi List!
> >
> > Need can upload big files ( around 300MB ) the system must be easy of use (
> > cann't use ftp ).
> >
> > Was thinking in make it, using a form with post, and update the cfg files
> > for can upload big files.
> > But don't know how it going to work. I think that can give a lot of errors
> > or be unestable.
> >
> > Just asking if anyone had a project like this one ;)
> >
> > Greetings!
> >
> > --
> > Ricardo
> > ___
> > IT Architect
> > website: http://www.pulsarinara.com
> >
>
>
>
>   Uploadify might appear to be purely Javascript, but it is in-fact Flash
> doing the actual upload work. I've used this before, and found it impossible
> to use without a mouse and defaults to a standard upload input element if
> you don't have Flash player installed on that browser. These might not seem
> like major issues, but I for one don't have Flash installed on my Windows
> partition (found it to be too much of a security risk) and there are plenty
> of people out there who can't use a mouse due to various disabilities. I'd
> definitely go with the Java one if you can, as this is more portable (I
> believe you can get them to run on iOS devices where Flash would be a no-go)
> and would allow non-mouse navigation.
>
> Having said that, the last time I used Uploadify was about a year ago, so
> things may have changed since then with regards to the non-mouse
> interaction.
>
>
>   --
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
>
>
>
>
> The last time I had to do something like this was for large video files
> which could sometimes go beyond 2GB. In the end I allowed the files to be
> transferred over FTP (with the same username/password that they logged in
> via the web interface), but also included a Java applet in the web interface
> as well so that it appeared to allow the upload as normal, but behind the
> scenes it was all FTP. HTTP isn't great for large uploads, but a protocol
> like FTP is perfectly suited for it.
>
>
>   --
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>


-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


[PHP] upload big files

2011-04-14 Thread Ricardo Martinez
Hi List!

Need can upload big files ( around 300MB ) the system must be easy of use (
cann't use ftp ).

Was thinking in make it, using a form with post, and update the cfg files
for can upload big files.
But don't know how it going to work. I think that can give a lot of errors
or be unestable.

Just asking if anyone had a project like this one ;)

Greetings!

-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


Re: [PHP] Re: echo?

2011-03-23 Thread Ricardo Martinez
Hi

after of the for, u can use



it shoulds back the class of variable, by example "its is string" "its is
int" etc

for ($i=0;$i<$rows;$i++)
echo $i.' '.$row['itemname'];

echo gettype($i);

Can be that you must define before the class of this variable, because, the
system is thinking this is a string class data or hexa etc.

grettings and sorry for my written english ;)


-- 
Ricardo
___
IT Architect
website: http://www.pulsarinara.com


Re: [PHP] Re: Independent Contractor Suggestions

2010-10-22 Thread Ricardo Martinez
On Thu, Oct 21, 2010 at 4:39 PM, Paul M Foster wrote:

> On Wed, Oct 20, 2010 at 05:47:12PM -0700, Kris Craig wrote:
>
> > Hi musicdev,
> >
> > There are a couple issues I think need to be addressed with what youd
> > described.  First and foremost, $20/hr is considerably below the going
> > rate for PHP work, especially for projects as large as the one you're
> > talking about.
> >
> > I used to do freelance PHP work for about 5 years before I went to
> > work for Microsoft, and when I originally started I was just charging
> > about 20 bucks an hour as well.  It proved to be a disaster.  Contrary
> > to what common sense might tell you, I've found that lower-budget
> > clients always produce the most drama, are the most demanding, and
> > least reliable when it comes to paying the invoices on-time.
> > Furthermore, larger clients will generally ignore you in favor of
> > developers who charge more, the mindset being that, if you're charging
> > such a low amount, the quality of your work probably isn't that good.
> >
> > I did a lot better after I started charging $100/hr for my work.  A
> > *lot* better!  This was after my research showed that PHP development
> > firms generally charge a minimum of $80/hr for PHP work, and can go as
> > high as $200/hr.  So if you're going at $20/hr, the companies with
> > deep pockets probably won't take you seriously, and the clients you do
> > get will be the ones who want a ton of work done but don't have the
> > budget available to make it worth your while.  Those are the clients
> > who will take advantage of you if you're not careful.
>
> +1
>
> I can't explain this phenomenon, but I've seen it before, and it's
> exactly as Kris has described.
>
> Paul
>
>
 +1 with kris :) ( from EU )



-- 
Ricardo
___


[PHP] File Manager with acl

2010-07-27 Thread Ricardo Martinez
Hi!

i want ask to the list, if anyone knows a FIle Manager with ACL, written in
PHP and MySQL.

thanks!

-- 
Ricardo
___
IT Architect
website: http://www.rjmc.es


[PHP] calendar libs

2010-07-13 Thread Ricardo Martinez
Hi!

i'm looking for a good calendar libs, want ask, if anyone knows a good
library.


thx!

Ricardo