Re: [PHP] uploading files... necessary Ajax?

2007-11-21 Thread Christian Hänsel
pere roca [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]


Hi, a basic question:
I want to send a CSV file and some other parameters. In my FORM I have
method=POST input type=file and action=http://php;; It sends it to
the php file but I don't want the php to be visualized (in fact it just
works with the data  and inserts in database). I want to keep the original
HTML and the php working in the background.

Is for that absolutely necessary Ajax?

thanks,
Pere
--
View this message in context: 
http://www.nabble.com/uploading-files...-necessary-Ajax--tf4849678.html#a13875829

Sent from the PHP - General mailing list archive at Nabble.com.


Hi

Why don'tr you upload the file and have a cronjob running in the background, 
executing the PHP file on command line? That way, the work will get done and 
the user won't see anything.


Just an idea :o)

Chris 


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



[PHP] Re: Rename does not work

2007-10-19 Thread Christian Hänsel
Sascha Braun | CEO @ BRAUN Networks [EMAIL PROTECTED] schrieb 
im Newsbeitrag news:[EMAIL PROTECTED]

Hi everyone,

I am using the rename function on my local development
system fine. But as soon as I upload the script, the
rename function does not work anymore.

Is there a specific compiler flag needed, to make rename
work on both plattforms?

Thank you very much.

Sascha



Hi Sascha,

What is the error? Did you check for folder permissions (chmod)?

Cheerio!

Chris 


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



Re: [PHP] Classes - Dumb question

2007-10-13 Thread Christian Hänsel


Jay Blanchard [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]

[snip]

First of all what you call normal is procedural or functional
programming. There is nothing wrong with doing things this way and may

be

especially quick and efficient when doing basic web sites and

applications.

Document well and you will have no problem maintaining your code.


One correction.  What is being described is procedural or imperative
programming.  Functional programming is another beast entirely
(closures,
first-class functions, immutable variables, etc.).  PHP is not a
functional
language by any stretch of the imagination.  For functional programming,
see
Erlang, Haskel, ML, LISP, and to a lesser extent Javascript.
[/snip]


Thanks for the correction Larry, I knew the difference and just brain
farted.


Thanks guys,

I will try to test some of this stuff for my new project... could be fun 
from what I have seen so far.


Cheers!

Chris

--
-
My baby's first words will be
Hello World

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



[PHP] Classes - Dumb question

2007-10-11 Thread Christian Hänsel

Howdy fellas,

okay, this is really (!) embarassing, but I have to ask:

Why would I want to use classes in PHP?

I have been using PHP for years now and writing the normal functions all 
the time. I have never even bothered working with classes, but now I would 
love to know what makes the classes so special...


Please go easy on me ;o) Just trying to make another step :o)

Cheerio, and thanks in advance for any answers.

Chris 



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



[PHP] Re: Data request

2007-09-25 Thread Christian Hänsel
Colin Guthrie [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]

Auto-Deppe, C. Haensel wrote:

Haha... nice one Col! Just started up my work computer, and the first
thing I read is your post. Really a good start into the day :o) Thanks.

Paul: Thanks for the flightgear link. As a FS2004 user I never even
thought of flightgear, so thanks, I'll have a look at that :o)


I think you missed the Reply All button that this list likes so much

PS I got nostalgic and had to look up Henry's Cat:
http://www.henryscat.com/ awesome :D

Check out Henry's Cat TV and hit the Jingle episode if you want to hear
the bit I (mis)quoted originally! Oh to be a child again (and not just
settle for having the mental age of one) :p

Col


Heck, I am turning 30 at the end of next month :o( Quit talking about age 
*big grin*







- Original Message - From: Colin Guthrie [EMAIL PROTECTED]
Newsgroups: php.general
To: php-general@lists.php.net
Sent: Monday, September 24, 2007 6:12 PM
Subject: Re: Data request



Stut wrote:

Have you tried Google? It knows a lot about most things and a little
about the rest.


Failing that you could try asking Henry's cat. You must know Henry's
cat? He knows everything about nothing and not to much about that. So if
you know someone who know what he knows then you must know Henry's
cat
/end totally irrelevant 80's cartoon reference

I'll get my coat

Col






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



[PHP] Data request

2007-09-24 Thread Christian Hänsel

Good afternoon folks,

as this is not directly related to PHP, I put OT into the subject line...
Just trying to stop them watchdogs from biting me ;o)

Anyhow, I am looking for data, preferrably in CSV format, concerning
aircraft. I do have a list of all aircraft which are currently crossing our
sky, but what I am looking for is a dataset with as much information as
possible, i.e. seating capacity, which airline is flying this aircraft,
range... all that kind of stuff.

If anybody has a good resource for stuff like that, please let me know. It
would be highly appreciated.

All the best!

Chris

--
-
My baby's first words will be
Hello World



--
-
My baby's first words will be
Hello World

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



[PHP] Re: Creating watermarks

2007-08-05 Thread Christian Hänsel
zerof [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]

Tom Ray [Lists] escreveu:
I've been learning how to use PHP with the GD Library and I've managed to 
learn quite a bit. I can upload, resize, create thumbnails and I'm even 
able to create security code images for forms. My question is how do I 
create a Watermark on the image? I want something transparent but still 
visible enough to see the copyright and the website. I want to put it in 
the center of the image. I would use a non-water marked image and when 
it's called on (depending on viewing size) I want the water mark to be 
added.


How would one go about doing that?

---
http://www.educar.pro.br/en/a/gdlib/index.php?pn=76tr=97

http://www.educar.pro.br/en/a/gdlib/index.php?pn=23tr=97

http://www.educar.pro.br/en/a/gdlib/index.php?pn=81tr=97

--
zerof
http://www.educar.pro.br/
Apache - PHP - MySQL - Boolean Logics - Project Management
-- 
You must hear, always, one second opinion! In all cases.

--
Let the people know if this info was useful for you!
--


Hi

I'm using a half-transparent png to overlay the original image. You can see 
it here: http://www.auto-deppe.de/index.php?module=fzg_detailfzg_nr=77


The overlays do not show in the thumbnails, nor do they appear on the 
printout pages for resellers. Click on an image (preferrably one with a 
darker bottom left part) to see the watermark appear. This is simple GD with 
a transparent png overlay :o)


All the best!

Chris

--
-
My baby's first words will be
Hello World

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



[PHP] $_POST- Vars - Back-Button

2007-08-01 Thread Christian Hänsel

Hi guys,

this might be a noob- question, but I simply do not care anymore. After a 
few hours of fiddling with this @/**%$ (screaming AAa), I would 
like to ask you.


So what I have is this: I have a search engine for a car market, which has 
about 30 $_POST- vars. Now when the user clicks on a result link, it takes 
him to the car details page. Now when he hits the back button, he either 
gets the Page has expired (IE) or the Wanna send the form data again 
message box (FF).


Now I would like to have kind of a back-button, so the user will see the 
reusult list again without having to deal with this.


I guess what I'm asking for is a one-click re-submission of POST data... Do 
you have a clue on how to do this?


Cheers for any answers!

Chris

--
-
My baby's first words will be
Hello World

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



[PHP] Blooging Portal

2007-07-31 Thread Christian Hänsel

Good morning group,

this is not generally a PHP question, but either way I'm gonna ask :oP

Does any of you know a decent Blooging Portal software? Of course, it should 
be OpenSource ;o) What I wanna do is: I want to give people the ability to 
create their own blogs on my server under one domain name... so 
myblogonchrisserver.com/stephen would go to stephen's blog (just so you see 
what I mean).


Does anybody have an idea? It'd be greatly appreciated.

All the best!

Chris

--
-
My baby's first words will be
Hello World or maybe foo/bar

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



Re: [PHP] Blooging Portal

2007-07-31 Thread Christian Hänsel
Oliver Clarke [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]

Christian Hänsel wrote:


this is not generally a PHP question,
but either way I'm gonna ask :oP



Does any of you know a decent
Blooging Portal software?


Sorry you must have the wrong list. This one is dedicated to futile
discussions about Copyright Infringement vs Theft.

:)

Regards,
Oliver
Skype: OliverC999
Mobile: 07985 144636


Thanks guys,

I will check out both programs... any other ideas while I am downloading? 
;o)


Cheers

Chris

--
-
My baby's first words will be
Hello World

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



[PHP] day in week

2007-07-25 Thread Christian Hänsel

Good morning fellas,

I was wondering if there was a function like is_this_week()...

What I have is a statistics table for the last week, from strtotime(Last 
Monday) to strtotime(Last Sunday)... now I wanna put a different 
background colour on the rows where the shown weekday is in the current 
week... I hope you guess what I'm shooting at :o) So if today is Thursday, 
everything from last monday to last thursday should be shown in a 
different colour.


Does anybody have an idea? I was thinking of doing it with time() and 
maths but I was hoping there was a simpler approach.


All the best, the weekend is near!

Chris

--
-
My baby's first words will be
Hello World ... or maybe foo / bar ?

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



Re: [PHP] open a file in a folder without knowing the filename

2007-06-22 Thread Christian Hänsel
Tijnema [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]

On 6/22/07, Zoltán Németh [EMAIL PROTECTED] wrote:

2007. 06. 21, csütörtök keltezéssel 20.07-kor Tijnema ezt írta:
 On 6/21/07, Dan [EMAIL PROTECTED] wrote:
  Seconded :D

 Cool, please go to the following url and clickthe button:

 http://gpcc.tijnema.info/

I clicked, although I don't use gmail - but I might register an account
for use with this list if it comes with php code coloring ;)

greets
Zoltán Németh



Thanks for your vote!, the counter is at 44 right now :)

Tijnema



 Tijnema

  Tijnema [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   On 6/21/07, Daniel Brown [EMAIL PROTECTED] wrote:
   On 6/21/07, Tijnema [EMAIL PROTECTED] wrote:
I like that disclaimer :)
   
I write a lot of code for this list in my mail..
  
  Yeah, I think I use the Gmail PHP IDE more than I use ViM! 
   ;-P

  
   --
   Daniel P. Brown
  
   Let's send a future request to google, we want PHP color coding in
   Gmail!!! :)
  
   Tijnema
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 






--
Vote for PHP Color Coding in Gmail! - http://gpcc.tijnema.info

Hi guys, Tijnema,

I have put up a link on my website for the german speaking folks so they can 
vote, too :o)

The URL is http://www.chftp.com . I hope you're oka with that :o)

Cheers, and all the best!

Chris
-
I submit my stuff @ weberdev.com

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



Re: [PHP] Re: London PHP salaries

2007-06-15 Thread Christian Hänsel

Hi Zoltan

That is just about what I am getting here (1380 net). And I am by far not a 
professional. It's just enuff to make a living. And I pay 350 for my rent. 
And then all the other crap *g*


Well, back when I was self employed, I could easily sell a site for 8000 to 
1 Euros... but without any real financial security. So now I have gotten 
this fulltime job with just a little pay (after all, the money I can _spend_ 
freely is just about 100 Euros above welfare), but I am on the safe side.


But I wouldn't go and work in a major city like London unless I'd get my 
rent money plus money for a decent car plus all the insurances plus at least 
500 GBP to spend (for myself only, more if you have a family).


Cheerio
Chris
--
-
I submit my stuff @ weberdev.com


Zoltán Németh [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]

2007. 06. 14, csütörtök keltezéssel 10.41-kor Javier Leyba ezt írta:

 For living in London you would need at the lower
 end 35k but why would you want to come and live
 in London from Spain ? If I had the choice I
 know where I would choose.

I couldn't imagine why you like Spain but...

Just check out Spain salaries and tell me what you
think. You can check Monster.es or infojobs.net

A friend of mine received an offer some days ago from
a recruitment consultant to work in the big bank of
catalonia.

They asked for an experienced J2ee architect with
knowledge of Unix, Hibernate, Spring Framework,
RDBM´s, systems analysis and design, spanish, catalan
and english fluent, etc How muche they offer ? 21K
euros !!!

It means around 1000 euros net each month and to rent
a flat in Barcelona costs 900/1500 euros month...


hmm here in Hungary a monthly 800 - 1200 euros net salary is normal for
php developers. but the flat rent costs only 250-350 euros per month (in
Budapest)
so that means I wouldn't go to Spain to work ;)

greets
Zoltán Németh



There are better offers, but not much than 30K and
it's not enough.

For PHP you couldn´t expect more than 18k...

Do you like Spain, now ?  :)


J




  __
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas



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



Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Christian Hänsel
On the weekends, I get to maintain my own websites, do research, satisfy the 
needs of my girl, learn new stuff (like JS right now *yikes*)... damned, I 
can't wait til September when I get TWO WEEKS OFF :oD


--
-
I submit my stuff @ weberdev.com


Jason Pruim [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]
You get weekends off? THAT'S IT! I'm calling my union rep!!! Oh  wait.. I 
don't have one... My SMALL 4 person company is joining a  union! :P 


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



Re: [PHP] RE: London PHP salaries

2007-06-15 Thread Christian Hänsel
That is oh so true. But why are we doing this? Cause we like to think and 
work hard, be brain-dead by the end of the day, drink coffee by the 
hectoliters and get no applause at all from our bosses (at least my boss 
doesn't ´know what the heck I am doing here all day long).


God, I love programming PHP *g* But in 15 minutes I will go into my 
well-deserved WEEKEND!!!


Have a good one ya'll!

Chris

--
-
I submit my stuff @ weberdev.com


Sancar Saran [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]

It seems most php developers around the world are in famine.

Herding lambs and raising cucumbers far more feasable than creating php 
based

sites...

Sancar 


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



[PHP] Re: efficient log system

2007-06-12 Thread Christian Hänsel

Hello Alain,

I can just tell you from my experience.
I have recently created a, in my eyes, pretty big project, and wanted to 
track everything, starting from user navigation over search queries to 
login/out times, article printout times and count, photo views and 
everything your mind can imagine. I didn't do this for just the fun of it, 
but to see what our users do on our website and to improve the handling of 
the site.


Anyhow, I think you get the idea. Now, what I've done, was to write all that 
into a mySQL database... and by now I think I shouldn't have done that. I 
did a DB-backup today (after 4 weeks of having the site up), and already the 
size of the DB is 10+ MB of textual data. What will it be after a year...


So I guess it really depends on what you have in mind. I do store a lot of 
text data, so you might not even come up with 15% of what I'm saving. I 
think you should do some planning and try to see how many users will visit 
your page, and then calculate the amount of data your might be writing to 
files or a database. From my point of view, a database solution is just 
fine, until you have to restore that database from your local computer with 
a dump (uploading and all :oP)


Just to show you what I dod and what amount of data I'm getting :o)

Cheerio!
Chris



Alain Roger [EMAIL PROTECTED] schrieb im Newsbeitrag 
news:[EMAIL PROTECTED]

Hi,

I would like to create a log system to keep a trace of all users' actions
(log-in, remove, change or update data, and so on...).
What should i do or to what should i take care to not have problem ?

I was thinking to create a folder on my server where log files will be
stored, but what is the best practice.

thanks a lot,

--
Alain

Windows XP SP2
PostgreSQL 8.1.4
Apache 2.2.4
PHP 5.2.1



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