Search found 30 matches

by Ragnis
Fri Oct 29, 2010 3:19 pm
Forum: PHP - Code
Topic: Need some help with Login script,
Replies: 2
Views: 115

Re: Need some help with Login script,

You are missing a semicolon at the end of line 15.
by Ragnis
Sun Oct 03, 2010 2:38 am
Forum: PHP - Code
Topic: $_GET problem
Replies: 6
Views: 709

Re: $_GET problem

After the data is added tothe database, redirect user to somewhere else.

Or if you want the user to stay on current page, just redirect him to shop.php?&artid=1819040&done=1.
by Ragnis
Tue Sep 21, 2010 7:56 am
Forum: General Discussion
Topic: What is PHP core?
Replies: 20
Views: 1944

Re: What is PHP core?

5. PHP is written in C
by Ragnis
Mon Aug 30, 2010 12:38 pm
Forum: PHP - Theory and Design
Topic: Variable variables
Replies: 37
Views: 11073

Re: Variable variables

Because theese variables names are dynamic.
by Ragnis
Thu Jul 22, 2010 9:59 am
Forum: PHP - Code
Topic: Session variables problem
Replies: 3
Views: 335

Re: Session variables problem

From your php.ini file set register_globals = Off
by Ragnis
Mon Jul 19, 2010 5:43 am
Forum: PHP - Code
Topic: STDOUT problem
Replies: 1
Views: 534

Re: STDOUT problem

by Ragnis
Sun Jul 18, 2010 10:30 am
Forum: General Discussion
Topic: Software that downloads PHP files?
Replies: 5
Views: 1007

Re: Software that downloads PHP files?

No, it is not possible.
by Ragnis
Tue Jul 13, 2010 11:53 am
Forum: PHP - Security
Topic: script tag inserted
Replies: 6
Views: 2390

Re: script tag inserted

Very likely teh hacker just uploaded a php file and then executed it by going to yourdomain.com/files/hackerfile.php.

To prevent futher attacks you should put some kind of file extension check to your upload.
by Ragnis
Tue Jul 06, 2010 8:39 am
Forum: PHP - Code
Topic: Session Variable Life?
Replies: 6
Views: 145

Re: Session Variable Life?

Code: Select all

<input type="hidden" name ="responderurl" value="http://www.mydomain.com/index.php<?php echo '?' . urlencode(session_name()) . '=' . urlencode(session_id()); ?>">
by Ragnis
Wed Jun 02, 2010 11:53 am
Forum: General Discussion
Topic: Twig and Doctrine in GPL project.
Replies: 3
Views: 678

Re: Twig and Doctrine in GPL project.

Ok. But can i apply GPL license to my project like phpbb does? (The other question)
by Ragnis
Wed Jun 02, 2010 10:26 am
Forum: General Discussion
Topic: Twig and Doctrine in GPL project.
Replies: 3
Views: 678

Twig and Doctrine in GPL project.

Can i license my open sourced CMS under GPL v2/v3 license if it uses Twig (BSD License) and Doctrine (LGPL)? And do i have to put this text to the beginning of all my source files... * This file is part of Foobar. * * Foobar is free software: you can redistribute it and/or modify * it under the term...
by Ragnis
Sat May 29, 2010 9:51 am
Forum: PHP - Code
Topic: Symfony 1.4: Custom directory structure
Replies: 0
Views: 650

Symfony 1.4: Custom directory structure

I want to use the following directory strucure: home ---xx ------private_html ---------api ------------apps ------------cache ------------config ------------... ------public_html ---------api ------------index.php ------------frontend_dev.php ------------... But i don't know what files i need to edi...
by Ragnis
Mon May 03, 2010 9:13 am
Forum: PHP - Code
Topic: [SOLVED] Doctrine: Fetch results as object
Replies: 0
Views: 164

[SOLVED] Doctrine: Fetch results as object

$query = Doctrine_Query::create() ->select('users.*') ->from('Users users') ->limit(1); $result = $query->execute(); print_r($result->toArray()); This code returns me results as array. But is it possible to get the results as an object. Like mysql_fetch_object does. I'm using doctrine version 1.2 E...
by Ragnis
Wed Mar 17, 2010 8:37 am
Forum: PHP - Security
Topic: Preventing Hacking Via Image Upload PHP
Replies: 9
Views: 4145

Re: Preventing Hacking Via Image Upload PHP

But you can just check the file extension before saving the file.
So nobody won't be able to upload php files.