Search found 13 matches

by yamobe
Thu Jun 23, 2011 3:53 am
Forum: PHP - Code
Topic: very large arrays
Replies: 3
Views: 430

Re: very large arrays

I can unset some unused data.. that's true... that would reduce to something around 300Mb perhaps... which is still very high... I don't think I can do better than that. The algorithm is a heavy transport model that was done by a mathematician, so I can't do anything about that... It is what it is. ...
by yamobe
Wed Jun 22, 2011 1:29 am
Forum: PHP - Code
Topic: very large arrays
Replies: 3
Views: 430

very large arrays

Hello I have a BIG problem!! I was making a Game which needed very heavy processing (I didn't know that at the beggining). The incredibly big arrays used, use server memory up to 1Gb, which is ridiculous. I have been working on this more than 2 months, and I don't want to start all over again. Do yo...
by yamobe
Wed Aug 02, 2006 3:33 pm
Forum: PHP - Code
Topic: header()
Replies: 4
Views: 430

Everah wrote:Those two lines are telling the browser to not store static cached copies of the pages content on the client machine and every time the page loads, to load from the server instead of the local cache copy, I believe.
thanks, that's exactly what I needed to know :D
by yamobe
Wed Aug 02, 2006 3:11 pm
Forum: PHP - Code
Topic: header()
Replies: 4
Views: 430

header()

Hi, can someone explain as I was a five years old boy step by step what this is? header("Cache-Control: no-store, no-cache, must-revalidate"); header("Pragma: no-cache"); my code is: <?php header("Cache-Control: no-store, no-cache, must-revalidate"); header("Pragma...
by yamobe
Fri Jul 14, 2006 7:49 pm
Forum: PHP - Code
Topic: session lost when meta refresh
Replies: 9
Views: 2283

I think you're going to have to post the entire page contents. FYI, $session_variable is not the same as $_SESSION['session_variable'] and will only work if register_globals is ON in php.ini. That's not good since it allows your script to be "injected" with globals from GET/POST etc. regi...
by yamobe
Fri Jul 14, 2006 7:06 pm
Forum: PHP - Code
Topic: session lost when meta refresh
Replies: 9
Views: 2283

I tried this

Code: Select all

echo '<pre>'; print_r($_SESSION); echo '</pre>';
when i run the page I get
Array(
session_variable => its value
)

When the page refresh I get
Array(
)


I also tried

Code: Select all

session_write_close();
without results...

any other ideas? I'm stuck here :(
by yamobe
Fri Jul 14, 2006 4:52 pm
Forum: PHP - Code
Topic: session lost when meta refresh
Replies: 9
Views: 2283

session lost when meta refresh

hello, this is a piece of my code mypage.php <?php session_start(); echo $session_variable; ?> <META HTTP-EQUIV="refresh" content="5;URL=http://.../mypage.php"> when I enter mypage.php there is no problem, and $session_variable is correct after 5 seconds, the page refresh with th...
by yamobe
Mon Jun 19, 2006 5:59 pm
Forum: PHP - Code
Topic: webpage divided in different sectors
Replies: 4
Views: 785

OH.. finally I have my answer, great

I will take a look to Proper use of $_GET with includes, but I think frames are just what I wanted.

Thank you guys
by yamobe
Mon Jun 19, 2006 5:51 pm
Forum: PHP - Security
Topic: enqueue users
Replies: 4
Views: 1906

now a new problem pops up

when I refresh the page I loose the nick and password variables I get with $HTTP_POST_VARS

should I work this out with some session variables=?
by yamobe
Mon Jun 19, 2006 10:17 am
Forum: PHP - Security
Topic: enqueue users
Replies: 4
Views: 1906

yeah... token is a good work to start my search, then you are right.. I could refresh the page every few seconds to update the positions. cool
by yamobe
Mon Jun 19, 2006 10:10 am
Forum: PHP - Code
Topic: webpage divided in different sectors
Replies: 4
Views: 785

webpage divided in different sectors

What I want to do is to separate the webpage in 2 halfs so the half in the left has buttons that points to different locations which are displayed in the right side of the webpage, without actualizing the left part of the page, only the right side.

I hope you understand what I am trying to explain
by yamobe
Mon Jun 19, 2006 10:01 am
Forum: PHP - Security
Topic: enqueue users
Replies: 4
Views: 1906

enqueue users

Hello, well... I have been trying to achieve this task with not very good results. Hopefully someone can help me. I want to do the following thing: I have a webpage with authentification, and it is a virtual lab to control a motor remotely, so only ONE person is allowed to enter to my website, other...
by yamobe
Mon Jun 19, 2006 9:56 am
Forum: PHP - Code
Topic: Newbie: Undefined index: ..= $HTTP_POST_VARS["hook"
Replies: 10
Views: 1162

another way to make it work is to replace $HTTP_POST_VARS by $_POST.