
BK87
-
Posts
147 -
Joined
-
Last visited
Posts posted by BK87
-
-
So basically I have a ajax call from Server A to Server B, passing some 'session keys', once those keys get to server B, it gets authenticated and sessions get set. The problem I'm having is that as soon as I make another call to same URL the sessions disappear from Server B.
here is some code,
<?php session_start(); header("Access-Control-Allow-Origin: http://domain.com"); include("lib/class.php"); $f = new MyClass(); var_dump($_SESSION); //empty everytime if (isset($_GET["sessionid"]) && isset($_GET["secretkey"]) && !isset($_SESSION["user_id"])) { $f->authSession($_GET["sessionid"], $_GET["secretkey"]); } var_dump($_SESSION); //sessions are set as expected
The servers are on different machines.
Let me know if you guys have any input, thank you.
-
Hello freaks!
So I'm trying to build an app which requires to have recurrent events, such as repeat, every week on mon wed fri at specific time with occurrences limit, or limited by date ranges. Perfect example is Mozilla Sunbird or Google Calendar and their repeat features, especially Sunbird, which has an 'exception' feature which I direly need. I've been kind of stuck with the database design ideas. I've done a numerous amount of research, even as much as trying to sort through Sunbird's sources for table schemas, but I can't seem up fully understand how to make this PROPERLY.
I will greatly appreciate some guidance!
Thank you in advance guys!
-
-
Hello! Haven't been on this forum for quiet sometime! But, I have some free time on my hands and looking to do some php work =D
Let me know if you have anything that needs to be done. All work is done on project basis, not hourly. You don't pay in full until it works =)
ps. also looking for web designers who want to partner up with development.
-
hmm now that I think about it I don't even know why I wrote that... idiot me, thanks for correcting me.
-
<?php $value_one=26; //integer $value_two="26"; //string if($value_one == $value_two){ echo "the values are identical"; //they are both `26` --- string or integer } /* * this next example featuring "===" (explicit) will never process because $value_one is an integer and $value_two is a string, yet they have the same value of `26` * comparing two strings with explicit isn't necessary * good practice is to compare TRUE and FALSE statements this way. * to make sure that "true" (string) isn't the same as TRUE (boolean) */ if($value_one === $value_two){ echo "the values are identical"; } ?>
i hope I got that right.
-
your imagettftext function format is invalid, refer to manual.
http://us.php.net/manual/en/function.imagettftext.php
replace your code with this line
ImageTTFText($img_number, $font_size,10,5,5,$textcolor,$font_path,$number);
-
I think looks and works just fine. I like it.
Watched your entire run too.
As for the white, most video hosts quickly see that the bandwidth is crucial, so less crap to load the better, examples would be wisevid and zshare, I remember wisevid was all sleek and fancy, they changed that in a hurry.
Thanks! =D
This design is about 3 years old. I started this site although never finished it due to college. Got some energy to sit down and try to finish it. I'm focusing on video quality and not too much worried about the footer and how it looks. (I've updated some video quality settings for future videos) I'm expecting this site to be somewhat popular among the motorcycle community although not as big as youtube. Although who knows. =D
-
Agreed with ignace on preloading the images.
I think the footer needs something to help tie it in. The bottom (well, most of the content area too) seems very blah with just a standard white. Perhaps add a light texture and defined footer?
BTW - you've got some balls. I doubt I'll ever take my bike to the track
=D Believe it or not... Track is safer. Although its very addicting.
-
preload images is about the only critic I have
I was thinking that too! Thanks.
-
..
-
Need some criticism. Site is not 100% functional yet, although about 10% left to do. Anyway
Things you should know. Uploads work, although video conversion is not automatic! (because currently looking for some of the top mimetype to support, so upload away!) Search not fully working!
Currently on a 1gige port, speed seems to be nice =D
Also, all videos that have a bike number #911 or a funky colored suit. (green/red/yellow) thats is actually ME! (http://www.motohd.com/watch/S5Kb7lkpi7/) just skip to about 1:30 =D
Thanks fellas!
-
basically, if the url is not set to login ie. http://site.com/ then a default login is provided. If the login info is provided, than process the actual user and pass supplied.
How can this be achieved?
-
-
search what? database?
-
<?php echo ini_get( 'session.save_path'); ?>
whats where all the sessions are stored.. Just make a script to calculate how many files are in that folder... thats how many active sessions there are.
That won't get you 'who' is logged in. The method denno020 suggested is the typical method used. You simply update a timestamp every time a user hits a page. You then (where you want to display the logged in users) query for all users with a timestamp within the last ten minutes and display them, the rest can be removed (all in this same process).
ahh yes, didn't fully read his post... you're right
-
<?php echo ini_get( 'session.save_path'); ?>
whats where all the sessions are stored.. Just make a script to calculate how many files are in that folder... thats how many active sessions there are.
-
<?php include 'include/config.php'; $sql = mysql_query(" SELECT * FROM logos "); while($row = mysql_fetch_assoc($sql)) { echo $row['image']; if($i%2==0){ echo " "; }else{ echo "<br />"; } $i++; } ?>
not tested. but should work
-
<? $row=mysql_fectch_array($result); if($row["earth_room"]==$taken){ //do something } ?>
-
Well. Unless you have an account, you cannot track your uploads. Click "Join Beta" on bottom of page
-
add one more bracket in the end... }
also consider buying phpdesigner. it only costs $37 saves you from all a lot of headache. or another ideal ide.
-
I'm looking for a quick critique. Not fully functional (when you login, please click Join Beta bottom of the page)
I'm looking to perhaps sell this site. Any takers? Let me know guys.
-
<?php while(false != ($file = readdir($dir))) { if($file != "." && $file != ".." && $file!=".htaccess"&&$file!="index.php") { echo("<a href='$dirname$file'>$file</a> <br />"); } } ?>
-
Example file name = tag-'em.jpg
I tried to use str_replace("'", "\'", $name);
outputs <img src="http://www.example.com/tag-%5C" em-and-bag-\="" em.jpg="">
been googling for last hour or so I cant figure it out.
show me the code that displays the link it self.
PHP Sessions Cross Domain
in PHP Coding Help
Posted
Nice! Thanks I solved the issue with that document =)