Hi to everyone.
I was asked for my final degree project to build a custom SEO Content Management System; the point is that the request is to implement PageRank alghoritm for the inner search engine of this CMS, to order the results of the query by the PR.
Is it possible? How may I start with this?
The CMS is build on PHP and MySql (or P...
Hi,
I'm using phing for some automatic-building process on a project, and was wondering : how can I get the full log by email ?
When I launch phing by the command-line, the building-log is displayed ; I would like it :
sent by e-mail,
to several recipients,
whether the build succeeded or failed
ideally : with a subject for the mail ...
I want to create a function which receives a single argument that holds the path to a PHP file and then parses the given file and returns something like this:
class NameOfTheClass
function Method1($arg1, $arg2, $arg2)
private function Method2($arg1, $arg2, $arg2)
public function Method2($arg1, $arg2, $arg2)
abstract class Anot...
Hi guys, I've run into issues here I notice that some accentuated characters if I try to pass them as value sin an ajax call they end up all funny LIke for example:
Adana Şakirpaşa
turns into
Adana %u015Eakirpa%u015Fa
WHats wrong here :(
EDIT==================
The problem is that once the characters are recieved by my php script on...
I am using the script below and although I am receiving an email but I am not getting the content or the attachment. Does anyone know what I am doing wrong? This is set up on a clients server with a plesk control panel if that helps. I have had problems with mail on these servers before.
I know that the script works on my server. Is the...
Hola!
If i have a string like this:
$myString = "input/name/something";
How can i get the name to be echoed? Every string looks like that except that name and something could be different.
...
<?
session_start();
include("connection.php");
if($_POST['continue']) {
$x=$_POST['rules'];
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="jquery-ui-1.7.2.custom.css" rel="stylesheet" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></sc...
Hello, i need in naming like this:
site.com/about
site.com/contacts
Could i do it without .htaccess?
...
Is there anyway to write android applications in PHP?
This page clearly mentions that Android apps should be written in Java. Just wondering if there is another way...
http://developer.android.com/guide/topics/fundamentals.html
...
Suppose I have a php file along these lines:
<?php
function abc() { }
$foo = 'bar';
class SomeClass { }
?>
Is there anything special I have to do to use abc() and $foo inside SomeClass? I'm thinking along the lines of using global in a function to access variables defined outside the function.
(I'm new to OOP in PHP)
...
I am looping through a number of values (1 to 100 for example) and executing a prepared statement inside the loop.
Is there and advantage to using a transaction - committing after the loop ends - compared to a direct execution inside the loop?
The values are not dependant on each other so a transaction is not needed from that point of ...
Everywhere on SO when it comes to making a multi language app in PHP everyone say that gettext is the best way to do it. I am just wanting to know why?
Like what makes this method below, less efficient then using gettext?
<?PHP
//Have seperate language files for each language I add, this would be english file
function lang($phrase){...
When you call the gettext php function for translating text to another language, it uses the text you have on the page to act as the KEY/ID to lookup the value to replace it with
echo gettext('hello how are you today');
that would be the text used to lookup the translation, however I would like to use something like this
echo gett...
I am trying to secure my PHP Image upload script and the last hurdle I have to jump is making it so that users cannot directly excecute the images, but the server can still serve them in web pages. I tried changing ownership and permissions of the folders to no avail, so I am trying to store the images above public_html and display them ...
I have borrowed code from this link http://stackoverflow.com/questions/959017/php-regex-templating-find-all-occurrences-of-var to implement a means of applying values to template fiies. This uses the preg_replace_callback() function
my preferred method of naming is name1.name2.name3=value, rather than name1_name2_name3=value, but the re...
I have the following relationships set up:
A HABTM B
B belongsTo C
C hasMany B
Now, for a given A, I need all C with the B's attached. I can write the SQL queries, but what's the proper CakePHP way? What method do I call on which model, and with which parameters?
...
I'm having problems using fopen in php.
If I open the desired URL by hand I get:
OK,13:24:34.236 INFO [10] org.mortbay.http.SocketListener - Started SocketListener on 0.0.0.0:4443 13:24:34.236 INFO [10] org.mortbay.util.Container - Started org.mortbay.jetty.Server@52fe85 13:24:39.251 INFO [11] org.mortbay.util.Credential - Checking Res...
Im making a login/logout class that logs users in, sets cookies based on user's choice. The user enters their email/password and it checks the database, email/password combo exists a session is created, and a cookie is set (with the users id) and the user is redirected... I then have a function that logs users in by taking the user id sa...
Hello, I am facing a problem on developing my web app, here is the description:
This webapp (still in alpha) is based on user generated content (usually short articles although their length can become quite large, about one quarter of screen), every user submits at least 10 of these articles, so the number should grow pretty fast. By na...
I have a cool project where I need to upload an image via php/my_sql. That I can handle, but the images need to be linking to a certain url out of 100. In php can I save a url as a variable, then allow a drop-down menu of the 100 choices which point to a variable with a url?
...