nimopal could you please just give me a hint what exactly do you mean You mean that as a quote missing or issue

I have serialized data that wont get unserialized.. what could cause this?

any change to it at all

or "picnic" error problem in chair not in computer

ID10+

eye dee ten tea problem

ID10+ or ID 10 T as ID10T

the data should not be changed :/ the weird part is it works sometimes.. and when it dosent pressing f5 for 30 seconds or so and it works again for a while

didn't knew EBKAC yet

something is causing it

obviously

reduce it to a minimal test case

lal, Layer 8
strange, Layer 8 is used in the cisco OSI
in fact, cisco goes for 12 layers
iirc

kinda hard .. its a template engine for typo3 thats messing up
*sigh*

been a while since I did that exam _

debug the path which the data takes. So at each point check the data can be serialized and find out where it is being corrupted.
debug the path which the data takes. So at each point check the data can be serialized and find out where it is being corrupted.
You really should base64_encode the data though, to be sure that the characters in the string aren't being "escaped" etc
Sounds like you're making you're life very difficult though
try finding a better way of doing what you're trying to do
your*

true, if you can pass the serialised thing about, you should be able to pass the structure itself

indeed, you should only serialize when going into a database

Mace[work]: It's not me.. its templavoila - a template engine I have to use - that's doing it.. and its being serialized when going into the database and it wont be unserialized when it comes out it seems

it's probably being escaped or such. base64_encode it

Hi everyone
does anyone knows how can i show a div only if /file.php?div=on is set?
thanks

omg read reciepts parsing is a bitch

Mace[work]: if it was only that simple.. I can't *just* make changes to templavoila.. and even if I could it would be huge task to change the way it stores its template structures

you're telling me that templavoila requires you to send serialized data that hasn't been base64_encod'ed to the database? bull****

Mace[work]: I'm trying to load a template IT has stored which wont load… I've traced it back into templavoila where it actually fetches the data from the database and unserializses it
and no, it dosen't base64 encode it

what happens when you copy the string out of the database and try to unserialize it in a clean environment?
i'm not surprised these things are often not worth the time - what i meant was it won't prevent you from doing so

Mace[work]: ill try…

guys is there something to render an XML object obtained with simplexml_load_string back to string ?

did you try echo'ing it?

f00li5h, it doesn't work

oh well

hrm, anyone have (or know of) a code library that can generate rich text -like inputs (e.g. a blogging application) ?

*nuke include one, i forget what it's called though.

i could write one, i just dont really want to spend that much time on it.
i was thinking about checking out wordpress
and doing the appropriate amount of raping/pillaging
just wanted to know if anyone had suggestions, before i get too far involved in this project, and run out of liquor.

spaw.

?
nm, i jfgi'd.

it's not that hard to type whole words.

yeah, but i would have probably been banned for the 'f' in that acronym.
i know, i op in allnitecafe on undernet, i spend 3/4 of my day teaching people about the difference between 'ur' and 'you're'

and the difference between something in single quotes and a parse error?

touche.

2

Liquid-Silence: mktime()
and subsequently, date()

Liquid-Silence, take also a look at strtotime()

Anyone recommend a good dedicated hosting provider?

me

Noparse, exportal.pl

I need one that accepts paypal and could setup a 3-server cluster with load-balancing for me.

anycast?

if a checkbox on an html form is never touched, then isset will return false right?

Anycast?

Noparse, check servage.net
they do custom clusters

hi

the browsers submit the value of checked checkboxes only

Nomark, 1 router, 1 IP, connections are ballanced over the 3 servers behind the router

any php form generator people recommend

dingo, yeah, look at the end of your arms
I've been using the "Hands 1.0" form generator for years

so if it is untouched then it won't exist int the get or post objects at all and thus will be unset, correct?
*in

Would prefer a hardware balancer but whatever works.

Noparse, whats your budget?

I want a quote.

I belive that is the system most DCs will use

of course not

Money isn't really a issue.

but not unset - it just does not exists - that means undefined

hi guys, i'm having issues with www:dlashneta.com/work/magura … problem is a session var, but problem only shows up in ie. could someone please assis me further? i don't wanna start explaining the problem in one whole line
www.flashneta.com/work/magura *

it'd be easier if we could see the source

i will pastebin it … one sec
http://pastebin.ca/647303
i can paste you the whole thing … but i think it's useless

how much does a php web hosting programmer earns in england ? or europe?

mooooo

what's happening is … i check if index.php is called with additional get vars, if so … i compare them to values in an array, if no match is found a default value is set, if the get var is not set but the session var is … the session var gets unset
i do this because i display content in index.php wether the get var "cat" is set or not

are you calling session_start before accessing the session?

yes

k
thats cool

i call session_start right at the top
of the code …

yeah thats good gotta use that

i allso call session_start(); in prod_details
Undefined index: cat in dwork\magura\site\prod_details.php on line 4
$d = dir("./img/produse/mari/".$_SESSION['cat'].'/');
so i'm just using the session var
however it appears to be a problem only in IE
sounds pretty illogical to be since php code is server side
if i comment out the if(isset($_SESSION['cat'])) unset($_SESSION['cat']); line in index.php … the code works errorless
but then i won't be able to get back to the homepage ever …

!tell Suskcelom about enter

ow … um .. .yeah … sorry about that.
so, this is the issue i'm facing, any ideas guys? i ran out of them … i would apreciate a solution for it … workarrounds i could find on my own … or if there is no solution at least an explanation why this is happening. thank's a lot

before reading $_SESSION['cat'] gotta ask if isset($_SESSION['cat]')
it could be a new session, so cat won't be set yet

prod_details.php is not called anywhere else on the website but from that spot, i could do a if(!isset($_SESSION['cat'])){die('bla!');}
but that still wouldn't solve the problem.

php is saying 'cat' doesn't exist with that error

and to get to that spot … where you have to products list, you have to first click on a product, this implies setting the session var
yes
but how come it's saying that only on IE?

maybe sessino_start isn't set somewhere

it is set in both files

is IE accepting the cookie?

there is no coockie
or at least i;m not setting any coockies … (does $_SESSION set any coockies?)

yeah session_start normally arranges for a cookie to be sent at the end

well i can change the prefences of google.com and keep them stored on my comp .. .guess it's accepting coockies the way it should be.

Hey! What else could be a cause for getting syntax error, unexpected $end in line xxx besides missing curly brackets? (I have all bracetks in pairs so this I belive can't be it)

unbalanced quotes

while the file is being saved it can also happen

and it can read the session vars pretty ok .. because the same $_SESSION['cat']-using code in prod_details.php works if i comment that unset line in index.php
so the problem must me there somewhere …. but i don't get it

nimopal, could you please just give me a hint what exactly do you mean? You mean that as a quote missing or issue with single and double questes (or god forbid both possibilities?)?

matic, yeah like missing a closing quote

Okay, I'll recheck for that, thank you

might it help if i pastebin the full code of both pages?

yeah Suskcelom
Matic`Makovec, sometimes it can be good to just delete chunks of code till the error goes away
then u know where itis

so here is index.php: http://pastebin.ca/647316
and here is prod_details.php: http://pastebin.ca/647320

I'm actually commenting it out right now but yeah

so u click index.php, select a category, then select a product.. rite

ya, when selecting a product i got to prod_details.php … so it shoudn't unset anything
i don't know … it's at least weaird for me … :P
weird*

yea weird
seems like IE isn't taking your cookie

like i said … if i comment out that unset like … it's working … so the coockie IS beeing set …

somehow you are reaching prod_Detail.php without clicking a category.. or you're hitting index.php in between

hm, ok, but how, when? i mean physically i don't … that's obvious
anyone alive in here except nimopal, i could use anyones opinion on this…

what is the function that can sanitize HTML.

strip_tags() htmlspecialchars()

i could set another get var and only unsert $_SESSION['cat'] when that var is set, but i didn't want to set another var for this thing only … when it fould have been done like this …
could*

AlexC_ thanks

nad besides, it's allso interesting to know what's cousing the problem …

http://www.pennergame.de/ref.php?uid=1521

createthumb('img/$userid/$name','img/$userid/thumbs/$name',100,100);
is this ok?
to call a function?

no, logik-bomb

meow ~.~

hey ^^

hey AlexC_ :P

how should I do?
echo?

the arguments sent will be just that - img/$userid/$name - you want createthumb( 'img/'.$userid.'/'.$name,

logik-bomb: variables in ' are not replaced

how are you, foutrelis?

any ideas on doing a regular expression check on a string containing newlines ?

Pretty good. :] And you?

thanks

sismeiro_ olá

^^ I'm good, yeah I'm working on getting the forums up :P

ol
aola
ola
:P

estás no escritório?

yap
está cá o BIG

eu seu
eu sei
com a galega
:-D

yap

ah, nevermind

createthumb('img/'.$userid'/'.$name','img/'.'$userid'/thumbs/'.$name',100,100);
ok?

no, logik-bomb
re-read the example I gave

ok
createthumb('img/'.$userid'/'.$name,'img/'.'$userid'/thumbs/'.$name,100,100);
:X

logik-bomb: You need a dot after $userid

and no single quotes around the vars

logik-bomb: And after $name

syntax error, unexpected T_CONSTANT_ENCAPSED_STRING

logik-bomb: 'this'.$foo.'bar'.$car;

logik-bomb: get an editor that has syntax hilighting

vim
vim vim vim vim
im a vim advocate :P

createthumb('img/'.$userid'/'.$name,'img/'.$userid'/thumbs/'.$name,100,100);
i think is this

createthumb('img/'.$userid.'/'.$name,'img/'.$userid.'/thumbs/'.$name,100,100);

thanks

np, now get vim so you wont have this problem again

:set ft=php
:syn on

with the right vimrc syntax should be automagically setup once u load the file
uwith the right vimrc syntax should be automagically setup once u load the file /u

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: