So I have this cURL script for remote login. It works fine for some pages but not the pages I need.
For the page that isn't accessible through the script, the remote server requires the url be like this:
https://sub.example.com/a/b/thisPage.aspx?aVar=%2Fa%2Fb%2Fc%2Fd%2FFile+Name.nev
It seems that cURL or just php automatically conv...
I am trying to have a confirm box come up when the viewer tries to close the window, that allows the user to stay on the current page (by click Cancel), or continue closing the window (by click OK).
My code is as follows...
<script>
function confirm_exit(){
var message = window.confirm("My message.");
if (messa...
I was trying to add curl support to php on a VPS, and after logging in and trying to perform a php upgrade, my site gives me a 500 error every time I try to access it.
So, I tried refreshing apache install with easyApache, and it went swimmingly outside of the fact that php scripts still didn't work.
I decided there must be something g...
This may be a silly question to some, but I was curious how would PHP react to something such as:
$blog_title = &$author->get_blog()->get_title();
I'm assisting someone with some upgrades to an in house php framework. There is some serious method chaining going on, repeatedly in some places. I'd like to make the code more readable w...
So I have this cURL script for remote login for a website.
It works fine for some of the pages but not the page I need.
The remote server requires the url be like this:
https://sub.example.com/a/b/thisPage.aspx?aVar=/a/b/c/d/File+Name.nev
When I manually enter enter it in my browser after being logged in, it pulls up the page just ...
Here's what I have in PHP:
for ($i = 0; $i < 355; $i++)
{
echo "vote";
echo "$i";
echo "=$votesArray[$i]";
if($i != 354)
{
echo "&";
}
}
Which should send data to Flash that looks something like "vote0=2&vote1=5&..." and so on.
Here is the Actionscript 3 side:
var i:int;
for (i = 0; i < 355; i++)
{
...
What I wanna do is replace ALL columns in the "subject" field & that has a "0" in "replyto" with the subject ( as long as it is 0) because when replying it leaves a "RE" thing which i dont like... so i just wanna replace it with the subject matching 0
How can I accomplish this??
$result = mysql_query("
SELECT * FROM mybb_posts
...
Hey guys!
I'm a basic web developer. I know PHP, a little bit of Python and Ruby. JavaScript as well [some stuff]. I'm not a hardcore developer. I know what it takes do develop most of web cases.
Now, I have this desire to go deeper and start developing games. I know it sounds a huge leap, but that is why I'm asking here. I already hav...
I'm quite new to using APIs and I'm confused as to how I should (or even can) implement a video upload on my private server.
The idea is that the FB video upload can sometimes be unreliable, is relatively slow to a direct server to server connection and can't conduct batch or simultaneous uploads efficiently or reliably.
I'm thinking t...
I have a table called sym_dis.
select * from sym_dis gives
+--------------+-----------------------------------+
| disease | symptom |
+--------------+-----------------------------------+
| typhoid | headache |
| typhoid | high fever |
| typho...
Hi,
I want to submit search query form & get search result without redirecting/reloading/refreshing on the same page.
My content is dynamic so can not use those "submit contact form without refreshing page which replies back on success"
I am newbie, help would be appreciated.
Thanks.
...
I'm making a members area for my site and I have it already running. I authenticate members using mysql and php and this works really well.
But now problems occurs, I would like to offer members a possibility to upload files to the systems, and those files should be available ONLY to logged in members.
I know I could store those files ...
I'm looking to use Symfony as the framework for a gallery website - but I was wondering about how to organise the applications.
The example Symfony documentation takes a simple approach with a Frontend/Backend split - but this seems a bit limited.
For a gallery site, there are quite a few components which can interact to varying degree...
I have a website that uses tpl_load for themes, and i cant figure out a way to make a contact form for it.
My php pages use this for the theme files
For example on my contactus.php file it would use this code for the theme.
<?
$content = tpl_load("contactus.html", 1, 0);
?>
Does anyone know of a code of script for a simple contact ...
Hi
i am populating the images from my database
in a table,, how to restrict the images to three per row
<table border="0" align="center" height="25%" width="25%" >
<tr><td align="center" width="50px" bgcolor="#4b2d0e"><strong><font color="#FFFFFF">Friend List</font></strong></td></tr>
<? foreach($Selected as $row)
{?>
<? $value =...
Hello guys, do you any opensource proyect who gave me the posibility to have an very simple online richtextbox were an user can add strong, emphasis and other simple modifications to text and when user finish hit the submit button and the code generates a html result.
For example, here this guys have a script who made almost all what i ...
Hi
i need to change the format of my date string using PHP
from : "06/16/2010"
to : "2010-06-16"
can you please help me achieve this
thanks
...
I don't know what is wrong with this code, it is a bug or I made a mistake somewhere; xDebug show nothing.
Class script
class theme {
function theme() {
//show header (meta, style, htmldoctype, script, and title)
$this->htmlheader();
//show main content
//show footer
}
function htmlheader...
how to check whether file is image or video type in php version 5.2.9
...
I have a Hello World c# ASP .NET web service which is automatically generated by visual studio web service project. I want to call it from a php client. Can I know how to do it? Better if anyone can provide with small code example.. I dont have much experience in php and no in depth understanding of web services so finding difficult to ...