Server Time - Popup Windows
I have an image on the website. When I click on that image a popup windows should open show a message saying "For demo call 123-123-1234" and if the client clicks during the night (9Pm to 7AM) he should get a form which accepts his email address and on submit sends to "abc@abc.com".
View Complete Forum Thread with Replies
Related Forum Messages:
'exec' Creates Popup Windows
I'm running php under apache (I'm using the uniserv distribution) on Windows XP. Every time I execute an external command using backticks or exec or system, I get a cmd windows that pops up for the 1/4 second the command executes. This would all be fine, except that I'm deploying the server to run locally on the user's box, and needless to say, the popups are annoying. I've search everything I'm clever enough to understand and can't find a way to get the external commands to run in the 'background'. All of the input and output of the commands have been redirected, any shell command causes this behavious, and in all other respects it all seems to work great.
View Replies !
Create Popup Windows When Clicking On A Link.
How to create popup windows when clicking on a link. I have managed to do it using javascript, but as you know search engines have difficuty reading javascript. Also i would like to know how to remove the address bar and file bar from the top of the page when it happens.
View Replies !
Max Execution Time Means Server Execution Time Or Client Browser Hung Up Time?
The max execution time is set up to be 30. When I submit the requests of execution through the client browser, it shows the execution was running. It still hung up there after 30 seconds, after 2 minutes ... And the browser hung there forever. I have another page which saves the reports of the execution, so I open another browser window, and check out the report. It shows me the execution is still going even after 1 minute, 2 minutes... Code:
View Replies !
Passing A Value (eg Id) From A Apache Server To A Windows Server
I am trying to pass an Id from one server to another. The case is like this I have two scripts one in php and the other in asp. I am trying to combine the both together by passing an Id from php script to an asp script. The problems come on the client side because the information is on two different servers. Is there a way around this? Can this be accomplished?
View Replies !
Can't Open A New Fullscreen Popup From Another Popup Window
I can't seem to make a fullscreen popup from a page that is already a fullscreen popup. What I want to do is open another fullscreen popup window from a current fullscreen popup that has the link in it. The link that comes up is http://www.somesite.com/"javascript:void(0);/" Here is a sample of the code I am working with. Does anyone see anything wrong? echo '<html>' echo '<head>' echo '<script type="text/javascript" src="/uploads/File/Javascripts/new_window_max.js"></script>' echo '</head>' echo '<body>' echo '<a href="javascript:void(0);" onclick="fullScreen('/uploads/File',$row['map'],'');">Map</a><br>' echo '</body>' echo '</html>'
View Replies !
Can Only Run 2 Windows At A Time?
I'm using Apache server, PHP (ver4) driven pages, querying a MySQL DB. I'm trying to monitor/tail some log files and perform queries to. 1) insert the new data, 2) verify that the data is within certain constraints. Each query is taking a full second to perform (is that normal? I have about 100k records at the moment). Code:
View Replies !
Subtract Time From The Current Server Time
i have a time that i will get from a mysql database (so it will be in mysql format, YYYY/MM/DD HH:MM:SS). what i would like to do is subtract this time from the current server time in order to get the difference between the two times, expressed as 'x days, x hours, x minutes and x seconds'. any pointers or tips on how to do this .
View Replies !
Server Time To Local Time
I live in the UK, my hostings in USA, the server time is 6hrs behind my local time. I know that I could set up my forms so that when the dates entered into the database it is entered with +6 hours, but I just wondered if there's a simpler way? - it's just because I have a lot of forms that would need editing. Any sort of magic '+6' switch I could use so the database itself could take care of it upon insertion?
View Replies !
Server Time Vs Browser Time
I want to set a cookie and have it expire an hour after it's set. It's looking like this is only possible for browsers which are in the same time zone as my server?In other words, if I set my cookie with: setcookie('CookieName', $SomeValue, time()+3600, "/"); the cookie should expire 1 hr later. But time() returns the time as it is at the location of the server. If whoever loads my page is 3 timezones east of where my server is, the time that I set is already expired as far as that browser is concerned. Is this correct or am I completely nuts?If it is correct, is there any way I can set a cookie based on the browsermachine's time clock, so it will work the way I want no matter where thebrowser is located relative to the server?
View Replies !
PHP On Windows Server
I have been working with PHP in Linux for a while now and I have just been asked about PHP in the windows environment. Where should I go for the best info on what versions work the best with what windows server platforms? Does mysql work on windows and can I use the same php files written for Linux on Windows?
View Replies !
PHP On IIS Windows 2000 Server
I've downloaded the latest PHP (EXE & ZIP).... I followed all the instructions I can find and yet PHP will not work with my IIS !! Can anyone talk me though exactly how to get them working together?
View Replies !
LDAP For Windows Server?
I'm wondering if anyone has any clue where to get an ldap server for windows? I'm trying to avoid installing the resource hog Active Directory on my server with limited resources(diskspace/memory). Perhaps that anyone ever compiled sucessfully the OpenLDAP, an opensource distribution.
View Replies !
Php And Windows Server 2003
I have a website(html)/eshop running on a 3rd party 'windows server 2003'. I want to include some rss feeds on a html page using a php script. is there a simple way to test a simple php script in that type of server - ie do i just insert the script & leave the page .html or do i have to change it to .php?
View Replies !
Php Accessing MS-SQL Server On Windows
I will be creating a small web site using php/apache/SQL Server running on a Win2000 server. It sounds as if there a number of alternatives for accessing SQL Server: mssql* functions, ADOdb object, using a ADO COM object, ODBC calls, etc. Has anybody out there evaluated the alternatives for speed, error handling, quality of documentation, etc?
View Replies !
Windows SMTP Server
I'm trying to send email in PHP, and I was hoping someone could refer me to an SMTP server for Windows that will work with PHP? I'm not coding any PHP but rather trying to setup PHP CMS applications (Drupal, Joomla, etc). These applications are in a test environment, so I'm not worried about getting flagged as spam.
View Replies !
Windows Server To Linux
I have the code below which worked fine when I was using it on my windows server. However I had a few problem with the windows server then I had to switch to a Linux based server. Once the switch was completed I started having problems with a number of my codes which worked fine previously. I have managed to solve quiet a few of them with the exeption of this one which I cant figure out and was hoping you could help. Code:
View Replies !
Unlink On A Windows Server
I'm trying to remove images from a directory outside of the directory where the delete script resides using the unlink command. I've used it a million times but this time the application resides on a Windows OS. The directory structure is: Code:
View Replies !
Php On Windows Server 2003
I work on a site with a friend of mine. Recently he transferred the site from being hosted on a Unix server to being hosted on his own server running Windows Advance Server 2003. He seems to know about as much about setting up servers as I do (which isn't much!), and although he's gotten PHP running, none of my PHP scripts that write files work. I've looked up answers and he's tried different things, but so far he hasn't been able to resolve the problem. Without being able to use fwrite() I will have to update several areas of the site by hand. Here's a sample error: Warning: fopen(file.txt): failed to open stream: Permission denied in G:modelsonline estswrite.php on line 11 Warning: fwrite(): supplied argument is not a valid stream resource in G:modelsonline estswrite.php on line 12 Warning: fclose(): supplied argument is not a valid stream resource in G:modelsonline estswrite.php on line 13 Can someone give me the dummies version of how to resolve this so I can explain it to him?
View Replies !
Windows 2003 Server
So here is my situation, I am running a Windows 2003 server (the full version) and have been happily using PHP 5 for a while, however it stopped working, I don't know exactly when as there are currently no critical applications using PHP. When I noticed this I did a little bit of research and decided it was probably a good idea to reinstall PHP 5.2, I consider myself quite knowledgeable with installing php as I have done it a fair few times, however to be safe I always follow the guide on php.net. Code:
View Replies !
IIS 6 On Windows 2003 Server
I figured that an easy way to check my progress was to just run them on IIS6. Well, troubleshooting time has gone up, and very little in the way of work has gotten done. hoping that someone here can steer me in the right direciton. I have installed PHP 4.3.8, and everytime I try and run a php file I receive this message: No input file specified.
View Replies !
Windows Server 2003
I'm an idiot, but I cannot figure out how to get PHP 5.0 and MySQL to work together. I've tried reading the "installation" files on PHP.net, but they only get me more confused. I am truly a beginner with PHP and MySQL, but i simply need to get PHP and MySQL talking so that some scripts I've purchased will work.
View Replies !
Installing On Windows Server...
I'm a rookie with Windows Servers (what can i say, i love linux) I need some help installing PHP and MYSQL on my windows server. I don't know if this affects anything, but i also have Plesk installed on it. I tried the directions on php.net and mysql.com and it didn't work. I need "php for dumbies" directions of how to do it.
View Replies !
Email And Windows Server
I have a windows xp pro server set up at home running a program called miniportal, a web server with mysql and php. I cannot send email through php as I don't think php is set up correct to do so. Code:
View Replies !
PHP Installation For Windows Server 2003
I'm having an issue installing PHP4 on my IIS 6.0 server. I am using the installer and am told that PHP 4.3.3 has been installed successfully but get the following error. "Due to missing OCX control on your systems, the installation Wizard is unable to configure your web server. However, PHP has been successfully installed, and all you need to do now is manually configure the web server as described in the install.txt file which can be found in your php installation directory." I manually configure for IIS 4.0 or greater and continue to get a "The page cannot be found - 404" error when accessing anything with a php extension? I have defined all the neccessary permissions for the dir. etc but still have an issue with the above error. I'm a first time installer on this platform so does anyone either (a) have a theory as to why this doesn't work or (b) have a solution that they have found.
View Replies !
Windows PHP Connect Into LINUX Server
I want to built a windows php website---> connect to the linux box--->read all settings value from the .ini files->display it into the php website->user can then change the values->save the .ini file base on the user modification close the file-->for back up reason of settings, also save the values into SQL database. I also need to reboot the linux box after apply changes to the .ini. Anyone knows how to approach this problem? What do I need? Does php have a built in ssh?
View Replies !
Php.ini Not Found On Windows Server 2003 64 Bit
I have installed php 5.2 on 64 bit windows server 2003, and it is all working, except it will not read my php.ini file. In phpinfo it just says C:windows I have tried: Setting envt variable PHPRC to c:php Adding registry entry [HKEY_LOCAL_MACHINESOFTWAREPHP] "IniFilePath"="C:PHP" And also registry entry [HKEY_LOCAL_MACHINESOFTWAREWow6432NodePHP] "IniFilePath"="C:PHP" And also just copying my php.ini file to C:windows None of these seem to work. Has anyone set up PHP on 64 bit windows server 2003, and if so, how did you get it to read your php.ini file?
View Replies !
GD Library Loading Windows Server
so i just put together a crappy WAMP box to expirement with and I noticed that when I run a few instances of a php script that shrinks/compresses a large number of images using the GD Library, the server stops serving any files whatsoever until the script finishes. The system resources look fine, i mean the cpu its at a 100% but memory usage is low...and I still have over 150megs of memory left. Code:
View Replies !
MySQL On Windows 2003 Server
I have installed PHP verr 4.x and MySQL 4.1 on a Windows 2003 Standard Server running IIS. I am trying to install phpadsnew an adserving program. However when I specify the username, password and table during installation it says Could not connect to database. Whereas the same thing installed without any error on a Windows XP Pro machine. Do I need to install MyODBC drivers or something similar.
View Replies !
Sending Mail From Windows Server
i trying to send a mail using php scripts from windows server i used the following code for that: <?php $from="info@mysite.com"; $to   = "ajiths4u@gmail.com"; $subject = 'Invitation'; $message = 'hello '; $headers = 'From: info@mysite.com' . " " .   'Reply-To: info@mysite.com' . " " .   'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> and i also change my php.ini (smtp name & sendmail_from )but its not working in windows server.
View Replies !
MSSQL - Unix Client / Windows Server
I need to access a MSSQL 7.0 database on a Windows NT Server from a Linux PHP Web-server. I have looked at FreeTDS, unixODBC and iODBC. unixODBC seems the easiest but alas one need to buy licenses. iODBC is a bit slow, apart from the ODBC part containing many connection layers, it also has a request broker/client running on top of the ODBC. FreeTDS seems like a decent solution. It even has the option of using TDS in conjunction with iODBC. This eliminates the use of the extra request broker/client. Furthermore I've read somewhere that one can use the Sybase functions of PHP to connect to a MSSQL server since both use the TDS (Tabular Data Stream) Protocol. What method would be the easiest and/or could be implemented using the ADOdb database abstraction layer class?
View Replies !
PHP/MySQL On Windows 2003 Server 64bit
We're looking at getting a hosted dedicated web server to host our PHP4/MySQL4 websites. It needs to be a MS Windows server as we use .NET Web Services for a lot of background communications. We've found what appears to be a fantastic hosting package but it is on Windows 2003 Server **64 bit edition**. Are there any problems with PHP4/MySQL4 on 64 bit servers? Are these problems easy to overcome?
View Replies !
Remote Linux Commands From A Windows PHP Server
I'm running a Windows webserver and I would like to use PHP to connect to my linux box (non-webserver), send it commands (change directory, run commands, create files, etc) and files, and be able to get files back that it created on the linux box. The linux machine has ssh/sftp (with password) access, so is there a way for me to connect through ssh without installing extension libraries and run commands etc? I've searched through the forums and haven't found anything that is my particular situation.
View Replies !
Send Mail ON Windows Server WITH No Response
I made a script to send email with php . It worked perfectly on Linux server.. Now I tried to run it on Windows server and there is no response... I've tried //send_mail() is a funstion which works and returns true if mail is sent... I checked and on Windows server it returned false on linux returned true.
View Replies !
Send Mail() Thru A Windows 2003 Server
I'm stuck trying to convert my L.A.M.P. scripting over to a Windows 2003 Server with MySQL/PHP, because the powers that make the decisions didn't bother consulting with me first. It wasn't my choice of server, trust me. I've found various articles on the topic and worked out most of the configuration changes (.ini, etc.) necessary to make things work for the most part. I havn't been able to find a working solution for sending mail() thru PHP. I've tried setting the SMTP and sendmail_from settings in the PHP INI. ini_set('SMTP', 'smtp.domainname.com'); ini_set('sendmail_from', 'info@domainname.com');
View Replies !
Scheduling Scripts In Windows Server 2003
I am trying to create a scheduled task on a windows server. I have written a PHP script and tried to set up task scheduler to execute it for me. It doesn't seem to be working. Is it possible to use task scheduler with PHP scripts or is it just executables? If so, any advice?
View Replies !
Installing On IIS 6.0 (windows Server 2003, Enterprise Edition)
I am pretty new to IIS, as well as PHP. However, I had no problems installing PHP on XP Pro w/ IIS installed. However, Last night I installed Windows 2003 Server, enterprise Edition w/ IIS 6.0 installed. Downloaded PHP 4.3.2 (w/ the installer) and ran through the setup w/ no problems. It did say I had to manually configure the server however(due to some missing OSX Components.) All is well, I went in to the default web via IIS Manager, and added .php to the ISAPI mapping, w/ the executable pointing to my php.exe file. The install program put PHP.ini in c:windows so all is well. Yet still, when I attempt to access a .php file via web browser I get a 'HTTP Error 404 - File or directory not found.' However, when I reference the index.html file it works file, so my root directory is set correctly. So, I read on a website that to use PHP w/ IIS you have to turn off cgi.force_redirect = 1 in the php.ini file. (commented it out.) Still I get the page not found error. I am completely lost! I figured it was a permission issue. Yet, I went into IIS manager, and set the default permissions for that website as being, read, write, and script access. I also read on a website, that you have to give read, write access to IUR_MachineName(server-01 in my case, so IUSR_Server01.) Did that, still the 404 error. Please, any assistence into this would be VERY much appreciated!
View Replies !
Mail() Php Function Not Working In Windows Server 2003
I tried the mail() php function and it ends up with error message. I tried different tests with port configuration and Smtp server, though it ended up in error. Error: Code: Original - Code Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:program fileseasyphp1-7wwwmailerman.php on line 19 Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:program fileseasyphp1-7wwwmailerman.php on line 19.
View Replies !
No Cookie Sent When Starting A Session - Windows Server 2003
I got PHP installed and running via IIS. When I call a start_session(); I can see the session file created in the c:mp directory (specified in php.ini). However, no cookie is sent to the browser. php.ini is set to use session cookies. Cookies are for certain not being blocked by the brower. I am accessing the site via its own IP (i.e. http://23.64.18.112/test.php) The result is that every time I refresh the page, I get a new session data file in the temp directory because it is unable to associate the user with the session data since there is no session cookie on their system. Passing session IDs via URL is not an option. I need session cookies to work.
View Replies !
Mhash Functions For My Windows Apache Development Server
I'm trying to set up a web page for credit card transactions and baffled trying to find a download for mhash functions for my windows apache development server. The real server supports mhash but I can't test it on my localhost system. php.net points me to http://pecl.php.net/packages.php where I don't see it in plain english, googling around it looks like this may be it: http://sourceforge.net/forum/forum.php?forum_id=585348 but it's short on giving me a clue.
View Replies !
|