OT: Am I being fooled here? (PHP/ASP related)
Hi,
I gotten this really wired question regarding my "human
verification"
thingy on my site (
http://geekministry.com/blog_article.php?id=93)
Here goes... someone wants to use the form but can't get it
to work. I
check the response headers which looks like this:
> Content-Length: 41007
> Content-Type: text/html
> Content-Location:
http://www.somesitename.com/index.html
> Last-Modified: Thu, 16 Aug 2007 19:18:02 GMT
> Accept-Ranges: bytes
> Etag: "9868402a3ae0c71:d3b"
> Server: Microsoft-IIS/6.0
> X-Powered-By: ASP.NET
> Date: Fri, 17 Aug 2007 20:36:00 GMT
>
> 200 OK
which leads me to write back that it will only work on an php
enabled
server... and I believe that his site is hosted on an asp
enabled server.
Now the guy writes me back and sates that the script is
actually working
on his server! (I know that IIS servers can run php) He
claims that the
script is working, meaning that the warnings for missing
fields,
spamtram question, etc is working but he doesn't receive the
actual
mail. But is he changes the action to use an .asp extension
then he gets
the mail!!! This is quoted from the mail I got...:
> HOWEVER: During one test last night, instead of using
the line:
>
> <form id="form" method="post" action="form.php">
>
> I substituted this:
>
> <form id="form" method="post" action="gdform.asp">
Is that possible at all or is someone trying to waste my
time? I'm no
expert in php and I know zero asp so maybe I'm just missing
something
really important here... or what?
Kim
http://www.geekministry.com
I think you're right. Thanks
Lionstone skrev:
> "Kim" <[email protected]> wrote in
message
> news:fa51v3$m7m$[email protected]..
>> Is that possible at all or is someone trying to
waste my time? I'm no
>> expert in php and I know zero asp so maybe I'm just
missing something
>> really important here... or what?
>> --
>> Kim
>
> Changing the extension on a PHP script to .asp will not
accomplish anything.
> If anything, it should cause the script to break since
IIS will try to use
> the asp.dll to process the page (unless the server is
configured not to, but
> that's just odd).
> I don't think the guy knows what he's talking about.
>
>
Kim
http://www.geekministry.com
Similar Messages
-
What is the best program language for mass email (PHP, ASP, Coldfusion)?
I want to be able to send mass email (from a SQL db) with
stability and reliability.
I've used Coldfusion for some time (CFmail tag) and have not
been impressed.
It seems, at times, it has a mind of it's own, and is a
little unreliable, especially
when sending hundreds of emails at one shot. I'm not dogg'n
Codfusion,
that's what I program in, I just am looking for a method that
I can build on.
My question is this: What is the best and most reliable
coding when sending mass email?
Is it PHP, ASP, XML, Coldfusion....what?
You would think there has to be an optimum option out
there...right?
Thanks for the knowledge!Beezy wrote:
> say ...500-5,000, maybe larger. Any ideas?
>
I've used CF to send out as many as 50,000+ emails in a
single blast and
haven't ever had any problems with it. Particularly with CF
Enterprise,
CF is an extremely high-performance mail generation engine.
Remeber
that CF itself doesn't send the mail so you're dependent upon
the speed
of your mail server as a large part of the equation as well.
Matt
Matt Woodward
[email protected]
Adobe Community Expert - ColdFusion -
PHP question related to preg_match_all since PHP 5.4 [SOLVED]
Please let me know if a PHP syntax related question is not appropiate here. I am debugging an abandoned PHP 5.2.3 script from: http://outbreakmonkey.org/mythtv/csr0.3.php
This is the part of the code with the problem. I believe preg_match_all has an issue with PHP 5.6.
$cutlist=file("$recordingdir/$txtfile");
#Markssql will hold the lines of SQL to insert in to the DB.
$marks=array();
#Go through each line
foreach ($cutlist as $aline) {
#And match "One or more digit followed by one or more space/tab folowed by one or more digits again"
#ie. Look for two columns of numbers - get those numbers.
preg_match_all('/^([0-9]+)\s+([0-9]+)/',$aline,$result);
#if there numbers make sense, create some SQL to insert the record in to the database
if(!empty($result[1])) {
if (($result[1][0]>0)&&($result[2][0])>1) {
$marks[$result[1][0]]=MARK_COMM_START;
$marks[$result[2][0]]=MARK_COMM_END;
return($marks);
with a sample $cutlist being:
FILE PROCESSING COMPLETE 99042 FRAMES AT 2500
27475 32467
52725 58360
86124 89494
96382 99042
The script works with PHP 5.6 but returns an output of 0 for these marks. PHP says the following in the change log:
Changelog
Version Description
5.4.0 The matches parameter became optional.
5.3.6 Returns FALSE if offset is higher than subject length.
5.2.2 Named subpatterns now accept the syntax (?<name>) and (?'name') as well as (?P<name>). Previous versions accepted only (?P<name>).
Does anyone good with PHP know how the syntax of preg_match_all could be changed to work with 5.6? Or maybe another function to do the same?
Thanks.
Last edited by wdirksen (2014-10-02 19:33:55)Thanks mpan for your reply.
This is not a matter of strict debugging per se. This PHP script has worked for many in the past. Also the provided cutlist is a complete one and not a snippit. There is more online about preg_match_all and PHP regressions so I was hoping someone whould know an easy way out here. I don't think it has to do with foreach. I will try to track this down and learn from it, starting with trying an older PHP version with current ARCH and hoping it will not fyrk up other PHP stuff like mythweb.
Yeah. You're right about the Programming and Scripting. I didn't scroll down far enough I guess. -
Can I ask here a question related to JViews - Ilog?
Can I ask here a question related to JViews - Ilog?
If not, then where should I post the question?
Please let me know.
Thanks in advance.Sun_Java_Beginner wrote:
Can I ask here a question related to JViews - Ilog?you can, but it's not guaranteed to get answered
If not, then where should I post the question? http://forums.ilog.com/
hint: you can use Google to search for this stuff too :) -
How does performance of JSP compare to PHP, ASP, etc?
"One thing I've found lately is that server-side Java (JSP) is,
surprisingly, often omitted by web hosting providers. I thought that,
Java being the ultimate web language, just about everyone would offer
it, but it is fairly difficult to find at reasonable prices. Apparently,
it is a relative resource hog. One guy I talked to said that they
wouldn't be able to put more than three JSP sites on a server, whereas
using PHP or ASP, etc, they could do an order of magnitude better."
A friend of mine sent me that statement above. Is this roughly a true
statement? (I'm posting this here just as a starter. It is not aimed at
Weblogic at all...note that Weblogic is NOT even mentioned in the quote
above.)
The phrase "...everyone would offer it" pertains to the fact that my friend
has been conversing with various 'web hosting providers', and he came to
this
'conclusion' after talking with a bunch of them in search of a company to
host some of his client-companies web pages.
Thanks in advance for your experiences.
Cheers...
Dave
On resource needs, in my experience, JSPs (and Java servers in general) require
considerably more memory to run, but can actually reduce the CPU requirements.
For example I had an application written in mod_perl, and when compared to the
J2EE port, the mod_perl version consumed 1/2 the RAM, but the J2EE version
was suprisingly much faster in execution (sluggish pages in the mod_perl version
were very snappy in the J2EE version, on the same exact hardware.)
But the biggest problem for ISPs is actually the management of the servers, not so
much the hardware resources it takes. Today J2EE servers are still relatively complex
to manage and configure. E.g., even a small ISP using Apache can easily(!) support
dozens or even hundreds of virtual hosts for its clients... try doing that with Weblogic
or any other JSP/Servlet/EJB engine... nightmare!!
Take the deployment model as an example... in Perl/PHP/Frontpage-land the ISP
can simply give each clients a few directories (e.g., the old 'cgi-bin' and 'public_html'
dirs) and the client is self-sufficient. When a client changes something, they just ftp
the new files into the directory and voila, it's done. No need for hand-holding from the
ISP.
In contrast one can't do that with J2EE servers today... applications must be packaged
in some specific format, resources (like JDBC DataSources, JavaMail, security roles,
etc.) must be setup often by hand, the administrator must contend with a variety of
classpath and JSP compiler issues, the application then must be deployed to the server
using a proprietary tool (which can fail), the server may need to be told to "reload" the
new application, etc., etc.
Not very easy to manage when you have lots of clients!! Not to mention that very few
system administrators today in ISPs have a good understanding about Java in general;
few can tell the difference between Jdk 1.0 and Jdk 1.4; and only a tiny minority will
know something about running J2EE servers in production at all.
regards,
-Ade
"David Cook" <[email protected]> wrote in message news:[email protected]...
>
> "One thing I've found lately is that server-side Java (JSP) is,
> surprisingly, often omitted by web hosting providers. I thought that,
> Java being the ultimate web language, just about everyone would offer
> it, but it is fairly difficult to find at reasonable prices. Apparently,
> it is a relative resource hog. One guy I talked to said that they
> wouldn't be able to put more than three JSP sites on a server, whereas
> using PHP or ASP, etc, they could do an order of magnitude better."
>
> A friend of mine sent me that statement above. Is this roughly a true
> statement? (I'm posting this here just as a starter. It is not aimed at
> Weblogic at all...note that Weblogic is NOT even mentioned in the quote
> above.)
>
> The phrase "...everyone would offer it" pertains to the fact that my friend
> has been conversing with various 'web hosting providers', and he came to
> this
> 'conclusion' after talking with a bunch of them in search of a company to
> host some of his client-companies web pages.
>
> Thanks in advance for your experiences.
>
> Cheers...
> Dave
>
>
-
Radio button variable not being emailed through php file.
Dear Forum,
I have a contact form in a AS 2.0 file that sends the form data just fine to my email. But it doesn't send the radio button selection variable.
I am definately doing something wrong here. Either with the setup of the radio buttons in flash, or with the php file.
I was wondering if someone can tell me the error in my ways.
I have included a screenshot of flash page, download link with all files, and the php code below.
Any advice or help would be greatly appreciated.
Thanks
Jeff
Boise, ID
email: aaajeff<at>hotmail.com
http://www.thevodkarevolution.com/email.zip
http://www.thevodkarevolution.com/flashscreenshot.jpg
Email.php file:
<?php
$sendTo = "[email protected]";
$subject = "revolution - message";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" .
$_POST["email"] .">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-path: " . $_POST["email"];
$body = $_POST["name"] ." ". $_POST["email"] ." ". $_POST["message"] ." ".
$_POST["industry"];
mail($sendTo, $subject, $body, $headers);
?>I solve that problem, you also have to add the property
radioButton1.setOnClick("common_timeoutSubmitForm(this.form, 'rbID');");
and with this method will call the othe method :D
Hope this is not too latte. :D -
JSP , PHP, ASP???
i read somewhere that php is far more powerful than JSP and PHP? is that rue??
also for which is finding hosting, cheaper and easier???
AliPHP more powerful? Depends on what you mean by power.
In terms of features, no. JSP and ASP have many more features. They have full fledged OO programming languages and API libraries backing them up.
In terms of speed, it can be faster, just BECAUSE it doesn't have to bother with all the features that JSP/ASP provide.
In terms of memory requirements, PHP wins hands down. Java/ASP can be quite memory hungry.
They all do basically the same stuff at the end of the day - generate dynamic web pages.
For a lot of simple small-medium size websites PHP is perfectly fine.
ASP and .NET can provide many more features, but you are tied to MIcrosoft platforms.
Java/JSP is the best (of course - how can I say other on a java forum) - provides a good balance of speed/power without tying you down to a specific platform
You will probably find hosting easier for PHP/MySQL than you will for the other technologies, though I can't say with any certainty. I haven't really looked myself :-)
Cheers.
evnafets
(let the flames begin) -
Send Mail with PHP, ASP, or Perl
Find out more Here
use:
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop("success");
else {
_root.gotoAndStop("failed");
sender.onRelease = function() {
senderLoad.theName = theName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.thePhone = thePhone.text;
senderLoad.theBuilddate = theBuilddate.text;
senderLoad.theLot = theLot.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("http://betaclient2.ommvc.com/send.php",receiveLoad,"POST");
Here is the PHP page code:
<?PHP
$to = "[email protected]";
$subject = "Custom Home Inquiry";
$message = "Name: " . $_POST["theName"];
$message .= "\nEmail: " . $_POST{"theEmail"]; // etc
$message .= "\nPhone: " . $thePhone;
$message .= "\nBuilddate: " . $theBuilddate;
$message .= "\nLot: " . $theLot;
$message .= "\n\nMessage: " . $theMessage;
$headers = "From: $theEmail";
$headers .= "\nReply-To: $theEmail";
$sentOk = mail($to,$subject,$message,$headers);
echo "sentOk=" . $sentOk;
?> -
PHP, ASP, CFM Server Behavior Code Output in DW 8- CS3- CS4
Is there any major differences in the SB code output in CS4 vs CS3 or 8? I am debating buying CS4, but have heard code is essentially the same output when using the PHP, CFM and ASP server behaviors. I essentially only use DW for the pre-built SB dynamic functions as I write my own HTML and CSS. I can hand code if needed in DW8, but wanted to check with the experts on the code output of both versions. Is there any major difference?
Thanks David. I may wait for CS5 then to see if any new features in Server Behaviors set of actions. I should hand code more, but the DW server behaviors are great for a quick basic website. I just worry they wont work completely with new versions of CFM and PHP to come.
-
(broken record here) php problem
Okay, this will probably sound really foolish, but here is what happened. I downloaded a script from php resource index (here is the site for the script:
http://www.giuseppecalbi.com/scripts/gc_formmail/?lan=en ). Apparently, it's extremely simple, lol. Anyway, I could swear I followed the instructions to the tee (there were very few of them), but when I submit a form on the page, instead of sending me an email, it does nothing. Also, instead of going to a confirmation page, it goes to the page of the script and shows the entire thing written out rather than actually running it. Any ideas what could be causing this? Thanks in advance for any help. I think I need to go to a special camp for people with brain blocks against php.Thanks for all of your suggestions, guys. Actually, I wasn't browsing to it, php is enabled and it's on the same server that is running other php scripts. I checked everything here, and it still wasn't working. I ended up using a different script for the same thing and it works just fine. I don't know if it was just a problem with the script or if I did something wrong, but either way, it wasn't a great enough script for me to drive myself insane over it. On the plus side, at least this guy has me on his mailing list now.
-
Since the most recent iTunes update none of our iPods is recognized by iTunes. Our PC is smart enough to recognize my iPod, but iTunes is not.
After MUCH aggravation....AFTER trying all the fixes outlined by Apple Support, AFTER contacting Apple Help and doing what they said, NOTHING WORKED.
I searched the internet again and found the simplest of instructions. They explain that with the new iTunes update some iPods are being recognized as digital cameras rather than iPods, which mine was doing. This is how I fixed it.
Attach your iPod to your computer.
1. Open the Device Manager. (To do this right click on My Computer or Computer, click on Properties, and then click on Device Manager).
2. Find you iPod. Normally it will show up on it's own, but since your computer is recognizing it as a digital camera it may be under something else; mine was under Portable Devices.
Even though it is saying drivers are up to date based on all Apple Fixes, you DO HAVE TO MANUALLY UPDATE DRIVERS...and this is what you have to do!
3. Select the Apple iPod by double clicking on it when you find it.
4. Select Driver on the tabs and click on Update Driver.
5. Choose Browse My Computer for Driver Software. Once opened, you must locate this file: Program Files\Common Files\Apple\Mobile Device Support\Drivers. Select that folder and Click Next. Once the update is complete, unplug your iPod. Wait 30 seconds and plug it back in...your computer should now recognize the iPod.
To whoever found out about this fix and posted it online, THANK YOU!!! I have spent hours and hours following Apples advice to no avail...but this fix, posted online by someone else, DID work...so thank you for posting it...and I am just passing it on!Just get a Mac and you won't have to F with drivers.
Basic troubleshooting steps
17" 2.2GHz i7 Quad-Core MacBook Pro 8G RAM 750G HD + OCZ Vertex 3 SSD Boot HD
Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101 -
What control is being used here?
I'd like to create an interface similar to the Windows Maps app where a sidebar displays when the user puts focus on a search box. I can't seem to figure out what control they're using. At first I though it was a Flyout, but it is not dismissed when the
user clicks off of it. Can anyone tell me what control it is?Hi joshberry,
Could be a Popup with
IsLightDismissEnabled property disabled.
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
User IP directly in SMP without PHP, ASP or other
Is that possible?
to get the IP directly in our SMP player?
If not, is possible to egt the URL Address information? (like http://www.myserver.com/myvideo.flv)
thanx a lotWell, as I can see is not possible
I am searching but I think is not possbile.
Just if we use php, or other server site programm
thanx a lot -
JFrames / JPanels....Am I being stupid here?
I am creating an application for an assignment. I want the button I click to display another screen in the center panel (displayPanel).
But, I get nothing. Nothing displayed, no runtime error, nothing returned on the catch & even if I do a System.out.println() I get nothing in the command prompt.
So, if I am not getting errors etc...where is my display? Any help?
import java.awt.*;
import java.awt.event.*;
import java.awt.Toolkit.*;
import javax.swing.*;
import javax.swing.event.*;
public class Examiner extends JFrame implements ActionListener{
Screen1 sc=new Screen1();
StudentScreen ss=new StudentScreen();
Container content;
Icon stu_icon=new ImageIcon("../hat.jpeg");
Icon staff_icon=new ImageIcon("../prof.jpeg");
Icon course_icon=new ImageIcon("../course.jpeg");
Icon units_icon=new ImageIcon("../units.jpeg");
JButton stu=new JButton(stu_icon);
JButton staff=new JButton(staff_icon);
JButton course=new JButton(course_icon);
JButton units=new JButton(units_icon);
JPanel buttonPanel=new JPanel();
JPanel menuPanel=new JPanel();
JPanel displayPanel=new JPanel();
public Examiner() {
content=getContentPane();
content.setLayout(new BorderLayout());
buttonPanel.setLayout(new GridLayout(6,1));
buttonPanel.add(stu);
buttonPanel.add(staff);
buttonPanel.add(course);
buttonPanel.add(units);
content.add("North",menuPanel);
content.add("West",buttonPanel);
content.add("Center",displayPanel);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
dispose();
System.exit(0);
}// end examiner() constructor
public void actionPerformed(ActionEvent clicked){
if(clicked.getSource()==stu){
try{
test();
catch(Exception e){e.printStackTrace();
}// end if
}//end actionperformed
public void paint(Graphics g){
this.paintComponents(g);
super.paint(g);
}//end paint
public void test(){
displayPanel.add(units);
public static void main(String args[]) {
Examiner mainFrame = new Examiner();
mainFrame.setSize(mainFrame.getToolkit().getScreenSize());
mainFrame.setTitle("Examiner");
mainFrame.setVisible(true);
}// end main
}//end Examiner classI have tried to get this to work by calling it from another class (StudentScreen) and also as shown above by simply trying to get it to display one of the icons again. Could use some pointers here
Thanks<<<< falls over>>>>
Now I am really embarrassed. I should have seen that a long time ago. Guess I need to take a break lol
thanks very much for the help. -
False solutions being posted here.
There is a moderator named Norman who goes around advising as a simple solution to all billing questions going to Billing HIstory, which is simply a list of expenditures (hidden two levels down in Account Management). He then makes it impossible to respond to the poster or to him, Norman. This is really offensive.
The fact is, there is no consolidated list of expenses for Skype service. When I added up my Skype payments -- no small task, Skype does not provide categorized or subtotaled expenses, just raw data --they totalled hundreds of dollars per quarter. In other words, I am spending more on Skype than I do for my wireless smartphone, and I consider it to be too expensive. The difference is, I can see how the charges accumulate on my smartphone account. I can't with Skype. Purposely, it no longer provides cost data in a usable format.
Sure, calls among Skype users are free, but most people whom I call don't use Skype-to-Skype calling. Most don't even use Skype. So this reward is proving bogus, while my real costs are skyrocketing.
I don't know what to do about this. I suppose No. 1 is to find an alternative long-distance service. Skype had done that to me: it has turned me, a formerly contented customer eager to turn my friends onto Skype, into somene who feels like a victim of unfair pricing. I wouldn't now recommend Skype to anyone.You can find a list of all your expenses for Skype in your "Purchase history" on your web account page at https://secure.skype.com/wallet/account/orders - Does that help?
Follow the latest Skype Community News
↓ Did my reply answer your question? Accept it as a solution to help others, Thanks. ↓
Maybe you are looking for
-
Can I stream my Macbook air to AppleTV?
I know that I can stream from iPhone and iPad, but I like to know if I stream my Macbook Air's screen to the Apple TV. I want to use my HDTV as a monitor for the Macbook Air wirelessly. Any help is much appreciated.
-
Insufficient bandwidth downstream required???
I've seen this topic and and having the same trouble. both computers have been set at the 1.5mps and Ichat pref has none for bandwidth limits.. Still get the message and error that says: 2006-11-13 13:45:23 -0600: There is insufficient bandwidth to m
-
Hi, does exist any tool how to trace whole path a program was going through ? Thank you. Marian,
-
Previously, I have used Adobe Encore CS3 to add videos to the menu. In Encore you can add as many separate videos as you want to the menu. You can play them separately. I do not see this feature in Premiere Elements 12.
-
Iphoto thumbnails disappear with each reboot
My iPhoto thumbnails disappear any time I reboot or log out of iPhoto. I use the rebuild command and get them back, but they don't stay. Is this a problem with iPhoto or the address where the thumbnails are stored?