In many places in my code, I do things like:
file1.php:
<?php
include('../file2.php');
file2.php:
<?php
include('anotherdirectory/file3.php');
Depending on the server or settings I try this on, it either sets the relative paths from the "includer" or from the "includee". This is really confusing.
So file1 might try to include "../ano...
i am comparing password and confirm password through java script.my code-
function validate_form(thisform)
{
with (thisform)
{
if (validate_required(password,"<b>Error: </b>Password must be filled out!")==false)
{password.focus();return false;}
else if (validate_required(cnfpassword,"<b>Error: </b>Confirm Password must ...
Is there any way to explode() using an array of delimiters?
PHP Manual:
array explode ( string $delimiter , string $string [, int $limit ] )
Instead of using string $delimiter is there any way to use array $delimiter without affecting performance too much?
...
A bit on my requirements, at the moment i'm passing on a search string from a Cocoa app to a PHP script which queries the database, and then generates an XML output for Cocoa again.
The only bit I am having issues with now is generating the XML output from the db query.
At the moment, i'm trying to loop through the results and output t...
Hi all,
$mysqli = new mysqli("localhost", "root", "", "test");
$mysqli->query('PREPARE mid FROM "SELECT name FROM test_user WHERE id = ?"');
// working code start
//$res = $mysqli->query('PREPARE mid FROM "SELECT name FROM test_user" ');
//$res = $mysqli->query( 'EXECUTE mid;') or die(mysqli_error($mysqli));
// working code end..
$res ...
Is there library to edit WMV metadata using Python or PHP? I tried editing with ffmpeg but it just creates a new video file(with edited tags) rather than just editing the tags.
...
Hi
Does anyone know how to get the uname and esp the psword from Wordpress to pass into the remotepost.class.php
eg
private $uname = $current_user->user_login;
private $pass = '???';
This is related to this question: http://stackoverflow.com/questions/2695323/how-to-use-metaweblog-newpost-xmlrpc-api-properly-with-php
...
The problem is:
Deprecated: Assigning the return value of new by reference is deprecated in C:\wamp\www\FlashChat_v607\chat\inc\common.php on line 155
Notice: Undefined variable: step in C:\wamp\www\FlashChat_v607\chat\inc\common.php on line 94
This is the link where you can find the code:
http://www5.zippyshare.com/v/3592861/...
Greetings,
Using FullCalendar (http://arshaw.com/fullcalendar/) to pull events from a MySQL database table via JSON. The events are being displayed in the calendar but for some reason it is ignoring the time (hours, minutes, seconds) of the event. Here is the Javascript from the calendar page -
<script type='text/javascript'>
$(d...
I am looking for a way to monitor a Linux mbox email account, when an email arrives I would like to download an attachment from the email and save the attachment (CSV file) so that it may be used by a PHP script. What would be the best way of going about this? I have looked at PHP's IMAP functions but this does not appear to be the most ...
i have one complete website
which was written in php4, now my hosting server is PHP Version 5.3.2, windows 2008 server
and my site is not working, what i found is old site use following syntax
<?
but if i change it into
<?php
page start working. is there any way to solve this issue...
PHP Version 5.3.2 work with
<?
any scri...
I am currently implementing a credit card processing script, most as provided by the merchant gateway. The code calls functions within a class and returns a string based on the response. The end php code I am using (details removed of course) with example information is:
<?php
$gw = new gwapi;
$gw->setLogin("username", "password");
$gw-...
Hi guys,
I just posted a similar question, but deleted it because I realized I was working with an old file...doh!
I am just trying to get my XAMPP setup working for me.
I have a live site that navigates to a login page at http://www.monkeycalendar.com/arvindkt/login.php
That login page includes a root.php file that is found at http...
I'm doing a cURL POST and get the error response back, parse it into an array but having issues with xpath now.
// XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<errors xmlns="http://host/project">
<error code="30" description="[] is not a valid email address."/>
<error code="12" description="id[] does not exist....
Hi guys,
I'm having some difficult with PHP DOM class.
I am making a sitemap script, and I need the output of $doc->saveXML() to be like
<?xml version="1.0" encoding="UTF-8"?>
<root>
<url>
<loc>http://www.somesite.com/servi&#xE7;os/redesign</loc>
</url>
</root>
or
<?xml version="1.0" encoding="UTF-8"?>
<ro...
Please help me again!
I have problems with this code:
<?php
$pathThemes = INC_DIR . "themes";
$d = dir($pathThemes);
while (false !== ($entry = $d->read())) {
$fileInfo = pathinfo($pathThemes . '/' . $entry);
if ('php' == $fileInfo['extension']) {
include_once($pathThemes . '/' . $entry);
$name = $fileInfo['fi...
So I know that my server on real form submit turns %CE%EB%E5%E3+%DF%EA%F3%F8%EA%E8%ED into Олег Якушкин . How to peform string transfer from Олег Якушкин into %CE%EB%E5%E3+%DF%EA%F3%F8%EA%E8%ED using ActionScript? (Its ok if a space character as %20, not + , PHP should handle that fine.)
...
I'm trying to set the width of the style for a group of < dt > elements in a Zend_Form.
Is there a way to set a class for a dt element, so the end result would be something like this:
<dt id="name-label" class="xyz" > // trying to add the 'class="xyz"
<label class="required" for="name">Name:</label>
</dt>
<dd id=...
I have a project. It has a good number of PHP files. Each of these files includes a standard header. They don't include a standard footer.
Now I want to do something just before the end of every page. I can go through each page and add the footer code, but I was wondering if there is an easier way (and I think I've seen something like i...
I have seen some solutions, or at least tries, but none of them really work.
How do I strip all tags except those inside <code> or [code] - and replace all the < and > with < etc. in order to let js do some syntax highlighting on the output?
...