I'm stumped!
In PHP in Netbeans (6.8), a project has two files, file1.php and file2.php
file1.php starts require_once('file2.php'); and I get
Warning: require_once(query_form.php): failed to open stream: No such file or directory in C:\xampp\htdocs\my_project\file1.php on line 3
Call Stack:
0.0741 322920 1. {main}() C:\xampp\h...
Hello
i want to create a python application that consume a php nusoap webservice
and get the result and save it in database
what is the best way to do that using python
regards
...
Is there a way in PHP to try to include a file, but if the file contains errors that stop it from compiling to just skip that file from inclusion?
...
In PHP, how do I distinguish between a number as a string [0-9] versus an operator (+-*/) or letter [A-Za-z]?
I tried this, but intval also converts the type of nonnumbers to ints as well:
is_int(intval($somestr));
Is regex the way to do it?
...
Hi, I'm currently trying to grab a file from an external url that has an authorization box that pops up (like the default one asking for a username and password)
How can I have a script get the contents of the page (it's a video), save it to a directory and handle the authorization (i have a username and password)
Thanks :)
...
I tried and tried and tried to get this code to work and kept coming up with zilch. So I decided to try it using "for loops" instead and it worked first try. Could somebody tell me why this code is no good?
<?php
$x = $y = 10;
while ($x < 100) {
while ($y < 100) {
$num = $x * $y;
$numstr = strval($num);
if (...
I'm doing something stupid and trying to capture thumbnails, snapshots, images of a html webpages.
I'm doing something along the lines of:
http://stackoverflow.com/questions/443837/how-might-i-obtain-a-snapshot-or-thumbnail-of-a-web-page-using-php
DCOM + IE + PHP (imagegrabwindow; example from manual)
Everything works PERFECT until I...
Hi all!
I've only just started using Kohana ( 3 hours ago), and so far it's blown my socks off (and I'm wearing slippers, so that's quite impressive).
Right now, I have a controller 'Controller_FrontPage' with associated views and models and I'm trying to get it accesible from the root of my website (eg, http://www.mysite.com/). If I ...
Using an addon of FPDF, I am printing labels using PHP/MySQL (http://www.fpdf.de/downloads/addons/29/). I'd like to be able to have the user select how many labels to print. For example, if the query puts out 10 records and the user wants to print 3 labels for each record, it prints them all in one set. 1,1,1,2,2,2,3,3,3...etc. Any i...
PHP: How to write code in PHP to play video files (not flash) but completely turn off the video download
Yahoo sites do it so far I saw
...
The problem:
I have a database that's running on a shared server.
I do not have permission to drop/ create a database via the command line
doctrine SQLSTATE[42000]: Syntax error or access violation: 1044 Access denied for user 'opnsrce'@'173.236.128.0/255.255.128.0' to database 'dev'. Failing Query: "DROP DATABASE dev"
...
I'm trying to build an active page menu with PHP and MySQL and am having a difficult time fixing the error. In the while statement I have an if statement that is giving me fits. Basically I think I'm saying that "thispage" is equal to the "title" based on pageID and as the menu is looped through if "thispage" is equal to "title" then e...
I know normally the data is passed thru to the view with the controller. however, currently in my view I load my model ($this->load->model('Db_model');) so i can use it in a loop to retrieve a users profile picture path from a array of IDs that is passed from controller. Will loading the db model in the view to accomplish this make my si...
I'm sure everyone knows the joys of concurrency when it comes to threading.
Imagine the following scenario on every page-load on a noobily set up MySQL db:
UPDATE stats SET visits = (visits+1)
If a thousand users load the page at same time, will the count screw up? is this that table locking/row locking crap? Which one mysql use.
...
I am using this jQuery based jWysiwyg.
http://code.google.com/p/jwysiwyg
How do I pass the value of $('#wysiwyg').val() to php script. For example to show the value of jwysiwyg in an alert box, I am using
<form name="form1" method="post" action="sendmail.php">
<textarea name="wysiwyg" id="wysiwyg" rows="5" cols="103"></textarea>
...
A total newbie question I know.
I'm sing Zend framework, and sending an array from the controller:
$this->view->googleArray = $viewFeedArray;
In the view, I have a foreach loop that is populating a table with the array contents.
<?php
foreach($this->googleArray as $row) { ?>
<tr>
<td><?php echo $row['when']; ?></t...
Possible Duplicate:
GOTO still considered harmful?
I have read articles that advise on refraining from using the goto operator frequently, but never told why. I have googled this for ever and can't really find anything.
...
I have installed wordpress on my site located at www.example.com/blog. on www.example.com I'd like to retrieve the top 5 latest blog posts and display date, url and blog title. Is this possible?
This means I want to get the blog posts from outside the wordpress installation using php and do a loop.
...
Hello, i have unicode link needed to be turn into links.
Is it possible to change unicode into clickable?
Currently i'm using this piece of code to turn link into clickable
function clickable_link($text)
{
$ret = ' ' . $text;
$ret = preg_replace("#(^|[\n ])([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*)#is", "\\1<a class=\"hrefLink\" href=\"\\2...
hi,
I've hard time to make Drupal work on IIS Microsoft server. I've succesfully run Joomla on the same server so I'm pretty sure the following information are correct:
host: localhost
user: user
pass: pass
databaseName = servername_databasename
I've set the following line in settings.php file:
$db_url = 'mysql://user:password@local...