function reload(form)
{
var val = $('seltab').getValue();
new Ajax.Request('Website.php?cat=' +escape(val),
{
method:'get',
onSuccess: function(transport){
var response = transport.responseText ;
$("MyDi...
Hey guys, quick question for any experts out there. I am allowing users to upload and post mp3s so other users can listen to/stream. I was wondering if anyone had any tips for reducing bandwidth, or any tips or methods for streaming mp3s. I currently just reference the location of the file with my flash mp3 player after the file has bee...
Someone please tell me what is wrong with this htaccess rules?
RewriteCond %{QUERY_STRING} ^q=(.*)&type=downway1$ [NC]
RewriteRule ^search\.php$ /search\/%1\/1\/? [R=301,NC,L]
RewriteCond %{QUERY_STRING} ^q=(.*)&type=(.*)$ [NC]
RewriteRule ^search\.php$ /search\/%1\/%2\/1\/? [R=301,NC,L]
RewriteRule search/(.*)/(.*)/$ /search....
There is no limitation on the depth.
How to get the structed branch or even entire tree?
The definition is from here:
http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
...
The service I'm trying to send requests to is accessible via a non-standard port - so not port 80. It is accessible locally via port 80. So I've tested the app locally and it works fine. But when I deploy it on the production server (not on the LAN), it fails.
Once again for clarity:
-dev server is on the LAN
-SOAP server is on the LA...
Hi folks,
I have a nested set application that seems to be getting corrupted. Here's what I'm seeing:
We're using nested sets for a binary tree (any node can have 2 children). It appears to be working fine, but some event causes a discrepancy. For instance, when I do a getNumberOfDescendants() for the root node, it will slowly incre...
If I select a db db1 with mysql_select_db() is it possible to access another db db2 in a query? I am looking for something like SELECT * FROMdb2.sometableWHERE 1
...
I am stuck on how to create tags for each post on my site. I am not sure how to add the tags into database.
Currently...
I have 3 tables:
+---------------------+ +--------------------+ +---------------------+
| Tags | | Posting | | PostingTags |
+---------------------+ +------------------...
I'm using Kohana 3, which has full support for Unicode.
I have this as the first child of my <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
The Unicode character I am inserting into is é as in Café.
However, I am getting the triangle with a ? (as in could not decode character).
As far as I can tell in...
I'm trying to make a PHP script that will take a potentially infinite number of URLs from the command line as arguments. I also need to pass an argument that only has a single numeric value possible (to specify timeout), e.g.:
./urltest.php 60 url1.com url2.com url3.com
I'm not exactly sure how to specify argv[1] to be a single numeri...
've registered xdebug in php.ini (as per http://xdebug.org/docs/install) but it's not showing up when i run "php -m" or when i get a test page to run "phpinfo()". I've just installed the latest version of XAMPP. I've used both "zend_extention" and "zend_extention_ts" to specify the path of the xdebug dll. I ensured that my apache server ...
Is it possible to send chat invitations using XMPPHP?
I have successfully setup the messaging system from a CMS, but I am looking for a way to send chat request before the first message is sent.
Is it possible to do that in XMPPHP? I am asking this because I could not find any proper documentation for the class. Thank you for any input...
Why my text has the justify effect?
In my whole site, I make echos and i dont specify a "text-align:justify;"
but my text is still justifying. Justify is when you make the browser window smaller, the text moves so it fits in the window. I tryed making something like this:
<?php
echo "<h1>some stuff.</h1>";
?>
<html>
<head>
<style>
h1
{
t...
Is there a better way besides isset() or empty() to test for an empty variable?
...
I have no idea why my code is failing silently. PDO and PDO SQLite are confirmed loaded. Errors are turned on and OTHER errors display.
The SQLite file exists. Perms are set correctly. If I change the filename, PHP actually DOES create the file but still fails silently. No output or commands are excecuted after the "$dbh = new PDO(...
Hey guys, I currently present my mp3s by referencing their file location into a flash mp3 player for the users. Is is possible for users/bots to go onto your site and somehow execute an mp3 continuously and drain bandwidth? If so how can you prevent this? (I program in php). Thanks in advance for any advice.
...
The code is as follows:
$domain = "fosajfjdkgdajfhsd.com";
$check1 = checkdnsrr($domain, "MX");
$check2 = checkdnsrr($domain, "A");
$check3 = (checkdnsrr($domain, "MX") || checkdnsrr($domain, "A"));
$check4 = !(checkdnsrr($domain, "MX") || checkdnsrr($domain, "A"));
die("{$check1} - {$check2} - {$check3} - {$check4}");
However when I ...
i am designing a site with a comment system and i would like a twitter like reply system.
The if the user puts @a_registered_username i would like it to become a link to the user's profile.
i think preg_replace is the function needed for this.
$ALL_USERS_ROW *['USERNAME'] is the database query array for all the users and ['USERNAME'] ...
Hi all, I'm using GoDaddy's Shared Linux hosting.
Using php i am inserting or updating the mysql database with create date or modified date using the variables
$datestring = "%Y:%m:%d %h:%i:%s";
$time = time();
$createdate= mdate($datestring, $time);
In this $createdate will be the variable i use to insert or update t...
I have this string : Verbesserungsvorschläge which I think is in German. Now I want to match it with a regex in php. To be more general, I want to match such characters like German which are not 100% in the ASCII set.
Thanks.
...