
l4nc3r
Members-
Posts
82 -
Joined
-
Last visited
Never
Everything posted by l4nc3r
-
Use good grammar and spelling if you want to be taken seriously. Is the cURL library enabled on your local PHP installation?
-
Anything and everything is possible with programming Something like this: <?php $subtotals[]; foreach($data as $transaction) { if(empty($subtotal[transaction[0]])) { $subtotal[transaction[0]] = 0; } $subtotal[$transaction[0]] += $transaction[3]; } ?> And then do whatever you want with the subtotals.
-
Learn AJAX or Flash. I have a chat room script you might want to buy. Here is the link: http://www.phpfreaks.com/forums/index.php/topic,248665.msg1164366.html#msg1164366
-
How to create an iframe script with URL variables?
l4nc3r replied to Craznal's topic in PHP Coding Help
Well, I'm guessing the 404 has something to do with the entire Google URL in the GET vars. There are a few ways you can solve this. One way is to append "http://" to all of the urls you get in before you put them in to the iframe. Like: <iframe src="<?php echo 'http://'.$_GET['url']; ?>"></iframe> where $_GET['url'] would be something like "www.google.com". Another way, which I recommend, would be to encode all of the URLs before you put them into the URL and then decode them on the receiving page. So the first page would look like: <?php $url = urlencode('http://www.google.com/'); header('Location: http://www.mywebsite.com/sample.php?url='.$url); ?> And the second page would look like: <?php $url = urldecode($_GET['url']); ?> <iframe src="<?php echo $url; ?>"></iframe> -
You pretty much answered your own question in your post. For some reason the .LibStd folder is missing. It's probably an installation error of some sorts for the login system you are using.
-
No, it's not an actionscript problem. There are many ways to do this, but you're going to want to start by learning embedded objects in HTML. Then, if you want a flash style player (rather than, say, Quicktime or Windows Media Player), then you'll have to download an FLV player or make one yourself (which, I guess, in this case it would be an actionscript problem). Streaming is a pretty big subject, so you'll want to get started by googling "how to stream video".
-
The answer can be found here: http://tinyurl.com/kjz6qm
-
Hey, I'm making an AJAX calendar (http://71.192.12.240/Calendar%20Project/calendar.php) (It only works in FF for now), and I keep getting an odd space between the days of the week and the calendar cells when I change months. The way it works is when the user changes the month, it goes through and deletes all of the rows that aren't the days of the week and then adds the new rows for the new month. If I set the table border-spacing to 0, it doesn't happen anymore, so I think the browser thinks there is an extra row in there..? Though, I carefully monitored how many rows were being added and deleted, and I didn't find any extras. What's wrong? Any help much appreciated Thanks, Tucker
-
Ah, thanks! That made it work
-
I'm creating a program that will parse an uploaded csv file, but I keep getting these strange characters within the data. If I re-save the file in MS Excel, it works fine, but I need the originals to work. The only differences between the two are the " it inserts before/after each row and the attributes property of the new file (in right click > properties > details) is just A, where in the original it's AN. What does that mean? Here's the code: ... $report_resource = fopen($_FILES['report']['tmp_name'], 'r'); echo fread($report_resource,filesize($_FILES['report']['tmp_name'])); while ($report_data = fgetcsv($report_resource, '', ',')) { ... } ... Which outputs: It has the data there, it's just garbled by the ? characters. What's happening? Any help much appreciated
-
Try using an if statement in there, like so: $path = "members/".$fl."/".$name; $path2 = "members/".$fl."/".$name."/priv"; mkdir($path, 0755); chmod($path, 0777); if(mkdir($path2, 0755)) { chmod($path2, 0777); } else { header ("Location: fatalerror.php"); } exit; }
-
[SOLVED] How to direct the current page to another page ?
l4nc3r replied to tmyonline's topic in PHP Coding Help
Yeah, just remember to put the action attribute into your <form> tag. Whatever action equals is where the page is headed with the data. If you want to send data, you also need to include the method attribute. This will be GET or POST. You can google the difference. It looks like you already know how to write forms. Just make sure everything has a name attribute (which will be the index in the $_POST or $_GET array in the next page.) Good luck! -
If global variables is off (which it should be for security purposes,) $case isn't defined. If the receiving file (in the action attribute) was PHP, the $case variable you are referring to would be in the $_POST array. So $case would actually be $_POST['case'] in the file you are sending the form to. There's no need to put $case into the url like that (if I understand correctly.) Also, www.mysite.asp isn't a valid URL (at least I don't think it is..it should be www.mysite.com (or net/org/etc) and then /file.asp.) This is what it should look like: echo "<form method=\"post\" action=\"http://www.mysite.com/file.asp?r=12345678\">\n"; Calling echo so many times will slow down your script. Use only one echo and encase everything in quotes. Use single quotes, too. They're slightly faster and you're already writing code geared toward them. I hope I'm not too confusing, and good luck!
-
phpMyAdmin crashes CGI / fastCGI on Create Table
l4nc3r replied to l4nc3r's topic in PHP Installation and Configuration
FIXED: Merely stopped all extensions except mysqli. I'm going to go through and uncomment one by one the ones I want now. -
>.< I'll be the guy that tells you to reinstall PHP (or at least repair it.) Run the php-cgi.exe and see what it shows you. There could be an error with an extension (though I doubt it.)
-
Environment: Windows XP Abyss WS X1 PHP 5.2.3 MySQL 5.0 phpMyAdmin 2.10.2 I can open up phpMyAdmin and create databases, but when I try to add a table to one of the databases, windows gives a "CGI / FastCGI has encountered a problem...etc." Here's what I've done: Reinstalled MySQL Resinstalled PHP Reinstalled/upgraded phpMyAdmin Attempted to create a test table outside of phpMyAdmin with a php script (successful) Made sure mbstring extension was enabled in php configuration file Made sure extension directory was correct Made sure mbstring extension was in system PATH Anyone have any idea what's wrong? If it's a bug, should I just wait until phpMyAdmin or PHP fixes the bug, or is there something I can do? Any input greatly appreciated.